/* CapturingTime — cinematic archive of still moments. */

:root {
  --bg: #070a09;
  --bg-raise: #0b100f;
  --bg-soft: rgba(255, 255, 255, 0.03);
  --ink: #eef3f0;
  --ink-soft: rgba(238, 243, 240, 0.64);
  --ink-faint: rgba(238, 243, 240, 0.38);
  --ink-ghost: rgba(238, 243, 240, 0.16);
  --line: rgba(238, 243, 240, 0.12);
  --line-strong: rgba(238, 243, 240, 0.22);
  --mint: #9cece4;
  --mint-soft: rgba(156, 236, 228, 0.12);
  --mint-ink: #05201e;
  --amber: #e8c89a;
  --danger: #ff8f7a;
  --gutter: clamp(20px, 5vw, 88px);
  --topbar: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC",
    "Source Han Serif SC", serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas,
    "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
video {
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(156, 236, 228, 0.24);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(238, 243, 240, 0.14);
  border: 3px solid var(--bg);
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--mint);
  color: var(--mint-ink);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------- atmosphere */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.backdrop__glow {
  position: absolute;
  top: -30vh;
  left: -10vw;
  width: 90vw;
  height: 90vw;
  max-width: 1200px;
  max-height: 1200px;
  background: radial-gradient(
    circle at center,
    rgba(52, 132, 124, 0.22) 0%,
    rgba(20, 54, 51, 0.12) 42%,
    rgba(7, 10, 9, 0) 70%
  );
  filter: blur(10px);
}

.backdrop__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.6;
}

.backdrop__timecode {
  position: fixed;
  right: -1vw;
  bottom: 4vh;
  font-family: var(--mono);
  font-size: clamp(72px, 15vw, 240px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  color: rgba(156, 236, 228, 0.05);
  white-space: nowrap;
  user-select: none;
}

.backdrop__grain {
  position: absolute;
  inset: -50%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grainShift 0.9s steps(2) infinite;
}

@keyframes grainShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-1.5%, 1%, 0);
  }
  100% {
    transform: translate3d(1%, -1.5%, 0);
  }
}

/* ----------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--topbar);
  border-bottom: 1px solid transparent;
  background: linear-gradient(
    180deg,
    rgba(7, 10, 9, 0.92) 0%,
    rgba(7, 10, 9, 0.68) 70%,
    rgba(7, 10, 9, 0) 100%
  );
  transition: border-color 0.4s var(--ease-soft), background 0.4s var(--ease-soft);
}

.topbar.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(7, 10, 9, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--mint);
}

.brand__mark svg {
  width: 100%;
  height: 100%;
  animation: markSpin 26s linear infinite;
}

@keyframes markSpin {
  to {
    transform: rotate(360deg);
  }
}

.brand__name {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand__name-accent {
  color: var(--mint);
  font-style: italic;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
}

.topbar__link {
  position: relative;
  padding: 6px 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease-soft);
}

.topbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--mint);
  transition: width 0.35s var(--ease);
}

.topbar__link:hover,
.topbar__link.is-active {
  color: var(--ink);
}

.topbar__link.is-active::after,
.topbar__link:hover::after {
  width: 100%;
}

.topbar__account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft),
    background 0.3s var(--ease-soft);
}

.topbar__account:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.topbar__account-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: background 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}

.topbar__account #account-label {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__account.is-authed .topbar__account-dot {
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(156, 236, 228, 0.12);
}

.topbar__studio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(156, 236, 228, 0.32);
  border-radius: 2px;
  background: rgba(156, 236, 228, 0.04);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--mint);
  white-space: nowrap;
  transition: background 0.25s var(--ease-soft), color 0.25s var(--ease-soft);
}

.topbar__studio:hover,
.topbar__studio.is-active {
  background: var(--mint);
  color: var(--mint-ink);
}

.topbar__demo {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(232, 200, 154, 0.72);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ subnav */

.subnav {
  position: sticky;
  top: var(--topbar);
  z-index: 55;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 9, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.subnav__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
  max-width: 1600px;
  min-height: 52px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav__inner::-webkit-scrollbar {
  display: none;
}

.subnav__link {
  position: relative;
  flex: none;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  transition: color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft),
    background 0.25s var(--ease-soft);
}

.subnav__link:hover {
  color: var(--ink);
  border-color: var(--line);
}

.subnav__link.is-active {
  color: var(--mint);
  border-color: rgba(156, 236, 228, 0.34);
  background: rgba(156, 236, 228, 0.06);
}

/* ------------------------------------------------------------------- main */

.main {
  position: relative;
  z-index: 1;
  min-height: 60vh;
  outline: none;
}

.wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--mint);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--plain::before {
  display: none;
}

/* -------------------------------------------------------------- exhibition */

.exhibition {
  position: relative;
  height: clamp(520px, 82vh, 940px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #050807;
}

.exhibition--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(340px, 52vh, 520px);
}

.exhibition__empty {
  max-width: 520px;
  padding: 0 var(--gutter);
  text-align: center;
}

.exhibition__empty-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
}

.exhibition__empty-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-faint);
}

.exhibition__viewport {
  height: 100%;
  overflow: hidden;
}

.exhibition__track {
  display: flex;
  height: 100%;
  transition: transform 1.05s var(--ease);
  will-change: transform;
}

.exposure {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

.exposure__media {
  position: absolute;
  inset: 0;
  background: #050807;
}

.exposure__media img,
.exposure__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03) brightness(0.88);
  transform: scale(1.001);
  transition: transform 6s linear, filter 0.6s var(--ease-soft);
}

.exposure:hover .exposure__media img,
.exposure:hover .exposure__media video {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.04) brightness(0.96);
}

.exposure__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(4, 7, 6, 0.58) 0%,
      rgba(4, 7, 6, 0) 30%,
      rgba(4, 7, 6, 0) 48%,
      rgba(4, 7, 6, 0.84) 100%
    ),
    linear-gradient(90deg, rgba(4, 7, 6, 0.46) 0%, rgba(4, 7, 6, 0) 55%);
}

.exposure__body {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(78px, 10vh, 118px);
  z-index: 1;
  max-width: 820px;
}

.exposure__eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mint);
}

.exposure__caption {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 52px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.exposure__enter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(238, 243, 240, 0.32);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(238, 243, 240, 0.68);
  transition: color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}

.exposure:hover .exposure__enter {
  color: var(--mint);
  border-bottom-color: rgba(156, 236, 228, 0.6);
}

.exhibition__chrome {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.exhibition__label {
  position: absolute;
  top: clamp(18px, 2.6vw, 30px);
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(238, 243, 240, 0.72);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.exhibition__progress {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(24px, 3vh, 36px);
  display: flex;
  gap: 8px;
  width: min(320px, 34vw);
}

.exhibition__bar {
  position: relative;
  flex: 1;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.exhibition__bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--mint);
}

.exhibition__bar.is-active .exhibition__bar-fill {
  animation: exhibitionFill var(--exhibition-interval) linear forwards;
}

@keyframes exhibitionFill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.exhibition__controls {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(18px, 2.8vh, 30px);
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.exhibition__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(238, 243, 240, 0.34);
  border-radius: 2px;
  background: rgba(4, 7, 6, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft),
    background 0.25s var(--ease-soft);
}

.exhibition__nav:hover {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(156, 236, 228, 0.1);
}

/* ------------------------------------------------------------ section heads */

.recent {
  padding-top: clamp(52px, 7vw, 104px);
}

.recent--wide {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.albums {
  padding-top: clamp(52px, 7vw, 104px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(22px, 3vw, 36px);
  padding-bottom: clamp(16px, 2.4vw, 26px);
  border-bottom: 1px solid var(--line);
}

.section-head .eyebrow {
  margin-bottom: 10px;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.section-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.section-empty {
  margin: 30px 0;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-faint);
}

/* ----------------------------------------------------------- recent works */

.recent-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}

.recent-card {
  display: block;
  min-width: 0;
}

.recent-card__frame {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0f0e;
}

.recent-card__frame img,
.recent-card__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) brightness(0.9);
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease-soft);
}

.recent-card:hover .recent-card__frame img,
.recent-card:hover .recent-card__frame video {
  transform: scale(1.045);
  filter: saturate(1) brightness(1);
}

.recent-card__kind {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border: 1px solid rgba(156, 236, 228, 0.38);
  background: rgba(4, 7, 6, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--mint);
}

.recent-card__body {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.recent-card__album {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-soft);
}

.recent-card__date {
  flex: none;
}

.filters {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  position: relative;
  flex: none;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft),
    background 0.25s var(--ease-soft);
}

.filter:hover {
  color: var(--ink);
}

.filter.is-active {
  color: var(--mint);
  border-color: rgba(156, 236, 228, 0.32);
  background: rgba(156, 236, 228, 0.06);
}

/* ------------------------------------------------------------- album grid */

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px) clamp(18px, 2.4vw, 34px);
  align-items: start;
}

.album-card {
  min-width: 0;
}

.album-card__link {
  display: block;
}

.album-card__frame {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #0e1413 0%, #080b0a 100%);
}

.album-card[data-kind="story"] .album-card__frame {
  aspect-ratio: 5 / 6;
}

.album-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.86) contrast(1.03) brightness(0.94);
  transform: scale(1.001);
  transition: transform 1.1s var(--ease), filter 0.7s var(--ease-soft);
}

.album-card__link:hover .album-card__img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.05) brightness(1);
}

.album-card__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 6, 5, 0.28) 0%,
    rgba(3, 6, 5, 0) 34%,
    rgba(3, 6, 5, 0) 62%,
    rgba(3, 6, 5, 0.42) 100%
  );
  pointer-events: none;
}

.album-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 9px;
  border: 1px solid rgba(238, 243, 240, 0.24);
  background: rgba(4, 7, 6, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(238, 243, 240, 0.85);
}

.album-card[data-kind="story"] .album-card__badge {
  border-color: rgba(156, 236, 228, 0.45);
  color: var(--mint);
}

.album-card__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(238, 243, 240, 0.72);
}

.album-card__body {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 2px 10px;
  padding: 16px 2px 0;
}

.album-card__index {
  grid-row: span 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-ghost);
  padding-top: 7px;
}

.album-card__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 400;
  line-height: 1.3;
  transition: color 0.3s var(--ease-soft);
}

.album-card__link:hover .album-card__title {
  color: var(--mint);
}

.album-card__sub {
  grid-column: 2;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.album-card__meta {
  grid-column: 2;
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-ghost);
}

@media (min-width: 1024px) {
  .album-card:nth-child(3n + 2) {
    margin-top: clamp(28px, 4.5vw, 72px);
  }

  .album-grid > .album-card:nth-child(3n + 1) .album-card__frame {
    aspect-ratio: 3 / 4;
  }
}

/* -------------------------------------------------------------- album index */

.index-page {
  padding: clamp(36px, 5vw, 72px) 0 0;
}

.page-head {
  max-width: 780px;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.page-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 92px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.page-sub {
  max-width: 58ch;
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.95;
  color: var(--ink-faint);
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: clamp(24px, 3vw, 38px);
  padding-bottom: clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line);
}

.category-tab {
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft),
    background 0.25s var(--ease-soft);
}

.category-tab:hover {
  color: var(--ink);
}

.category-tab.is-active {
  color: var(--mint);
  border-color: rgba(156, 236, 228, 0.34);
  background: rgba(156, 236, 228, 0.06);
}

.album-grid--index {
  gap: clamp(30px, 4vw, 52px) clamp(16px, 2.2vw, 30px);
}

.index-card {
  min-width: 0;
}

.index-card__link {
  display: block;
}

.index-card__cover {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #0e1413 0%, #080b0a 100%);
}

.index-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.86) contrast(1.03) brightness(0.92);
  transition: transform 1s var(--ease), filter 0.6s var(--ease-soft);
}

.index-card__link:hover .index-card__cover img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.04) brightness(1);
}

.index-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border: 1px solid rgba(156, 236, 228, 0.42);
  background: rgba(4, 7, 6, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--mint);
}

.index-card__count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 7px;
  background: rgba(4, 7, 6, 0.62);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(238, 243, 240, 0.78);
}

.index-card__body {
  padding-top: 14px;
}

.index-card__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.3;
  transition: color 0.25s var(--ease-soft);
}

.index-card__link:hover .index-card__title {
  color: var(--mint);
}

.index-card__sub {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-faint);
}

.index-card__meta {
  display: grid;
  gap: 5px;
  margin: 14px 0 0;
}

.index-card__meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(238, 243, 240, 0.06);
}

.index-card__meta dt {
  flex: none;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-ghost);
}

.index-card__meta dd {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--ink-soft);
  text-align: right;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(34px, 5vw, 58px);
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 1px solid var(--line);
}

.pager__btn {
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft);
}

.pager__btn:hover:not(:disabled) {
  border-color: var(--mint);
  color: var(--mint);
}

.pager__btn:disabled {
  opacity: 0.32;
  cursor: default;
}

.pager__info {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.story-archive {
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4vw, 56px);
}

.story-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding-bottom: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
}

.story-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.story-card__cover {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0f0e;
}

.story-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.87) contrast(1.03) brightness(0.9);
  transition: transform 1s var(--ease), filter 0.6s var(--ease-soft);
}

.story-card:hover .story-card__cover img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.04) brightness(1);
}

.story-card__count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 7px;
  background: rgba(4, 7, 6, 0.66);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(238, 243, 240, 0.8);
}

.story-card__eyebrow {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
}

.story-card__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  transition: color 0.25s var(--ease-soft);
}

.story-card:hover .story-card__title {
  color: var(--mint);
}

.story-card__sub {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
}

.story-card__meta {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-ghost);
}

/* ---------------------------------------------------------------- detail */

.detail {
  padding: clamp(14px, 2vw, 24px) var(--gutter) 0;
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.25s var(--ease-soft);
}

.backlink:hover {
  color: var(--mint);
}

.detail__head {
  max-width: none;
}

.detail__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.detail__title-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.42em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-faint);
}

.detail__sub {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 21px);
  color: var(--ink-faint);
}

.detail__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 96ch;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-soft);
  white-space: pre-line;
}

.detail__meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.detail__meta-inline span {
  white-space: nowrap;
}

.detail__byline {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.detail__credits {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.7;
  white-space: pre-line;
  color: var(--ink-ghost);
}

.detail--story .detail__credits {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 8px;
  font-size: 10px;
}

.detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.detail__meta span + span::before {
  content: "/";
  margin-right: 20px;
  color: var(--ink-ghost);
}

.detail__body {
  padding: 14px 0 0;
}

/* --------------------------------------------------------- compact story head */

.detail--story {
  padding: clamp(10px, 1.6vw, 18px) 0 0;
}

.detail--story > .backlink {
  margin: 0 var(--gutter) 10px;
}

.detail--story .detail__head {
  max-width: none;
  margin: 0 var(--gutter);
}

.detail--story .detail__title {
  font-size: clamp(22px, 2.6vw, 34px);
}

.detail--story .detail__desc {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.6;
  -webkit-line-clamp: 1;
}

.detail--story .detail__meta-inline {
  margin-top: 8px;
  gap: 4px 18px;
}

.detail--story .detail__body {
  padding: 10px 0 0;
}

.detail--story .story-viewer {
  max-width: none;
}

.detail--story .story-track {
  height: clamp(480px, calc(100vh - 340px), 1600px);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.detail--story .story-slide {
  position: relative;
  display: block;
  padding: 0;
}

.detail--story .story-slide__media {
  position: absolute;
  inset: 0;
}

.detail--story .story-slide__media img,
.detail--story .story-slide__media video {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.detail--story .story-slide__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 60px var(--gutter) 20px;
  background: linear-gradient(180deg, rgba(3, 6, 10, 0) 0%, rgba(3, 6, 10, 0.86) 100%);
}

.detail--story .story-thumbs {
  margin: 8px var(--gutter) 0;
}

/* -------------------------------------------------------------- works grid */

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
}

.work {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  background: #0a0f0e;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.25s var(--ease-soft);
}

.work:hover {
  border-color: var(--line-strong);
}

.work__frame {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.work__frame img,
.work__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.88) brightness(0.92);
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease-soft);
}

.work:hover .work__frame img,
.work:hover .work__frame video {
  transform: scale(1.035);
  filter: saturate(1) brightness(1);
}

.work__no {
  position: absolute;
  left: 9px;
  bottom: 9px;
  padding: 2px 6px;
  background: rgba(4, 7, 6, 0.66);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(238, 243, 240, 0.78);
}

/* ------------------------------------------------------------- story viewer */

.story-viewer {
  max-width: 1240px;
  margin: 0 auto;
}

.story-stage {
  position: relative;
}

.story-track {
  display: flex;
  height: clamp(420px, 64vh, 760px);
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  background: #050807;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.story-track::-webkit-scrollbar {
  display: none;
}

.story-slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: clamp(16px, 2.4vw, 30px) clamp(18px, 3vw, 44px) 18px;
  scroll-snap-align: center;
}

.story-slide__media {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: center;
  justify-content: center;
}

.story-slide__media img,
.story-slide__media video {
  display: block;
  max-width: 100%;
  max-height: 52vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(238, 243, 240, 0.08);
}

.story-slide__caption {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-top: 16px;
}

.story-slide__no {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--mint);
}

.story-slide__text {
  max-width: 74ch;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.story-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(4, 7, 6, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft);
}

.story-nav:hover:not(:disabled) {
  border-color: var(--mint);
  color: var(--mint);
}

.story-nav:disabled {
  opacity: 0.24;
  cursor: default;
}

.story-nav--prev {
  left: -6px;
}

.story-nav--next {
  right: -6px;
}

.story-thumbs {
  margin-top: 18px;
}

.story-thumbs__caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.story-thumbs__strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
}

.story-thumbs__strip::-webkit-scrollbar {
  display: none;
}

.story-thumb {
  position: relative;
  flex: none;
  width: 58px;
  padding: 0;
  border: 1px solid var(--line);
  background: #0a0f0e;
  opacity: 0.48;
  cursor: pointer;
  transition: opacity 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft);
}

.story-thumb:hover {
  opacity: 0.82;
}

.story-thumb.is-active {
  border-color: var(--mint);
  opacity: 1;
}

.story-thumb__frame {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.story-thumb__frame img,
.story-thumb__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-thumb__no {
  position: absolute;
  left: 3px;
  bottom: 3px;
  padding: 1px 3px;
  background: rgba(4, 7, 6, 0.72);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  color: rgba(238, 243, 240, 0.8);
}

/* --------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 12px;
  padding: clamp(16px, 3vw, 32px);
  background: rgba(4, 6, 5, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.25s var(--ease-soft);
}

.lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 0;
  min-width: 0;
}

.lightbox__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
}

.lightbox__media img,
.lightbox__media video {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
}

.lightbox__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 900px);
  font-size: 13px;
  color: var(--ink-soft);
}

.lightbox__text {
  max-width: 68ch;
}

.lightbox__count {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}

.lightbox__close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

.lightbox__close:hover {
  color: var(--ink);
}

.lightbox__nav {
  width: 48px;
  height: 48px;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  font-size: 17px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft);
}

.lightbox__nav:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.lightbox__nav[disabled] {
  opacity: 0.28;
  cursor: default;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ----------------------------------------------------------------- footer */

.sitefoot {
  position: relative;
  z-index: 1;
  margin-top: clamp(72px, 10vw, 150px);
  padding: clamp(28px, 3.6vw, 44px) 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(7, 10, 9, 0) 0%,
    rgba(9, 13, 12, 0.72) 100%
  );
}

.sitefoot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sitefoot__line {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.4;
}

.sitefoot__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.sitefoot__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sitefoot__state {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 200, 154, 0.72);
}

.manage-entry {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 14px 18px 14px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(156, 236, 228, 0.03);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft),
    background 0.3s var(--ease-soft);
}

.manage-entry:hover {
  border-color: rgba(156, 236, 228, 0.6);
  color: var(--mint);
  background: rgba(156, 236, 228, 0.07);
}

.manage-entry__arrow {
  display: inline-flex;
  width: 22px;
  transition: transform 0.35s var(--ease);
}

.manage-entry__arrow svg {
  width: 100%;
}

.manage-entry:hover .manage-entry__arrow {
  transform: translateX(4px);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft),
    color 0.25s var(--ease-soft), opacity 0.25s var(--ease-soft);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--mint-ink);
}

.btn--primary:hover:not(:disabled) {
  background: #b9f4ee;
  border-color: #b9f4ee;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

.btn--ghost:hover:not(:disabled) {
  border-color: var(--ink-faint);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.btn--danger {
  border-color: rgba(255, 143, 122, 0.42);
  color: var(--danger);
}

.btn--danger:hover:not(:disabled) {
  background: rgba(255, 143, 122, 0.08);
  border-color: rgba(255, 143, 122, 0.7);
}

.btn--wide {
  width: 100%;
}

.btn--small {
  padding: 7px 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* ----------------------------------------------------------------- fields */

.field {
  display: block;
  margin: 0 0 16px;
}

.field__label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.field__input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft);
}

.field__input:focus {
  outline: none;
  border-color: rgba(156, 236, 228, 0.55);
  box-shadow: 0 0 0 3px rgba(156, 236, 228, 0.1);
}

.field__input::placeholder {
  color: var(--ink-ghost);
}

.field__input--area {
  resize: vertical;
  min-height: 96px;
}

select.field__input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%),
    linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

select.field__input option {
  background: #0b100f;
  color: var(--ink);
}

.kind-choice {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.kind-choice__option {
  position: relative;
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
}

.kind-choice__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kind-choice__body {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s var(--ease-soft), background 0.25s var(--ease-soft);
}

.kind-choice__body strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.kind-choice__body span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-faint);
}

.kind-choice__option input:checked + .kind-choice__body {
  border-color: rgba(156, 236, 228, 0.5);
  background: rgba(156, 236, 228, 0.06);
}

.kind-choice__option input:focus-visible + .kind-choice__body {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------- sheets */

.sheet {
  width: min(540px, calc(100vw - 28px));
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.sheet::backdrop {
  background: rgba(3, 5, 4, 0.76);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.sheet__panel {
  position: relative;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line-strong);
  background: #0a0f0e;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
  animation: sheetIn 0.35s var(--ease);
}

.sheet__panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(156, 236, 228, 0) 0%,
    rgba(156, 236, 228, 0.65) 50%,
    rgba(156, 236, 228, 0) 100%
  );
}

.sheet--confirm {
  width: min(420px, calc(100vw - 28px));
}

@keyframes sheetIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sheet__head {
  position: relative;
  margin-bottom: 18px;
  padding-right: 32px;
}

.sheet__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
}

.sheet__close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
}

.sheet__close:hover {
  color: var(--ink);
}

.sheet__note {
  margin: 0 0 20px;
  font-size: 12px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.sheet__message {
  min-height: 18px;
  margin: 2px 0 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--danger);
}

.sheet__message.is-ok {
  color: var(--mint);
}

.sheet__alt {
  display: block;
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sheet__alt:hover {
  color: var(--mint);
}

.sheet__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

/* ----------------------------------------------------------------- manage */

.manage {
  padding: clamp(36px, 5vw, 72px) 0 0;
}

.manage__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}

.manage__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.manage__sub {
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.manage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ----------------------------------------------------- exhibition settings */

.exhibition-admin {
  margin-top: clamp(26px, 3.4vw, 42px);
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.exhibition-admin__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.exhibition-admin__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 400;
  line-height: 1.15;
}

.exhibition-admin__note {
  max-width: 56ch;
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.85;
  color: var(--ink-faint);
}

.exhibition-admin__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.field--inline {
  margin: 0;
  min-width: 108px;
}

.field--inline .field__input {
  padding: 9px 12px;
  font-size: 12px;
}

.exhibition-admin__selection {
  margin: 20px 0 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.exhibition-admin__selection strong {
  font-weight: 400;
  color: var(--mint);
}

.exhibition-admin__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 10px;
}

.work-pick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.work-pick__frame {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0f0e;
  transition: border-color 0.25s var(--ease-soft);
}

.work-pick__frame img,
.work-pick__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.82) brightness(0.82);
  transition: filter 0.3s var(--ease-soft), transform 0.7s var(--ease);
}

.work-pick:hover .work-pick__frame img,
.work-pick:hover .work-pick__frame video {
  filter: saturate(1) brightness(1);
  transform: scale(1.03);
}

.work-pick.is-selected .work-pick__frame {
  border-color: var(--mint);
  box-shadow: inset 0 0 0 1px var(--mint);
}

.work-pick__order {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--mint);
  color: var(--mint-ink);
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.2s var(--ease-soft);
}

.work-pick.is-selected .work-pick__order {
  opacity: 1;
}

.work-pick__meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.manage-list {
  margin-top: 8px;
}

.manage-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease-soft);
}

.manage-row:hover {
  background: rgba(255, 255, 255, 0.015);
}

.manage-row__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b100f;
}

.manage-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

.manage-row__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-ghost);
}

.manage-row__kind {
  margin: 0 0 5px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
}

.manage-row__kind--private {
  color: var(--amber);
}

.manage-row__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 400;
  line-height: 1.3;
}

.manage-row__meta {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--ink-faint);
}

.manage-row__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.textbtn {
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft),
    background 0.25s var(--ease-soft);
}

.textbtn:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.textbtn--danger:hover {
  color: var(--danger);
  border-color: rgba(255, 143, 122, 0.4);
  background: rgba(255, 143, 122, 0.06);
}

.textbtn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---------------------------------------------------------- story studio */

.studio {
  padding: clamp(22px, 3.4vw, 44px) var(--gutter) 0;
  max-width: none;
}

.studio__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: clamp(16px, 2.4vw, 26px);
  border-bottom: 1px solid var(--line);
}

.studio__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.studio__meta {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.story-editor {
  margin-top: clamp(18px, 2.6vw, 30px);
}

.story-editor__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 14px;
}

.chapter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chapter-tab {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft),
    background 0.2s var(--ease-soft);
}

.chapter-tab:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.chapter-tab.is-active {
  color: var(--mint);
  border-color: rgba(156, 236, 228, 0.42);
  background: rgba(156, 236, 228, 0.07);
}

.chapter-tab--add {
  border-style: dashed;
  color: var(--ink-ghost);
}

.chapter-tab--process {
  border-color: rgba(232, 200, 154, 0.3);
  color: var(--amber);
}

.chapter-tab--process.is-active {
  border-color: rgba(232, 200, 154, 0.65);
  background: rgba(232, 200, 154, 0.08);
  color: var(--amber);
}

.story-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.story-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
}

.story-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  table-layout: fixed;
}

.story-table th {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: left;
}

.story-table td {
  height: 200px;
  padding: 8px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  overflow: hidden;
}

.story-table tr {
  transition: background 0.2s var(--ease-soft);
}

.story-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

.story-table tr.is-selected {
  background: rgba(156, 236, 228, 0.05);
  box-shadow: inset 3px 0 0 var(--mint);
}

.story-table tr.is-disabled {
  opacity: 0.42;
}

.shot-cell--no {
  text-align: center;
  vertical-align: middle;
}

.shot-no {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--mint);
}

.shot-flag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 5px;
  border: 1px solid rgba(232, 200, 154, 0.4);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.shot-cell--photo {
  position: relative;
  vertical-align: middle;
  text-align: center;
}

.shot-kind {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 2px 6px;
  background: rgba(4, 7, 6, 0.72);
  border: 1px solid rgba(156, 236, 228, 0.3);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--mint);
}

.shot-photo {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #0a0f0e;
}

.shot-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 180px;
  border: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--ink-ghost);
}

.shot-cell--refs {
  vertical-align: middle;
}

.shot-refs {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 180px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.shot-ref {
  flex: none;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0f0e;
  cursor: context-menu;
}

.shot-ref img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shot-cell--caption {
  padding: 6px;
}

.shot-cell--script {
  padding: 6px;
}

.shot-caption,
.shot-script {
  width: 100%;
  height: 184px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.75;
  resize: none;
}

.shot-caption:focus,
.shot-script:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
}

.story-table__empty {
  height: 140px !important;
  text-align: center;
  vertical-align: middle !important;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-ghost);
}

.context-menu {
  position: fixed;
  z-index: 300;
  min-width: 196px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 15, 14, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.context-menu__item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  font-size: 11px;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
}

.context-menu__item:hover:not(:disabled) {
  background: rgba(156, 236, 228, 0.08);
  color: var(--ink);
}

.context-menu__item:disabled {
  opacity: 0.32;
  cursor: default;
}

.context-menu__item.is-danger {
  color: var(--danger);
}

.ref-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin: 10px 0 18px;
}

.ref-picker__item {
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0f0e;
  cursor: pointer;
}

.ref-picker__item:hover {
  border-color: var(--danger);
}

.ref-picker__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------------------------------------------------- media manager */

.media-manage {
  padding: clamp(28px, 4vw, 56px) 0 0;
}

.media-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}

.media-head__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
}

.media-head__meta {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.uploader {
  margin: clamp(24px, 3vw, 36px) 0;
}

.uploader__zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: clamp(28px, 4vw, 48px) 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.014);
  color: var(--ink-soft);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s var(--ease-soft), background 0.25s var(--ease-soft);
}

.uploader__zone:hover,
.uploader__zone.is-dragging {
  border-color: rgba(156, 236, 228, 0.55);
  background: rgba(156, 236, 228, 0.05);
}

.uploader__title {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.uploader__hint {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.uploader__list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.upload-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
}

.upload-item__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-item__state {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.upload-item__state.is-error {
  color: var(--danger);
}

.upload-item__state.is-ok {
  color: var(--mint);
}

.upload-item__bar {
  display: block;
  grid-column: 1 / -1;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.upload-item__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--mint);
  transition: width 0.25s var(--ease-soft);
}

.media-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: clamp(24px, 3vw, 36px);
}

.media-tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.media-tile__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0f0e;
}

.media-tile__frame img,
.media-tile__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.88);
}

.media-tile__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  background: rgba(5, 32, 30, 0.86);
  border: 1px solid rgba(156, 236, 228, 0.45);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.media-tile__kind {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  background: rgba(4, 7, 6, 0.7);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(238, 243, 240, 0.72);
}

.media-tile__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.media-tile__caption {
  width: 100%;
  min-height: 62px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.6;
  resize: vertical;
}

.media-tile__caption:focus {
  outline: none;
  border-color: rgba(156, 236, 228, 0.45);
  color: var(--ink);
}

.media-tile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

/* -------------------------------------------------------- empty / gate */

.empty {
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: clamp(40px, 6vw, 72px) 24px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.empty__title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
}

.empty__text {
  max-width: 46ch;
  margin: 0 auto 22px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-faint);
}

.gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46vh;
  padding: clamp(40px, 6vw, 72px) 0;
}

.gate__panel {
  max-width: 440px;
  text-align: center;
}

.gate__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  border: 1px solid rgba(156, 236, 228, 0.3);
  border-radius: 50%;
  color: var(--mint);
}

.gate__icon svg {
  width: 24px;
  height: 24px;
}

.gate__title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.25;
}

.gate__text {
  margin: 0 0 24px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-faint);
}

/* ---------------------------------------------------------------- loading */

.view-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 50vh;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.view-loading__bar {
  position: relative;
  width: 120px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.view-loading__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--mint);
  animation: loadingSlide 1.1s var(--ease-soft) infinite;
}

@keyframes loadingSlide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(320%);
  }
}

/* ---------------------------------------------------------------- toasts */

.toast-stack {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(340px, calc(100vw - 28px));
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--mint);
  background: rgba(10, 15, 14, 0.97);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  animation: toastIn 0.3s var(--ease);
}

.toast--error {
  border-left-color: var(--danger);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.noscript {
  position: fixed;
  inset: auto 0 0;
  z-index: 210;
  margin: 0;
  padding: 16px;
  background: #13100a;
  color: var(--amber);
  font-size: 13px;
  text-align: center;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .album-card:nth-child(3n + 2) {
    margin-top: 0;
  }

  .recent-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .exhibition {
    height: clamp(460px, 74vh, 720px);
  }

  .exposure__caption {
    font-size: clamp(24px, 4.6vw, 40px);
  }

  .recent-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lightbox {
    grid-template-columns: minmax(0, 1fr);
    padding: 64px 16px 28px;
  }

  .lightbox__nav {
    position: fixed;
    bottom: 24px;
    z-index: 2;
  }

  .lightbox__nav--prev {
    left: 24px;
  }

  .lightbox__nav--next {
    right: 24px;
  }

  .lightbox__media img,
  .lightbox__media video {
    max-height: 66vh;
  }

  .lightbox__caption {
    padding-bottom: 44px;
  }
}

@media (max-width: 680px) {
  :root {
    --topbar: 60px;
  }

  .brand__name {
    font-size: 15px;
  }

  .topbar__link {
    display: none;
  }

  .topbar__account {
    padding: 7px 11px;
    font-size: 11px;
  }

  .topbar__studio {
    padding: 7px 10px;
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .topbar__demo {
    display: none;
  }

  .studio__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-table {
    min-width: 860px;
  }

  .exhibition {
    height: clamp(420px, 68vh, 620px);
  }

  .exhibition__label {
    top: 14px;
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .exhibition__progress {
    bottom: 20px;
    width: 26vw;
  }

  .exhibition__controls {
    bottom: 14px;
  }

  .exhibition__nav {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .exposure__body {
    bottom: 74px;
  }

  .exposure__caption {
    font-size: clamp(22px, 6vw, 32px);
    -webkit-line-clamp: 3;
  }

  .exposure__eyebrow {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .exposure__enter {
    margin-top: 14px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .section-tools {
    width: 100%;
    justify-content: space-between;
  }

  .recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .album-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .album-card:nth-child(3n + 1) .album-card__frame,
  .album-card[data-kind="story"] .album-card__frame {
    aspect-ratio: 4 / 5;
  }

  .page-title {
    font-size: clamp(38px, 10vw, 56px);
  }

  .page-sub {
    font-size: 11px;
  }

  .story-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .story-nav {
    display: none;
  }

  .story-track {
    height: clamp(380px, 62vh, 560px);
  }

  .story-slide {
    padding: 14px 14px 12px;
  }

  .story-slide__media img,
  .story-slide__media video {
    max-height: 44vh;
  }

  .story-slide__caption {
    flex-direction: column;
    gap: 6px;
  }

  .story-slide__text {
    font-size: 12px;
  }

  .story-thumb {
    width: 42px;
  }

  .story-thumb__no {
    display: none;
  }

  .subnav__inner {
    min-height: 46px;
    gap: 20px;
  }

  .exhibition-admin__controls {
    width: 100%;
    justify-content: flex-start;
  }

  .manage-row {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
  }

  .manage-row__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .sitefoot__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .sitefoot__actions {
    width: 100%;
    justify-content: space-between;
  }

  .manage-entry {
    gap: 16px;
  }

  .media-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .lightbox__text {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .works-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar__account-dot {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .backdrop__grain {
    animation: none;
  }
}

/* ============================================================ liquid glass */
/* Dark liquid-glass theme: translucent panels over a drifting colour field. */

:root {
  --glass-surface: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.085) 0%,
    rgba(255, 255, 255, 0.035) 42%,
    rgba(255, 255, 255, 0.02) 100%
  );
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --glass-blur: blur(26px) saturate(145%);
}

body {
  background: #05070b;
  color: #eef3f0;
}

.backdrop {
  background:
    radial-gradient(70% 60% at 12% 8%, rgba(26, 96, 96, 0.22) 0%, rgba(5, 7, 11, 0) 62%),
    radial-gradient(60% 60% at 88% 18%, rgba(58, 52, 110, 0.24) 0%, rgba(5, 7, 11, 0) 64%),
    radial-gradient(70% 70% at 55% 100%, rgba(18, 66, 82, 0.24) 0%, rgba(5, 7, 11, 0) 68%),
    #05070b;
}

.backdrop__glow {
  background: radial-gradient(
    circle at center,
    rgba(74, 190, 180, 0.24) 0%,
    rgba(38, 96, 104, 0.12) 44%,
    rgba(5, 7, 11, 0) 72%
  );
  filter: blur(24px);
}

.backdrop__blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.backdrop__blob--a {
  top: -18vh;
  left: -12vw;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, rgba(32, 128, 122, 0.5), rgba(5, 7, 11, 0));
  animation: glassBlobA 28s ease-in-out infinite alternate;
}

.backdrop__blob--b {
  right: -16vw;
  bottom: -20vh;
  width: 62vw;
  height: 62vw;
  background: radial-gradient(circle, rgba(70, 62, 138, 0.42), rgba(5, 7, 11, 0));
  animation: glassBlobB 34s ease-in-out infinite alternate;
}

.backdrop__blob--c {
  top: 34%;
  left: 46%;
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle, rgba(46, 108, 130, 0.35), rgba(5, 7, 11, 0));
  animation: glassBlobC 24s ease-in-out infinite alternate;
}

@keyframes glassBlobA {
  to {
    transform: translate3d(12vw, 8vh, 0) scale(1.18);
  }
}

@keyframes glassBlobB {
  to {
    transform: translate3d(-10vw, -6vh, 0) scale(1.12);
  }
}

@keyframes glassBlobC {
  to {
    transform: translate3d(-14vw, 10vh, 0) scale(0.9);
  }
}

.backdrop__scan {
  opacity: 0.28;
}

/* Frosted navigation */

.topbar {
  background: linear-gradient(
    180deg,
    rgba(10, 14, 21, 0.72) 0%,
    rgba(10, 14, 21, 0.42) 72%,
    rgba(10, 14, 21, 0) 100%
  );
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.topbar.is-stuck,
.subnav {
  background: rgba(10, 14, 21, 0.55);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-color: rgba(255, 255, 255, 0.1);
}

.topbar__account,
.topbar__studio,
.subnav__link {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--glass-highlight);
}

.subnav__link {
  padding: 7px 15px;
}

.subnav__link.is-active,
.topbar__studio.is-active {
  background: linear-gradient(135deg, rgba(156, 236, 228, 0.9), rgba(122, 198, 216, 0.82));
  border-color: transparent;
  color: #04201e;
}

/* Glass panels */

.recent-card,
.index-card,
.story-card,
.manage-row,
.exhibition-admin,
.story-editor,
.empty,
.media-tile,
.account-device {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-highlight), 0 24px 70px rgba(0, 0, 0, 0.3);
}

.recent-card,
.index-card {
  padding: 9px;
}

.recent-card__frame,
.index-card__cover,
.story-card__cover,
.media-tile__frame,
.manage-row__thumb {
  border-radius: 12px;
}

.story-card {
  padding: 14px;
}

.manage-row {
  margin-bottom: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.manage-row:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.11) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
}

.story-editor {
  padding: clamp(12px, 1.6vw, 20px);
}

.story-table-wrap {
  border-radius: 14px;
  border-color: var(--glass-border);
  background: rgba(4, 8, 13, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.story-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(12, 18, 26, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--glass-border);
}

.story-table td {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.story-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.story-table tr.is-selected {
  background: rgba(156, 236, 228, 0.08);
  box-shadow: inset 3px 0 0 rgba(156, 236, 228, 0.8);
}

/* Glass controls */

.btn,
.category-tab,
.chapter-tab,
.pager__btn,
.textbtn,
.filter {
  border-radius: 10px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.btn--ghost,
.category-tab,
.chapter-tab,
.pager__btn,
.textbtn,
.filter {
  background: var(--glass-surface);
  border-color: var(--glass-border);
  box-shadow: var(--glass-highlight);
}

.btn--primary {
  background: linear-gradient(135deg, rgba(168, 244, 236, 0.96), rgba(122, 198, 216, 0.86));
  border-color: transparent;
  color: #04201e;
  box-shadow: 0 10px 34px rgba(122, 198, 216, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(190, 250, 244, 1), rgba(142, 214, 230, 0.94));
}

.category-tab.is-active,
.chapter-tab.is-active {
  background: rgba(156, 236, 228, 0.12);
  border-color: rgba(156, 236, 228, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.field__input,
.shot-caption,
.shot-script,
.media-tile__caption {
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.shot-caption,
.shot-script {
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Glass overlays */

.sheet__panel {
  border-radius: 22px;
  border-color: var(--glass-border);
  background: linear-gradient(
    145deg,
    rgba(24, 32, 42, 0.92) 0%,
    rgba(10, 15, 22, 0.94) 100%
  );
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 44px 120px rgba(0, 0, 0, 0.6);
}

.sheet::backdrop {
  background: rgba(3, 6, 10, 0.62);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.context-menu {
  border-radius: 14px;
  border-color: var(--glass-border);
  background: rgba(16, 23, 32, 0.9);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 26px 70px rgba(0, 0, 0, 0.55);
}

.lightbox {
  background: rgba(3, 6, 10, 0.82);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
}

.lightbox__media img,
.lightbox__media video {
  border-radius: 16px;
  border-color: var(--glass-border);
}

.exhibition__nav,
.story-nav {
  background: rgba(14, 20, 28, 0.5);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 14px;
}

.story-nav {
  border-radius: 50%;
}

.exhibition__label {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(10, 15, 22, 0.36);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.uploader__zone {
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.toast {
  border-radius: 12px;
  background: rgba(16, 23, 32, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media (max-width: 680px) {
  .recent-card,
  .index-card,
  .story-card,
  .story-editor {
    border-radius: 14px;
  }
}


/* Centered borderless section navigation */

.subnav__inner {
  justify-content: center;
  gap: clamp(18px, 3.2vw, 52px);
}

.subnav__link {
  padding: 8px 4px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.subnav__link:hover {
  border: 0;
  background: none;
  color: var(--ink);
}

.subnav__link.is-active {
  border: 0;
  background: none;
  color: var(--mint);
  text-shadow: 0 0 18px rgba(156, 236, 228, 0.35);
}

@media (max-width: 680px) {
  .subnav__inner {
    justify-content: flex-start;
    gap: 22px;
  }

  .subnav__link {
    font-size: 12px;
  }
}


@media (max-width: 680px) {
  .subnav__inner {
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}
