.home-page {
  color-scheme: dark;
  --bg: #111116;
  --surface: #18181f;
  --subtle: #1c1c24;
  --ink: #f8f6f5;
  --muted: #c2bdc0;
  --line: #423c43;
  --accent: #ff8b81;
  --focus: #ff8b81;
  --button-fill: #b62534;
  --button-hover: #d13741;
}

.home-page .site-header {
  position: relative;
  z-index: 1;
  border-color: #ffffff20;
  background: #111116;
}

.studio-hero { border-bottom: 1px solid #ffffff20; }
.studio-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr);
  align-items: center;
  gap: clamp(1.3rem, 4vw, 3.6rem);
  min-height: min(80vh, 43rem);
  padding-block: clamp(3.1rem, 7vw, 6.3rem);
}
.studio-intro h1 {
  font-size: clamp(3rem, 5.15vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -.043em;
  line-height: 1.035;
  text-wrap: initial;
}
.studio-intro p {
  max-width: 27rem;
  margin-top: clamp(1rem, 2.5vw, 1.65rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}
.studio-intro .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.5rem; }
.home-page .button { border-radius: .55rem; }
.studio-intro .button { min-height: 3rem; padding-inline: 1.25rem; }
.studio-intro .text-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); }
.studio-feature {
  min-width: 0;
  padding: .5rem;
  border: 1px solid #484349;
  border-radius: 1.4rem;
  background: #1f1d23;
  box-shadow: 0 1.2rem 3rem #08070a75;
}
.studio-feature-image { display: block; border-radius: .95rem; }
.studio-feature img { width: 100%; border-radius: inherit; }
.studio-feature figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .2rem 1rem; padding: .65rem .7rem .15rem; }
.studio-feature h2 { font-size: clamp(1.15rem, 2vw, 1.48rem); }
.studio-feature p { margin-top: .1rem; color: var(--muted); font-size: .92rem; }
.studio-feature figcaption a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.studio-3d-sample { max-width: 38rem; margin-top: 1.5rem; border-top: 1px solid #dad3cf; }
.studio-3d-sample > summary { min-height: 2.75rem; padding-block: .6rem; color: #4d4449; font-weight: 650; cursor: pointer; }
.studio-sculpture { min-width: 0; margin: .5rem 0; }
.studio-sculpture figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .8rem; margin-top: .58rem; color: #65595f; font-size: .875rem; }
.studio-scene-instruction { display: none; }
.studio-sculpture:has([data-scene-ready]) .studio-scene-instruction { display: inline; }
.studio-sculpture .brand-scene:focus-within, .studio-sculpture .brand-scene[data-scene-dragging] { border-color: #ff8b81; }

.studio-services {
  color-scheme: light;
  color: #20191c;
  background: #faf7f4;
  --muted: #61565d;
  --focus: #ad2535;
}
.studio-service-entries {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: clamp(1.25rem, 3vw, 2rem);
}
.studio-service-entry {
  display: block;
  border: 1px solid #e5ddda;
  border-radius: 1rem;
  background: #fffdfa;
  box-shadow: 0 .45rem 1.2rem #211e1e12;
  text-decoration: none;
}
.studio-service-entry h3 { max-width: 24rem; font-size: clamp(1.35rem, 2.7vw, 2.1rem); text-wrap: initial; }
.studio-service-entry p { max-width: 30rem; margin-top: .52rem; color: var(--muted); }
.studio-service-entry span {
  display: inline-block;
  margin-top: 1.15rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .24em;
}
.studio-service-copy { padding: clamp(1.25rem, 3.1vw, 2rem); }

.studio-work { background: #17161d; }
.studio-project-viewer {
  display: grid;
  grid-template-columns: minmax(11.5rem, .29fr) minmax(0, 1fr);
  align-items: start;
  margin-block: clamp(1.3rem, 3.4vw, 2.5rem) clamp(3rem, 7vw, 5.2rem);
  border: 1px solid #403640;
  background: #212029;
}
.studio-project-tabs { display: grid; }
.studio-project-tabs button {
  position: relative;
  display: grid;
  gap: .15rem;
  min-width: 0;
  min-height: 3.6rem;
  padding: .82rem 1rem;
  border: 0;
  border-bottom: 1px solid #403640;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.studio-project-tabs button::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  content: '';
  transform: scaleY(0);
  transition: transform .19s ease-out;
}
.studio-project-tabs button span { font-size: 1rem; font-weight: 680; }
.studio-project-tabs button small { color: var(--muted); font-size: .82rem; }
.studio-project-tabs button[aria-selected='true'] { background: #3b2530; color: #ffd9d5; }
.studio-project-tabs button[aria-selected='true']::before { transform: scaleY(1); }
.studio-project-tabs button:focus-visible { z-index: 1; outline-offset: -3px; }
.studio-project-panel { grid-column: 2; min-width: 0; border-left: 1px solid #403640; }
.studio-project-panel img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.studio-project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1.4rem;
  margin: 0;
  padding: .95rem clamp(.85rem, 3vw, 1.4rem) .3rem;
}
.studio-project-facts dt { color: var(--ink); font-weight: 675; }
.studio-project-facts dd { margin: .28rem 0 0; color: var(--muted); font-size: .94rem; }
.studio-project-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.1rem;
  padding: .25rem clamp(.85rem, 3vw, 1.4rem) .75rem;
}
.studio-project-caption a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--accent); font-weight: 650; text-underline-offset: .24em; }
.studio-project-tabs[hidden] ~ .studio-project-panel { grid-column: 1 / -1; border-left: 0; }
.studio-work .work-heading h3 { font-size: clamp(1.45rem, 3vw, 2.25rem); }
.studio-work .project-visual { overflow: hidden; background: #242330; }
.studio-work .project-visual img { transition: transform .32s ease-out; }
.studio-work .project-card { display: flex; align-items: start; flex-direction: column; }
.studio-work .project-card-link { width: 100%; height: auto; flex: 1; padding-bottom: .3rem; }
.studio-work .project-direct-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
.home-page .page-contact { background: #251b25; }
.studio-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .81fr);
  align-items: center;
  gap: clamp(1.2rem, 6vw, 4rem);
}
.studio-contact-layout h2 + p { max-width: 28rem; margin-top: .7rem; color: var(--muted); }
.studio-request-paths { display: grid; border-top: 1px solid var(--line); }
.studio-request-paths a { display: grid; gap: .14rem; padding: .85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.studio-request-paths strong { color: var(--accent); font-size: 1.12rem; text-decoration: underline; text-underline-offset: .22em; }
.studio-request-paths span { color: var(--muted); }

.case-page {
  --case-backdrop: #22232b;
  --case-ink: #f8f6f5;
  --case-muted: #ded6db;
  --case-accent: #ffa299;
  --case-line: #ffffff30;
}
.case-page-endgame-contracting { --case-backdrop: #13162e; --case-accent: #adb6ff; }
.case-page-top-loaded-tcg { --case-backdrop: #102530; --case-accent: #9be3ee; }
.case-page-masterbinds { --case-backdrop: #251729; --case-accent: #f0b4ef; }
.case-page-everything-optcg { --case-backdrop: #2f1e15; --case-accent: #ffd2a4; }
.case-page-bad-monster-games { --case-backdrop: #221823; --case-accent: #fbb9d6; }
.case-page-jot-india { --case-backdrop: #412219; --case-accent: #ffd3a3; }
.case-page-mymicromacro { --case-backdrop: #e4eff6; --case-ink: #142531; --case-muted: #37515e; --case-accent: #234c65; --case-line: #234c6550; }
.case-page-marketfloor { --case-backdrop: #152a22; --case-accent: #adf0c7; }
.case-page .case-hero {
  color: var(--case-ink);
  background: var(--case-backdrop);
  --muted: var(--case-muted);
  --accent: var(--case-accent);
  --focus: var(--case-accent);
}
.case-page .case-heading h1 { font-size: clamp(2.5rem, 7.5vw, 5.7rem); }
.case-page .case-cover { padding: clamp(.3rem, 1.2vw, .82rem); border: 1px solid var(--case-line); }
.case-page .case-cover img { width: 100%; }

@media (hover: hover) {
  .studio-work .project-card-link:hover img { transform: scale(1.04); }
  .studio-service-entry:hover span, .studio-project-caption a:hover { text-decoration-thickness: 2px; }
  .studio-request-paths a:hover strong { text-decoration-thickness: 2px; }
  .studio-project-tabs button:hover { color: var(--accent); }
}

@media (prefers-reduced-motion: no-preference) {
  .studio-project-viewer[data-project-interacted] .studio-project-panel:not([hidden]) img { animation: show-project .28s ease-out both; }
  @keyframes show-project {
    from { clip-path: inset(0 0 0 8%); }
    to { clip-path: inset(0); }
  }
}

@media (max-width: 57rem) {
  .studio-hero-inner { grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); min-height: auto; }
  .studio-intro h1 { font-size: clamp(2.65rem, 5.9vw, 4.2rem); }
}

@media (max-width: 47rem) {
  .studio-hero-inner, .studio-service-entries, .studio-contact-layout { grid-template-columns: minmax(0, 1fr); }
  .studio-hero-inner { gap: 2rem; padding-block: 2.4rem 2.1rem; }
  .studio-intro h1 { font-size: clamp(2.35rem, 8.9vw, 4.2rem); }
  .studio-sculpture { width: min(100%, 36rem); margin-inline: auto; }
}

@media (max-width: 38rem) {
  .studio-project-viewer { grid-template-columns: minmax(0, 1fr); }
  .studio-project-panel { grid-column: 1; border-left: 0; }
  .studio-project-facts { grid-template-columns: minmax(0, 1fr); }
  .studio-project-tabs button { min-height: 3rem; padding: .55rem .8rem; }
}
