/* Studio closer, two-tone lines, case facts strip, staged reveals.
   Patterns only. Type stays --font-display / --font-body.
   Space Grotesk has no italic, so a word is emphasised with weight and colour. */

.centered-footer.studio-closer {
  padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 40px) 32px;
  background: #fff;
  color: #3a4150;
  text-align: left;
}

.studio-closer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.studio-closer .footer-logo {
  display: block;
  width: min(100%, 920px);
  margin: 0 0 clamp(28px, 4vw, 48px);
}

.studio-closer .footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.studio-closer .footer-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 28px 40px;
  align-items: start;
  padding-bottom: 28px;
}

.studio-closer .footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

.studio-closer .footer-col-label {
  margin: 0 0 8px;
  font-family: var(--font-display), "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #536173;
}

.studio-closer .footer-col a {
  min-height: 44px;
  font-family: var(--font-body), Inter, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  color: #1d1d1f;
}

.studio-closer .footer-news-title {
  margin: 0 0 12px;
  font-family: var(--font-display), "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #1d1d1f;
}

.studio-closer .footer-news-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 4px 0 8px;
}

.studio-closer .footer-news-form label {
  display: block;
  margin: 0;
  font-family: var(--font-body), Inter, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #3a4150;
}

.studio-closer .footer-news-form input:not([type="checkbox"]),
.studio-closer .footer-news-form select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d4d4d8;
  border-radius: 12px;
  background: #f5f5f7;
  font-family: var(--font-body), Inter, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

.studio-closer .footer-news-form .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.studio-closer .footer-news-form .check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
}

.studio-closer .footer-news-form .button {
  align-self: flex-start;
  min-height: 44px;
}

.studio-closer .footer-news-status {
  margin: 0;
  font-family: var(--font-body), Inter, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.studio-closer .footer-social {
  flex-basis: auto;
  order: 0;
  gap: 8px;
  margin-top: 4px;
  padding: 0;
  border: 0;
}

.studio-closer .footer-bottom {
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e3e9f0;
  text-align: left;
}

.studio-closer .footer-bottom small,
.studio-closer .footer-utilities {
  font-family: var(--font-body), Inter, sans-serif;
  font-size: 14px;
}

@media (max-width: 800px) {
  .studio-closer .footer-band {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .studio-closer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .studio-closer .footer-utilities {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

html[data-theme="dark"] .centered-footer.studio-closer {
  background: #111214;
  color: #A9AEB8;
}

html[data-theme="dark"] .studio-closer .footer-col-label {
  color: #A9AEB8;
}

html[data-theme="dark"] .studio-closer .footer-col a,
html[data-theme="dark"] .studio-closer .footer-news-title,
html[data-theme="dark"] .studio-closer .footer-news-form label {
  color: #F5F5F7;
}

html[data-theme="dark"] .studio-closer .footer-news-form input:not([type="checkbox"]),
html[data-theme="dark"] .studio-closer .footer-news-form select {
  background: #1B1D22;
  color: #F5F5F7;
  border-color: #2A2D34;
}

html[data-theme="dark"] .studio-closer .footer-bottom {
  border-top-color: #2A2D34;
}

html[data-theme="dark"] .studio-closer .footer-social a:hover {
  color: #111214;
  background: #ffe100;
}

/* Two-tone: a second line that already follows a break, plus one highlighted word.
   Light uses the existing muted slate. Yellow is only the dark-surface highlight. */
h1 br ~ span,
h2 br ~ span,
h3 br ~ span,
.tone-line {
  color: #536173;
  font-weight: 500;
}

h1.hx-h1 > span,
h1.hx-h1 > span.tone-line {
  color: #536173;
}

.tone-word,
.hx-h1 .tone-word,
.home-page main h2 .tone-word,
h1 .tone-line .tone-word,
h2 .tone-line .tone-word,
h3 .tone-line .tone-word {
  color: var(--ink, #0a1a33);
  font-weight: 650;
  font-style: normal;
}

html[data-theme="dark"] h1 br ~ span,
html[data-theme="dark"] h2 br ~ span,
html[data-theme="dark"] h3 br ~ span,
html[data-theme="dark"] .tone-line,
html[data-theme="dark"] h1.hx-h1 > span,
html[data-theme="dark"] h1.hx-h1 > span.tone-line {
  color: #A9AEB8;
}

html[data-theme="dark"] .tone-word {
  color: #ffe100;
}

.home-page .founder h2 span,
.founder h2 span {
  color: #b9c9e6;
}

/* Case facts: one strip. Role, scope, and outcome lead when those fields exist. */
.case-layout .case-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 8px 0 32px;
  padding: 0;
  border: 1px solid var(--case-line, #dce3ef);
  border-radius: 18px;
  overflow: hidden;
  background: var(--case-line, #dce3ef);
}

.case-layout .case-meta > div {
  margin: 0;
  padding: 16px 18px 18px;
  background: #fff;
  border: 0;
  min-width: 0;
}

.case-layout .case-meta dt {
  margin: 0 0 6px;
  font-family: var(--font-display), "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-layout .case-meta dd {
  margin: 0;
  font-family: var(--font-body), Inter, sans-serif;
  font-weight: 500;
}

@media (max-width: 700px) {
  .case-layout .case-meta {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .case-layout .case-meta {
  background: #2A2D34;
  border-color: #2A2D34;
}

html[data-theme="dark"] .case-layout .case-meta > div {
  background: #111214;
  color: #F5F5F7;
  border-color: transparent;
}

/* Staged entrance: short rise. Hidden only after JS confirms motion is allowed. */
html.staged-motion .rise-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--rise-delay, 0ms);
}

html.staged-motion .rise-in.is-in {
  opacity: 1;
  transform: none;
}

.hx-h1 .rise-word,
html[data-theme="dark"] .hx-h1 .rise-word {
  color: inherit;
}

html.staged-motion .rise-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  animation: studio-word 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 42ms);
}

@keyframes studio-word {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.staged-motion .rise-in,
  html.staged-motion .rise-word {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

html:has(#motion-toggle[aria-pressed="true"]) .rise-in,
html:has(#motion-toggle[aria-pressed="true"]) .rise-word {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}
