/* Warm charcoal and brass for the Dojoism studio pages. */
.studio-theme {
  color-scheme: dark;
  --color-paper: #181715;
  --color-paper-2: #211f1c;
  --color-paper-3: #2b2823;
  --color-ink: #f3eee5;
  --color-ink-2: #d8d0c4;
  --color-muted: #bfb5a8;
  --color-rule: #3e3830;
  --color-rule-strong: #62594e;
  --color-accent: #d9b98d;
  --color-accent-ink: #1c160f;
  --color-focus: #eacaa0;
  --tech-ink: var(--color-ink);
  --tech-green: var(--color-accent);
  --font-display: var(--font-body);
  background: var(--color-paper);
}

.studio-theme::before,
.studio-theme::after { content: none; }

.studio-theme .container--wide {
  max-width: 1480px;
  padding-inline: clamp(1.25rem, 6.4vw, 6rem);
}

.studio-theme .site-nav {
  background: color-mix(in srgb, var(--color-paper) 93%, transparent);
  border-bottom: 0;
  box-shadow: none;
}

.studio-theme .nav-inner { min-height: 72px; }
.studio-theme .page-content { padding-top: 72px; }
.studio-theme .nav-drawer { inset-block-start: 72px; visibility: hidden; }
.studio-theme .nav-drawer.open { visibility: visible; }
.studio-theme .nav-logo,
.studio-theme .footer-logo { font-size: 1.35rem; font-weight: 800; }
.studio-theme .nav-logo .enso { width: 30px; height: 30px; }
.studio-theme .nav-links a { color: var(--color-ink); font-size: 1rem; }
.studio-theme .nav-links a:hover,
.studio-theme .nav-links a[aria-current] { color: var(--color-accent); }

.studio-theme .home-page {
  background: radial-gradient(ellipse at 76% 14rem, #27221b 0, transparent 38rem), var(--color-paper);
}

.studio-theme .home-hero {
  min-height: 0;
  padding: clamp(1.4rem, 2vw, 2rem) 0 1.25rem;
  background: none;
}

.studio-theme :is(.home-hero, .home-hero__copy, .home-hero__visual, .apps-hero, .manifesto-hero, .home-principles)::before,
.studio-theme :is(.home-hero, .manifesto-hero)::after { content: none; }

.studio-theme .home-hero__grid {
  min-height: 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(0.5rem, 2vw, 2rem);
}

.studio-theme .home-hero__copy { padding: 0; margin: 0; }

.studio-theme .hero-label {
  display: block;
  margin: 0 0 1rem;
  color: var(--color-ink-2);
  font: 600 clamp(0.9rem, 1.4vw, 1.19rem)/1.5 var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}

.studio-theme .home-page .hero-title {
  margin: 0 0 1.1rem;
  color: var(--color-ink);
  font-size: clamp(4rem, 8.4vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.073em;
  line-height: 0.93;
  text-shadow: none;
}

.studio-theme .home-page .hero-tagline {
  max-width: 29ch;
  margin: 0;
  color: var(--color-ink-2);
  font-size: clamp(1.24rem, 2.3vw, 2.075rem);
  line-height: 1.23;
  letter-spacing: -0.025em;
}

.studio-theme .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.65rem 1.35rem;
  margin-top: clamp(1.4rem, 2.6vw, 2.35rem);
}

.studio-theme .btn {
  width: auto;
  min-height: 50px;
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: none;
}

.studio-theme .btn::after { content: none; }
.studio-theme .btn--primary { background: var(--color-accent); border-color: transparent; color: var(--color-accent-ink); }
.studio-theme .btn--primary:hover { background: #eccda5; }
.studio-theme .btn--secondary { background: transparent; border-color: transparent; color: var(--color-ink); }
.studio-theme .btn--secondary:hover { color: var(--color-accent); background: var(--color-paper-2); }

.studio-theme .home-hero__visual {
  margin: 0 -2.5% 0 -9%;
  padding: 0;
  min-width: 0;
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
  transform: none;
  will-change: auto;
}

.studio-theme .home-hero__visual > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  filter: none;
  mask-image:
    linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent),
    linear-gradient(180deg, transparent, #000 10%, #000 89%, transparent);
  mask-composite: intersect;
}

.home-hero__visual figcaption {
  position: relative;
  margin-top: -0.4rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.83rem;
}

.home-hero__visual figcaption a,
.studio-link { text-decoration: none; }
.home-hero__visual figcaption a:hover,
.studio-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.studio-standards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  list-style: none;
  border-top: 1px solid var(--color-rule-strong);
  padding-block: 0.75rem;
  color: var(--color-ink-2);
  font-size: clamp(0.78rem, 1.3vw, 1.12rem);
}

.studio-theme :is(.section-title, .home-page .section-title, .value-title) { color: var(--color-ink); }
.studio-theme :is(.section-subtitle, .home-page .section-subtitle, .page-lead, .value-desc) { color: var(--color-muted); }

.studio-theme .home-page .section { padding: clamp(2.8rem, 5.8vw, 5.5rem) 0; }
.studio-theme .home-page .home-apps { padding-top: clamp(2rem, 3.75vw, 3.55rem); }

.studio-theme .home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: none;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.studio-theme .home-page .section-title {
  margin: 0;
  font-size: clamp(2.05rem, 3.65vw, 3.15rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.042em;
}

.studio-theme .studio-link { color: var(--color-accent); font-weight: 700; }
.studio-link span, .home-hero__visual figcaption span { margin-inline-start: 0.3em; }

.studio-theme .studio-app-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.75rem, 4.5vw, 4.5rem);
  margin: 0;
}

.studio-theme .studio-app-list .app-card {
  min-height: 88px;
  grid-column: auto;
  display: grid;
  grid-template: 'icon name arrow' auto 'icon description arrow' auto / 48px minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 0.15rem 1rem;
  padding: 1rem 0.4rem;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--color-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  transform: none;
  will-change: auto;
  transition: background-color var(--dur-short) var(--ease-out);
}

.studio-theme .studio-app-list .app-card::before { content: none; }
.studio-theme .studio-app-list .app-card:hover { background: var(--color-paper-2); }
.studio-theme .studio-app-list .app-card::after {
  content: '';
  grid-area: arrow;
  width: 0.48rem;
  height: 0.48rem;
  margin-inline: 0.2rem 0.6rem;
  border: solid var(--color-accent);
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}

.studio-theme .studio-app-list .app-icon {
  grid-area: icon;
  width: 48px;
  height: 48px;
  margin: 0;
  border: 0;
  border-radius: 11px;
  background: none;
  box-shadow: none;
  overflow: hidden;
}

.studio-theme .studio-app-list .app-icon img { width: 100%; height: 100%; border-radius: inherit; transform: none; }
.studio-theme .studio-app-list .app-name { grid-area: name; margin: 0; color: var(--color-ink); font-size: 1.18rem; line-height: 1.2; }
.studio-theme .studio-app-list .app-tagline { grid-area: description; min-height: 0; margin: 0; color: var(--color-muted); font-size: 0.95rem; line-height: 1.35; }

.studio-theme :is(.home-principles, .home-fit) { background: none; border-top: 1px solid var(--color-rule); }
.studio-theme .home-principles__grid { align-items: start; }
.studio-theme .home-principles__statement { padding: 0; border: 0; background: none; box-shadow: none; }
.studio-theme .home-principles__statement .section-subtitle { margin: 1rem 0 1.25rem; }
.studio-theme .home-principles__statement .btn { border: 1px solid var(--color-rule-strong); color: var(--color-ink); }
.studio-theme .home-principles__cards { border: 0; border-radius: 0; background: none; box-shadow: none; }
.studio-theme .home-principles__cards .value-item { padding: 1rem 0; border: 0; border-top: 1px solid var(--color-rule); background: none; }
.studio-theme .home-principles__cards .value-mark { background: var(--color-accent); }
.studio-theme .home-fit__list { gap: 0 1.75rem; }
.studio-theme .home-fit__list .geo-faq-item { padding: 1rem 0; border: 0; border-top: 1px solid var(--color-rule); border-radius: 0; background: none; box-shadow: none; transform: none; }
.studio-theme .home-fit__list a { color: var(--color-accent); }

.studio-theme :is(.apps-hero, .manifesto-hero) {
  padding: clamp(2.6rem, 5.5vw, 5.25rem) 0 2rem;
  background: radial-gradient(ellipse at 68% 0, #29241e, transparent 65%);
  border-color: var(--color-rule);
}

.studio-theme .breadcrumb,
.studio-theme .breadcrumb a { color: var(--color-muted); font-family: var(--font-body); }
.studio-theme .breadcrumb a:hover { color: var(--color-accent); }

.studio-theme :is(.apps-hero, .manifesto-hero) h1.page-title {
  color: var(--color-ink) !important;
  letter-spacing: -0.055em !important;
  font-size: clamp(2.7rem, 6vw, 5.25rem);
}

.studio-theme .manifesto-hero .page-lead { color: var(--color-muted) !important; }
.studio-theme .directory-tools { margin: 1.75rem 0 1.1rem; }
.studio-theme :is(.directory-search, .directory-summary) { border: 0; padding: 0; background: none; box-shadow: none; }
.studio-theme .directory-search span { color: var(--color-ink-2); font: 700 0.88rem var(--font-body); text-transform: none; }
.studio-theme .directory-search input { background: var(--color-paper-2); border-color: var(--color-rule-strong); box-shadow: none; }
.studio-theme .directory-search input:focus { background: var(--color-paper-2); border-color: var(--color-accent); }
.studio-theme .directory-summary { min-width: auto; display: flex; align-items: center; justify-content: end; gap: 0.35em; font-size: 0.9rem; }
.studio-theme .directory-summary strong { font-size: inherit; }

.studio-theme .filter-bar { gap: 0.45rem; justify-content: flex-start; margin: 0; }
.studio-theme .filter-tab { min-height: 40px; padding: 0.4rem 0.8rem; border-color: var(--color-rule-strong); background: transparent; color: var(--color-ink-2); box-shadow: none; transform: none; }
.studio-theme .filter-tab:hover { border-color: var(--color-accent); color: var(--color-ink); }
.studio-theme .filter-tab.active { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-accent-ink); }

.studio-directory { padding: 0 0 clamp(2.75rem, 6vw, 5.5rem); }
.studio-theme .studio-directory .app-card { grid-template: 'icon name arrow' auto 'icon description arrow' auto 'icon metadata arrow' auto / 48px minmax(0, 1fr) auto; min-height: 100px; }
.studio-theme .studio-directory .app-badges { grid-area: metadata; justify-content: flex-start; gap: 0.25rem 0.65rem; margin: 0.2rem 0 0; }
.studio-theme .studio-directory .badge { min-height: 0; padding: 0; border: 0; background: none; color: var(--color-muted); font: 600 0.8rem var(--font-body); text-transform: none; letter-spacing: 0; }
.studio-theme .studio-directory .badge + .badge::before { content: '·'; margin-inline-end: 0.65rem; color: var(--color-muted); }
.studio-theme .studio-directory .badge--status-soon { color: var(--color-accent); }
.studio-empty { color: var(--color-muted); border-top: 1px solid var(--color-rule); padding: 1.5rem 0; }

.studio-theme :is(.proof-item, .quote-block, .answer-card, .geo-fact, .pull) { background: var(--color-paper-2); border-color: var(--color-rule); color: var(--color-ink-2); box-shadow: none; }
.studio-theme :is(.proof-item, .quote-block, .answer-card, .geo-fact) :is(p, dd) { color: var(--color-ink-2); }
.studio-theme :is(.section-label, .proof-kicker, .geo-fact dt) { color: var(--color-accent); }
.studio-theme .site-footer { background: #131210; border-top: 1px solid var(--color-rule); }
.studio-theme :is(.footer-copy, .footer-copy a, .footer-links a, .footer-tagline) { color: var(--color-muted); }
.studio-theme .footer-copy a { text-decoration: none; }
.studio-theme .page-transition { background: var(--color-paper); color: var(--color-ink); }

@media (max-width: 850px) {
  .studio-theme .studio-app-list { gap: 0 1.5rem; }
  .studio-theme .home-hero__visual { margin-inline: -9% -9%; }
}

@media (max-width: 720px) {
  .studio-theme .nav-inner { width: 100%; min-height: 64px; }
  .studio-theme .nav-hamburger { position: static; }
  .studio-theme .home-hero .container--wide { width: 100%; }
  .studio-theme .page-content { padding-top: 64px; }
  .studio-theme .nav-drawer { inset-block-start: 64px; }
  .studio-theme .home-hero { padding-top: 2rem; }
  .studio-theme .home-hero__grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .studio-theme .home-page .hero-title { font-size: clamp(3.4rem, 14vw, 5.6rem); }
  .studio-theme .home-page .hero-tagline { max-width: 31ch; }
  .studio-theme .home-hero__actions { flex-direction: row; align-items: center; }
  .studio-theme .home-hero__actions .btn { width: auto; }
  .studio-theme .home-hero__visual { width: 114%; max-width: none; margin-inline: -7%; }
  .studio-standards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
  .studio-standards li:last-child { text-align: right; }
  .studio-theme .studio-app-list { grid-template-columns: minmax(0, 1fr); }
  .studio-theme .studio-app-list .app-card { min-height: 76px; }
  .studio-theme .studio-directory .app-card { min-height: 94px; }
  .studio-theme .directory-tools { grid-template-columns: 1fr; gap: 0.45rem; }
  .studio-theme .directory-summary { min-height: 0; justify-content: flex-start; }
}

@media (max-width: 365px) {
  .studio-theme .home-hero__actions { column-gap: 0.25rem; }
  .studio-theme .home-hero__actions .btn { padding-inline: 0.8rem; }
  .studio-standards { column-gap: 0.7rem; }
}
