:root {
  color-scheme: light;
  --ink: #171713;
  --muted: #5d584f;
  --paper: #f8f5ec;
  --white: #fffcf4;
  --line: #ddd7c8;
  --yellow: #ffd64e;
  --orange: #ec602f;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #9c380b; outline-offset: 4px; }
.dark :focus-visible { outline-color: var(--yellow); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(100% - 2.5rem, 73rem); margin-inline: auto; }
.dark { background: var(--ink); color: var(--white); }
.skip { position: absolute; z-index: 5; top: .7rem; left: .7rem; transform: translateY(-200%); background: var(--yellow); color: var(--ink); padding: .7rem; }
.skip:focus { transform: none; }
.bar { border-bottom: 1px solid #ffffff29; }
.bar .wrap, footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.05rem; }
.brand, nav a, .button { text-decoration: none; font-weight: 750; }
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand img { width: 2.2rem; height: 2.2rem; border-radius: .35rem; object-fit: contain; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.35rem; }
nav a { font-size: .92rem; }
nav a:hover, .back:hover { text-decoration: underline; }
.hero { padding-block: clamp(3.8rem, 9vw, 7.6rem); }
.hero .wrap { display: grid; grid-template-columns: 1.16fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.eyebrow { font-size: .83rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: var(--yellow); margin-bottom: 1rem; }
h1 { font-size: clamp(2.7rem, 7vw, 6.15rem); line-height: .99; letter-spacing: -.077em; text-wrap: balance; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero .intro { color: #ddd7c8; max-width: 39ch; margin-block: 1.4rem 1.65rem; font-size: 1.1rem; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; padding: .65rem 1.1rem; border: 1px solid var(--ink); border-radius: .45rem; background: var(--yellow); color: var(--ink); cursor: pointer; font: inherit; font-weight: 750; }
.button:hover { background: #ffb94b; }
.button.secondary { color: inherit; background: transparent; border-color: currentColor; }
.button.secondary:hover { text-decoration: underline; }
.studio-art { width: 100%; height: auto; border-radius: 1.3rem; box-shadow: 0 20px 70px #0005; }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.heading { margin-bottom: 1.6rem; }
.heading h2 { font-size: clamp(2rem, 5vw, 3.8rem); letter-spacing: -.06em; line-height: 1.04; margin-block: .3rem .6rem; }
.heading p:not(.eyebrow), .meta, .description { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: .85rem; background: var(--white); overflow: hidden; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: .55rem; padding: 1.15rem; }
.card h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
.card .card-link { font-weight: 750; margin-top: auto; padding-block: .45rem .1rem; }
.meta { font-size: .88rem; font-weight: 700; }
.media { position: relative; aspect-ratio: 16 / 10; margin: 0; background: #24231d; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: contain; }
.placeholder { display: grid; place-content: center; text-align: center; background: linear-gradient(145deg,#ffea99,#ffa051); padding: 1rem; }
.placeholder strong { font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1; letter-spacing: -.08em; }
.placeholder span { font-size: .86rem; font-weight: 700; margin-top: .45rem; }
.collection { border-top: .33rem solid var(--orange); }
.collection:nth-child(2n) { border-top-color: #c18d04; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .8rem; align-items: end; }
.filters label { display: grid; gap: .25rem; font-weight: 700; font-size: .9rem; }
input, select { min-width: 0; min-height: 2.85rem; width: 100%; border: 1px solid #857d70; border-radius: .45rem; background: var(--white); color: var(--ink); font: inherit; padding: .55rem .7rem; }
.count { margin-block: .85rem; color: var(--muted); }
.empty { padding: 1rem; border: 1px dashed #857d70; border-radius: .45rem; }
.channels { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.detail .back { display: inline-block; margin-bottom: 1.6rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.detail h1 { font-size: clamp(2.35rem, 6vw, 4.2rem); margin-block: .65rem 1rem; }
.detail .media { border-radius: .85rem; }
.detail p + p, .detail .actions { margin-top: 1rem; }
footer { border-top: .35rem solid var(--yellow); }
footer p { font-size: .93rem; color: #ddd7c8; }
@media (max-width: 820px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero .wrap, .grid, .detail-grid { grid-template-columns: 1fr; }
  .filters label:first-child { grid-column: 1 / -1; }
  .filters button { justify-self: start; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.heading h1 { margin-bottom: .65rem; }
.brand img { background: var(--yellow); }


.directory-card .card-body { gap: .75rem; }
.directory-card ul { width: 100%; list-style: none; padding: 0; margin: 0; }


.directory-grid { align-items: start; }
.directory-card ul { display: grid; gap: .5rem; }
.platform-button {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 3rem;
  padding: .5rem .65rem;
  border: 1px solid #cbc2af;
  border-radius: .55rem;
  background: #fffdf8;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
}
.platform-button img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  flex: none;
  border-radius: .28rem;
}
.platform-button:hover { background: #fff0b2; border-color: #a47915; }
.platform-button:active { background: var(--yellow); }
.portfolio-track .card-body {
  background: radial-gradient(ellipse at bottom left, #ffc89869, transparent 67%);
}
.portfolio-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: auto; padding-top: .35rem; }
.portfolio-actions .card-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0;
  padding: .55rem 1rem;
  border: 1px solid #ac5a2d57;
  border-radius: .8rem;
  background: linear-gradient(145deg, #ffffffdf 3%, #fff7eb70 49%, #ffb78352);
  backdrop-filter: blur(9px) saturate(140%);
  color: #251309;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 3px #ef944734, 0 4px 12px #7c3f1a24;
  text-decoration: none;
  line-height: 1.3;
}
.portfolio-actions .card-link:hover {
  border-color: #ac5a2d8c;
  background: linear-gradient(145deg, #fffffff2, #ffd4ad99);
  box-shadow: inset 0 1px 0 #fff, 0 5px 14px #7c3f1a33;
}
.portfolio-actions .card-link:active { box-shadow: inset 0 1px 4px #7c3f1a30; }



.portfolio-slider { container-type: inline-size; }
.portfolio-track {
  --card-width: min(67cqw, 39rem);
  display: flex;
  gap: .9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem calc((100cqw - var(--card-width)) / 2) 1.8rem;
  scrollbar-color: #c58555 transparent;
}
.portfolio-track .collection {
  flex: 0 0 var(--card-width);
  scroll-snap-align: center;
  transform-origin: center;
  border-top: 1px solid var(--line);
  box-shadow: 0 9px 18px #48270624;
  transition: transform 320ms cubic-bezier(.21,.65,.28,1), box-shadow 320ms ease;
}
.portfolio-track .media { aspect-ratio: 3 / 2; }
.portfolio-slider.is-ready .collection { transform: perspective(900px) translateY(.45rem) rotateX(4deg) scale(.94); }
.portfolio-slider.is-ready .is-active,
.portfolio-slider.is-ready .collection:focus-within {
  transform: perspective(900px) translateY(-.12rem) rotateX(0) scale(1);
  box-shadow: 0 11px 0 -7px #da915a80, 0 17px 22px #48270635;
}
.portfolio-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .55rem; margin-top: .7rem; }
.portfolio-count { min-width: 3.45rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.portfolio-controls button {
  padding: .55rem .85rem;
  min-height: 2.75rem;
  border: 1px solid #d19969;
  border-radius: .75rem;
  background: #fff5e5;
  color: #321a0d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.portfolio-controls button:hover:not([aria-disabled="true"]) { background: #ffd477; }
.portfolio-controls button[aria-disabled="true"] { opacity: .55; cursor: default; }
@media (max-width: 600px) {
  .portfolio-track { --card-width: 86cqw; gap: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-track .collection { transition: none; }
  .portfolio-slider.is-ready .collection { transform: none; }
}
