@font-face {
  font-family: Manrope;
  src: url("/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@property --rim-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
:root {
  color-scheme: dark;
  --bg: #141a1e;
  --panel: #1c252b;
  --ink: #eef3f0;
  --muted: #a7b5b7;
  --border: #3b4b50;
  --soft: #25343a;
  --green: #9ce7bb;
  --blue: #89d8ee;
  --gold: #e8c77e;
  --red: #f18478;
  --accent: var(--green);
  --danger: #f7a195;
  --font: Manrope, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.85, 0.2, 1);
}
* {
  box-sizing: border-box;
}
html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  background:
    radial-gradient(ellipse at 4% 5%, #1c3c342f, transparent 42%),
    radial-gradient(ellipse at 100% 36%, #1d425130, transparent 42%),
    radial-gradient(ellipse at 58% 100%, #4f41221c, transparent 40%), var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.38;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}
::selection {
  background: #9ce7bb;
  color: #14201a;
}
svg {
  display: block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.site-shell {
  position: relative;
  z-index: 1;
  max-width: 1344px;
  padding: 0 48px;
  margin: auto;
  transform-origin: 50% 35%;
  transition:
    filter 0.65s var(--ease),
    transform 0.7s var(--ease),
    opacity 0.65s var(--ease);
}
.site-shell.is-focused {
  filter: blur(5px);
  transform: scale(0.98);
  opacity: 0.6;
}
.header {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 23px;
}
.wordmark {
  width: 115px;
  height: 40px;
  transition: transform 0.35s var(--ease);
}
.brand:hover .wordmark {
  transform: translateY(-2px);
}
.brand-line {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
.audio-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sound {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #547366;
  border-radius: 50%;
  background: #9ce7bb09;
  transition:
    box-shadow 0.3s,
    background 0.3s;
}
.sound:hover {
  background: #9ce7bb15;
  box-shadow: 0 0 20px #9ce7bb0d;
}
.play-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}
.play-icon:before {
  content: "";
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--green);
  margin-left: 3px;
}
.sound[aria-pressed="true"] {
  border-color: var(--green);
}
.sound[aria-pressed="true"] .play-icon:before {
  border: 0;
  margin: 0;
  width: 9px;
  height: 9px;
  border-radius: 1px;
  background: var(--green);
}
.volume-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.volume-control input {
  width: 78px;
  min-height: 44px;
  padding: 0;
  accent-color: var(--blue);
  border: 0;
  background: none;
}
.volume-control output {
  width: 40px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.intro {
  padding: 43px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.intro h1 {
  font-size: 27px;
  line-height: 1.5;
  font-weight: 550;
  letter-spacing: -0.85px;
  margin: 0;
}
.intro h1 span {
  color: var(--muted);
  font-weight: 450;
}
.collection-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  transform: rotate(-9deg);
  padding: 6px;
}
.collection-mark i {
  width: 10px;
  height: 10px;
  display: block;
  border: 1px solid var(--green);
  border-radius: 2px;
}
.collection-mark i:nth-child(2) {
  border-color: var(--blue);
}
.collection-mark i:nth-child(3) {
  border-color: var(--gold);
}
.collection-mark i:last-child {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 14px #f1847816;
}
.music-on .collection-mark {
  animation: float-mark 4s ease-in-out infinite;
}
@keyframes float-mark {
  50% {
    transform: translateY(-4px) rotate(4deg);
  }
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  align-items: stretch;
}
.project-card,
.detail-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  isolation: isolate;
}
.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 18px #00000014;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.4s;
  animation: arrive 0.65s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 85ms);
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.project-card:before,
.detail-panel:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--rim-angle),
    transparent 0deg,
    transparent 45deg,
    var(--accent) 95deg,
    #e8f8f3 120deg,
    transparent 155deg,
    transparent 240deg,
    var(--accent) 290deg,
    transparent 330deg
  );
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  transition: opacity 0.4s;
  animation: rim-turn 4.5s linear infinite;
  animation-play-state: paused;
}
.project-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--accent) 7%, transparent),
    transparent 70%
  );
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.4s;
}
.project-card:hover,
.project-card:focus-within {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 46%, var(--border));
  box-shadow:
    0 18px 38px #0004,
    0 0 30px color-mix(in srgb, var(--accent) 4%, transparent);
}
.project-card:hover:before,
.project-card:focus-within:before,
.detail-panel:before {
  opacity: 1;
  animation-play-state: running;
}
.project-card:hover:after,
.project-card:focus-within:after {
  opacity: 1;
}
.project-card.is-origin {
  visibility: hidden;
  animation: none;
}
.project-card.flight-card {
  width: 100%;
  height: 100%;
  animation: none !important;
  transform: none !important;
  pointer-events: none;
  box-shadow: 0 18px 50px #0004;
}
.flight-card:before {
  opacity: 1;
  animation-play-state: running;
}
@keyframes rim-turn {
  to {
    --rim-angle: 360deg;
  }
}
.media-stage {
  position: relative;
  background: #11191d;
  overflow: hidden;
  isolation: isolate;
}
.card-stage {
  height: 280px;
  flex-shrink: 0;
  border-radius: 11px 11px 0 0;
}
.stage-content {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.slide-frame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #11191d;
}
.media-render {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-stage .media-render {
  transition: filter 0.4s;
}
.media-open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: linear-gradient(
    180deg,
    #0810144d,
    transparent 38%,
    #08101412 68%,
    #08101485
  );
  z-index: 2;
}
.media-open:focus-visible {
  outline-offset: -6px;
}
.stage-status {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 3;
  max-width: calc(100% - 32px);
  pointer-events: none;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-size: 14px;
  line-height: 1.5;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, #1b262c);
  color: #eff5f0;
}
.status span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.status:before {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 7px color-mix(in srgb, var(--accent) 22%, transparent);
}
.stage-status {
  background: #152026cc;
  backdrop-filter: blur(10px);
  border-color: #d4ebde35;
}
.media-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111b21c9;
  border: 1px solid #c7e1dd45;
  color: #f1f7f4;
  backdrop-filter: blur(12px);
  opacity: 0;
  transition:
    opacity 0.25s,
    background 0.25s,
    transform 0.25s;
}
.media-prev {
  left: 12px;
}
.media-next {
  right: 12px;
}
.media-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.media-stage:hover .media-nav,
.media-stage:focus-within .media-nav,
.detail-stage .media-nav {
  opacity: 1;
}
.media-nav:hover {
  background: #22403be8;
  transform: translateY(-50%) scale(1.06);
}
.stage-hud {
  position: absolute;
  z-index: 3;
  left: 17px;
  right: 17px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  pointer-events: none;
}
.stage-progress {
  display: flex;
  gap: 5px;
  width: min(36%, 100px);
}
.stage-progress i {
  flex: 1;
  height: 3px;
  background: #e8f6ed46;
  border-radius: 2px;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.stage-progress i.current {
  background: var(--accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 22%, transparent);
}
.stage-progress i[data-video="true"] {
  border-radius: 0;
}
.stage-count {
  font-size: 14px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
  background: #111b21ad;
  border: 1px solid #a4bcbc26;
  padding: 4px 7px;
  border-radius: 5px;
  color: #f0f5f3;
}
.stage-count span {
  color: #bac7ca;
}
.video-glyph {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #142026c9;
  box-shadow: 0 0 30px #e8c77e10;
}
.video-glyph svg {
  width: 25px;
  height: 25px;
  fill: var(--gold);
  margin-left: 1px;
}
.no-media-mark {
  font-size: 58px;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.35;
}
.media-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 40px;
  background: #1a252b;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.media-failed .media-render {
  visibility: hidden;
}
.tile-copy {
  display: block;
  width: 100%;
  text-align: left;
  padding: 23px 22px 0;
  flex: 1;
  position: relative;
  z-index: 6;
}
.tile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}
.tile-title {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.65px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.tile-arrow {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.7;
  transition:
    transform 0.4s,
    opacity 0.4s;
}
.tile-arrow svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.project-card:hover .tile-arrow {
  transform: translate(3px, -3px);
  opacity: 1;
}
.card-desc {
  font-size: 14px;
  line-height: 1.65;
  margin: 10px 0 18px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 46px;
}
.card-bottom {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding: 8px 0;
  margin: 0 22px;
}
.card-reactions {
  display: flex;
  gap: 0;
}
.reaction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  min-width: 44px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 16px;
}
.r-count {
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.reaction:hover {
  background: #a3d7c509;
}
.reaction.mine {
  border-color: #76a68c;
  background: #9ce7bb12;
}
.comment-link {
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
.comment-link svg {
  height: 17px;
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.comment-link:hover {
  color: var(--blue);
}
.empty,
.loading {
  padding: 80px 24px;
  text-align: center;
  grid-column: 1/-1;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
}
.empty h2 {
  font-size: 24px;
  font-weight: 500;
  margin: 0;
}
footer {
  padding: 66px 0 60px;
  text-align: center;
}
footer p {
  font-size: 22px;
  line-height: 1.65;
  letter-spacing: -0.6px;
  font-weight: 500;
  margin: 0;
}
footer p span {
  color: var(--muted);
  font-weight: 400;
}
body.modal-open {
  overflow: hidden;
}
dialog {
  font: 16px/1.6 var(--font);
  color: var(--ink);
}
.detail {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 24px;
  margin: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  perspective: 1800px;
}
.detail[open] {
  display: grid;
  place-items: center;
}
.detail::backdrop {
  background: #0912164d;
}
.detail.closing::backdrop {
  background: #09121612;
}
.detail-panel {
  z-index: 2;
  width: min(810px, 100%);
  max-height: calc(100dvh - 48px);
  box-shadow: 0 28px 100px #0007;
  overflow: hidden;
  transform-origin: 0 0;
  will-change: transform;
  backface-visibility: hidden;
}
.detail-panel:before {
  z-index: 12;
  opacity: 0.8;
}
.flight-proxy {
  position: fixed;
  z-index: 3;
  transform-origin: 0 0;
  display: none;
  pointer-events: none;
  will-change: transform, opacity;
}
.flight-proxy .project-card {
  overflow: hidden;
}
.flight-proxy .media-nav {
  opacity: 0;
}
#detailContent {
  max-height: calc(100dvh - 50px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #66867a #172127;
}
.detail-stage {
  height: 350px;
  border-radius: 11px 11px 0 0;
}
.detail-stage .media-render {
  object-fit: contain;
}
.detail-stage .stage-content,
.detail-stage .slide-frame {
  background: #11191d;
}
.detail-stage .stage-hud {
  bottom: 16px;
}
.detail-stage.is-video .stage-hud {
  bottom: 56px;
}
.detail-stage.is-video .media-nav {
  top: 45%;
}
.close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 14;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #142026e8;
  color: #f0f5f3;
  border: 1px solid #a2c1b56b;
  backdrop-filter: blur(12px);
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.3s;
}
.close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.close:hover {
  background: #51332fe8;
  border-color: var(--red);
  transform: rotate(8deg);
}
.detail-body {
  padding: 28px 32px 32px;
}
.detail-body > .status {
  max-width: 100%;
  margin-bottom: 14px;
}
.detail h2 {
  font-size: 31px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.9px;
  margin: 0;
  overflow-wrap: anywhere;
}
.detail-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin: 18px 0 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 7px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}
.primary {
  background: var(--green);
  color: #17251c;
  border: 1px solid var(--green);
  transition:
    box-shadow 0.25s,
    filter 0.25s;
}
.primary:hover {
  box-shadow: 0 0 24px #9ce7bb14;
  filter: brightness(1.06);
}
.project-link {
  background: #89d8ee12;
  color: var(--blue);
  border-color: #89d8ee70;
}
.secondary {
  border: 1px solid #758d86;
  color: var(--ink);
}
.secondary:hover {
  background: #e2f6ed08;
}
.danger {
  color: var(--danger);
  border-color: #b26b60;
}
.detail-reactions {
  display: flex;
  gap: 8px;
  margin: 20px 0 24px;
}
.detail-reactions .reaction {
  background: #26353a;
  font-size: 21px;
  padding: 8px 13px;
}
.detail-reactions .reaction.mine {
  background: #9ce7bb17;
  border-color: #80b495;
}
.comments-section {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.comments-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.comments-heading h3 {
  font-size: 18px;
  letter-spacing: -0.3px;
  font-weight: 600;
  margin: 0;
}
.help,
small {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
#detailCommentCount {
  margin-left: 8px;
}
.comments-heading .help {
  margin: 0;
}
.comment-form-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}
.comment-form-grid input {
  height: 100px;
}
.comment-form-grid textarea {
  min-height: 100px;
}
label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0 7px;
}
input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #6c8982;
  border-radius: 7px;
  background: #172126;
  color: var(--ink);
  padding: 12px 14px;
  font: 16px/1.5 var(--font);
}
input::placeholder,
textarea::placeholder {
  color: #a7b5b7;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
form > .primary {
  margin-top: 16px;
}
.error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 12px;
}
.comment {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.comment:first-child {
  margin-top: 24px;
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.comment-meta strong {
  font-size: 14px;
  color: var(--ink);
  font-weight: 650;
}
.comment-meta button {
  margin-left: auto;
  color: var(--danger);
  min-height: 44px;
}
.comment p {
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.comment-empty {
  font-size: 14px;
  color: var(--muted);
  margin: 24px 0 0;
}
.studio {
  width: min(850px, calc(100% - 32px));
  max-height: 90dvh;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #5f7a70;
  background: var(--panel);
  box-shadow: 0 25px 100px #0007;
  overflow: hidden;
}
.studio::backdrop {
  background: #08111485;
  backdrop-filter: blur(8px);
}
#studioContent {
  padding: 32px;
  max-height: calc(90dvh - 2px);
  overflow: auto;
  overscroll-behavior: contain;
}
.studio h2 {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.7px;
  margin: 12px 40px 20px 0;
}
.studio h3 {
  font-size: 18px;
  font-weight: 600;
}
.eyebrow {
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.8px;
}
.studio-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.studio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.studio-row img,
.studio-video-icon {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}
.studio-video-icon {
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--gold);
}
.studio-project-label {
  flex: 1;
  min-width: 0;
}
.studio-project-label strong {
  font-size: 14px;
  display: block;
  overflow-wrap: anywhere;
}
.studio-project-label .help {
  font-size: 14px;
  display: block;
}
.row-actions {
  display: flex;
  gap: 6px;
}
.row-actions button {
  min-width: 44px;
  min-height: 44px;
  padding: 7px;
  font-size: 14px;
  border: 1px solid #60746e;
  border-radius: 5px;
}
.studio .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.form-actions .primary {
  margin: 0;
}
.music-settings {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 16px;
}
.music-settings > .secondary {
  margin-top: 16px;
}
.media-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.media-editor-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #172126;
}
.media-editor-item > img,
.media-editor-item > video {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.media-editor-caption {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px 0;
}
.media-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 5px 5px;
}
.media-editor-actions button {
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 20px;
}
.media-editor-actions button:hover {
  border-color: var(--border);
}
.media-editor-empty {
  grid-column: 1/-1;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  max-width: calc(100% - 32px);
  padding: 14px 24px;
  border-radius: 8px;
  background: var(--green);
  color: #15251b;
  font-size: 14px;
  z-index: 200;
  box-shadow: 0 10px 35px #0004;
  text-align: center;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 1100px) {
  .site-shell {
    padding: 0 32px;
  }
  .gallery {
    gap: 20px;
  }
  .card-stage {
    height: 245px;
  }
  .tile-copy {
    padding: 20px 17px 0;
  }
  .card-bottom {
    margin: 0 17px;
  }
  .tile-title {
    font-size: 20px;
  }
  .intro h1 {
    font-size: 25px;
  }
}
@media (max-width: 960px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .card-stage {
    height: 275px;
  }
  .intro {
    padding: 36px 0 30px;
  }
  .intro h1 {
    font-size: 23px;
  }
  .collection-mark {
    display: none;
  }
  footer {
    padding: 50px 0;
  }
  footer p {
    font-size: 20px;
  }
  .row-actions {
    flex-wrap: wrap;
  }
  .studio-project-label {
    min-width: 130px;
  }
}
@media (max-width: 600px) {
  .site-shell {
    padding: 0 20px;
  }
  .header {
    height: 88px;
    gap: 16px;
  }
  .wordmark {
    width: 98px;
    height: 36px;
  }
  .brand-line {
    display: none;
  }
  .brand {
    gap: 0;
  }
  .audio-controls {
    gap: 10px;
  }
  .sound {
    width: 44px;
    height: 44px;
  }
  .volume-control {
    gap: 7px;
  }
  .volume-control input {
    width: 57px;
  }
  .volume-control output {
    width: 36px;
  }
  .intro {
    padding: 29px 0 29px;
  }
  .intro h1 {
    font-size: 20px;
    line-height: 1.6;
    letter-spacing: -0.6px;
  }
  .intro h1 br {
    display: none;
  }
  .intro h1 span {
    display: block;
  }
  .gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .card-stage {
    height: 275px;
  }
  .tile-copy {
    padding: 21px 20px 0;
  }
  .tile-title {
    font-size: 23px;
  }
  .card-desc {
    min-height: 0;
    margin: 10px 0 17px;
  }
  .card-bottom {
    margin: 0 20px;
  }
  .media-nav {
    opacity: 1;
    width: 44px;
    height: 44px;
  }
  .stage-status {
    left: 14px;
    top: 14px;
  }
  .stage-hud {
    left: 15px;
    right: 15px;
    bottom: 14px;
  }
  .stage-progress {
    width: 90px;
  }
  .project-card:hover {
    transform: none;
  }
  .detail {
    padding: 14px;
  }
  .detail-panel {
    max-height: calc(100dvh - 28px);
  }
  #detailContent {
    max-height: calc(100dvh - 30px);
  }
  .detail-stage {
    height: 270px;
  }
  .detail-body {
    padding: 24px;
  }
  .detail h2 {
    font-size: 26px;
  }
  .detail-desc {
    font-size: 16px;
  }
  .close {
    top: 12px;
    right: 12px;
  }
  .detail-stage .media-nav {
    top: 52%;
  }
  .detail-stage.is-video .media-nav {
    top: 42%;
  }
  .detail-reactions {
    gap: 7px;
  }
  .detail-reactions .reaction {
    padding: 8px 10px;
  }
  .comment-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .comment-form-grid input {
    height: 48px;
  }
  .comments-heading {
    align-items: start;
  }
  .comments-heading h3 {
    font-size: 18px;
  }
  .comments-heading .help {
    font-size: 14px;
  }
  footer {
    padding: 44px 0 48px;
    text-align: left;
  }
  footer p {
    font-size: 19px;
    letter-spacing: -0.5px;
  }
  #studioContent {
    padding: 24px;
  }
  .studio .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .studio-row {
    flex-wrap: wrap;
  }
  .row-actions {
    margin-left: auto;
    flex-wrap: nowrap;
  }
  .studio-toolbar {
    gap: 8px;
  }
  .studio-toolbar .primary,
  .studio-toolbar .secondary {
    font-size: 14px;
    padding: 10px 12px;
  }
  .media-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .media-editor-item > img,
  .media-editor-item > video {
    height: 106px;
  }
  .media-editor-caption {
    font-size: 14px;
    padding: 8px 8px 0;
  }
  .media-editor-actions {
    padding: 3px;
  }
  .media-editor-actions button {
    width: 44px;
    height: 44px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .toast {
    width: max-content;
    bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .site-shell.is-focused {
    transform: none;
  }
  .project-card:hover,
  .project-card:focus-within {
    transform: none;
  }
  .project-card:before {
    background: linear-gradient(130deg, var(--accent), transparent 60%);
  }
  .detail-panel:before {
    background: linear-gradient(130deg, var(--accent), transparent 70%);
  }
}
/* Media fills its own viewport, never an intrinsic grid track. */
.slide-frame {
  display: block;
}
.media-render {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
}
.no-media-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.project-card:before,
.detail-panel:before {
  padding: 1.5px;
}
