/* Studio extends the existing editorial components. No new palette or runtime. */
.ed-studio {
  color: var(--ed-ink);
}

.ed-studio h1, .ed-studio h2 {
  font-family: var(--brand-heading);
  font-weight: 600;
}

.ed-studio section[id] {
  scroll-margin-top: 130px;
}

.studio-hero {
  min-height: 570px;
}

.studio-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  letter-spacing: -.025em;
}

.studio-hero .ed-hero__description {
  margin-bottom: 14px;
}

.studio-hero-label {
  color: var(--ed-gold);
  margin-bottom: 20px;
  font-size: .85rem;
  line-height: 1.9;
}

.studio-chart {
  position: absolute;
  right: 22px;
  bottom: 78px;
  width: 28%;
  opacity: .45;
  pointer-events: none;
}

.studio-chart svg {
  display: block;
  width: 100%;
  height: auto;
  stroke: var(--ed-gold);
  stroke-width: 1;
}

.studio-nav {
  margin-top: 24px;
  margin-bottom: 0;
}

.studio-philosophy {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 24px;
}

.studio-philosophy h2 {
  max-width: 14em;
}

.studio-powers {
  border-bottom: 1px solid var(--ed-rule);
}

.studio-powers .ed-challenge h3 {
  margin-top: 0;
}

.studio-crew-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.studio-crew-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px;
  background: var(--ed-surface);
  border: 1px solid var(--ed-rule);
  border-top: 2px solid var(--ed-brass);
  border-radius: 8px;
}

.studio-crew-top {
  display: flex;
  align-items: center;
  gap: 24px;
}

.studio-crew-top > div:last-child {
  min-width: 0;
}

.studio-crew-top .ed-eyebrow {
  margin-bottom: 6px;
}

.studio-crew-top h3 {
  font-size: 1.5rem;
  line-height: 1.6;
}

.studio-crew-top h3 a {
  color: var(--ed-ink);
  text-decoration: none;
}

.studio-crew-top h3 a:hover {
  color: var(--ed-brass);
  text-decoration: underline;
}

.studio-portrait, .studio-monogram {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  border-radius: 50%;
  border: 1px solid var(--ed-brass);
}

.studio-portrait {
  object-fit: cover;
}

.studio-monogram {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--ed-gold);
  background: var(--brand-navy);
  font: 2.4rem/1 Georgia, serif;
}

.studio-monogram::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--brand-gold);
  border-radius: 50%;
}

.studio-monogram::after {
  content: '✧';
  position: absolute;
  right: 4px;
  top: 1px;
  font-size: 1.2rem;
  background: var(--brand-navy);
}

.studio-display-name {
  font-size: .86rem;
  color: var(--ed-muted);
  line-height: 1.8;
}

.studio-world-role {
  font-size: .75rem;
  color: var(--ed-brass);
  margin-top: 8px;
  line-height: 1.8;
}

.studio-description {
  color: var(--ed-muted);
  font-size: .9rem;
  line-height: 2;
}

.studio-tags {
  color: var(--ed-brass);
  font-size: .73rem;
  letter-spacing: .025em;
}

.studio-crew-card > .ed-inline-link {
  margin-top: auto;
  align-self: flex-start;
}

.studio-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.studio-links li {
  min-width: 0;
}

.studio-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--interaction-link);
  font-size: .83rem;
  line-height: 1.8;
  text-underline-offset: 5px;
}

.studio-links img {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
}

.studio-links p {
  color: var(--ed-muted);
  line-height: 1.9;
  font-size: .82rem;
  margin-top: 8px;
}

.studio-voyage {
  display: grid;
  grid-template-columns: .85fr 1.3fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--ed-rule);
}

.studio-voyage h3 {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.studio-voyage .ed-status {
  margin: 0;
}

.studio-voyage p:not(.ed-eyebrow) {
  color: var(--ed-muted);
  line-height: 2;
  font-size: .9rem;
}

.studio-related-crew {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  padding: 0;
  margin: 16px 0 8px;
}

.studio-related-crew a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--interaction-link);
  font-size: .82rem;
}

.studio-lab-subtitle {
  color: var(--ed-gold);
  line-height: 1.9;
}

.studio-channel {
  display: grid;
  grid-template-columns: .85fr 1.3fr;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--ed-rule);
}

.studio-channel h3 {
  font-size: 1.25rem;
  line-height: 1.8;
}

.studio-closing {
  border-top: 1px solid var(--ed-rule);
  max-width: 50em;
  margin-inline: auto;
  text-align: center;
}

.studio-closing h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.8;
  margin-bottom: 24px;
}

.studio-closing > p:not(.ed-eyebrow) {
  color: var(--ed-muted);
  line-height: 2;
  font-size: .92rem;
  margin-bottom: 20px;
}

.studio-closing .ed-button {
  margin-top: 8px;
}

.studio-member {
  max-width: 850px;
  margin: 32px auto;
  padding: 36px;
  background: var(--ed-surface);
  border: 1px solid var(--ed-rule);
  border-radius: 8px;
}

.studio-member .studio-crew-top {
  margin-bottom: 32px;
}

.studio-member h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.6;
}

.studio-member > .studio-links {
  margin-top: 24px;
}

.studio-log ol {
  padding-left: 24px;
}

.studio-log li {
  padding-block: 16px;
  line-height: 2;
}

.studio-log time {
  color: var(--ed-brass);
  font-size: .8rem;
}

@media (max-width: 1000px) {
  .studio-chart {
    display: none;
  }
  .studio-crew-card {
    padding: 24px;
  }
  .studio-crew-top {
    align-items: flex-start;
    gap: 16px;
  }
  .studio-portrait, .studio-monogram {
    width: 80px;
    height: 80px;
    flex-basis: 80px;
  }
  .studio-philosophy {
    gap: 32px;
  }
}

@media (max-width: 700px) {
  .studio-hero {
    min-height: 0;
  }
  .studio-hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.5rem);
  }
  .studio-chart {
    display: none;
  }
  .studio-philosophy, .studio-crew-grid, .studio-voyage, .studio-channel {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .studio-philosophy .ed-section-heading {
    margin: 0;
  }
  .studio-voyage, .studio-channel {
    gap: 12px;
  }
  .studio-crew-top {
    flex-wrap: wrap;
  }
  .studio-member {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-studio * {
    animation: none;
    transition: none;
  }
}

@media print {
  .studio-chart, .studio-nav {
    display: none;
  }
  .studio-crew-grid {
    grid-template-columns: 1fr;
  }
  .studio-crew-card {
    break-inside: avoid;
  }
  .studio-monogram {
    background: #fff;
    color: #000;
  }
  .studio-member {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
  }
}
