/* Spectre Studios: selected work in large rounded cards, then a before/after comparison. Same language as the H3 hero. */
.studios { padding: clamp(96px, 9vw, 150px) var(--gutter) clamp(88px, 8vw, 130px); }
.st-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(44px, 5vw, 72px); }
.st-kicker { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); margin-bottom: 20px; }
.st-title { font-family: var(--display); font-stretch: 100%; font-weight: 500; font-size: clamp(40px, 5vw, 80px); line-height: 1.0; letter-spacing: -0.035em; max-width: 12ch; text-wrap: balance; }
.st-intro p { color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; max-width: 30em; margin-bottom: 26px; }
.pill-link { display: inline-flex; align-items: center; padding: 11px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--rule-2); background: rgba(250, 250, 248, 0.045); transition: box-shadow .25s; }
.pill-link:hover { box-shadow: inset 0 0 0 1px var(--milk); }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 24px); }
.project figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; background: var(--raise); }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.project:hover img { transform: scale(1.035); }
.project-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; }
.project-name { font-size: 17px; font-weight: 500; }
.project-tag { font-size: 13px; color: var(--ink-2); padding: 4px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-2); white-space: nowrap; }
.project-client { font-size: 14px; color: var(--ink-3); margin-top: 4px; }

.transform { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(80px, 8vw, 128px); }
.transform-title { font-family: var(--display); font-stretch: 100%; font-weight: 500; font-size: clamp(30px, 3.2vw, 50px); line-height: 1.05; letter-spacing: -0.03em; max-width: 13ch; margin-bottom: 20px; }
.transform-copy p { color: var(--ink-2); font-size: 17px; max-width: 26em; }
.transform-copy .transform-hint { font-size: 14px; color: var(--ink-3); margin-top: 26px; }
.compare { position: relative; aspect-ratio: 760 / 1352; height: min(84vh, 860px); width: auto; max-width: 100%; justify-self: center; overflow: visible; margin-bottom: 44px; border-radius: 18px; background: var(--raise); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--milk); pointer-events: none; }
.compare-knob { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: var(--milk); box-shadow: 0 6px 24px rgba(11, 11, 12, 0.5); }
.compare-knob::before, .compare-knob::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -5px; border: 5px solid transparent; }
.compare-knob::before { left: 9px; border-right-color: var(--obsidian); }
.compare-knob::after { right: 9px; border-left-color: var(--obsidian); }
.compare-tag { position: absolute; bottom: -38px; font-size: 13px; font-weight: 500; color: var(--ink-2); pointer-events: none; }
.compare-tag--l { left: 2px; }
.compare-tag--r { right: 2px; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; color: var(--milk); border: 0; }
.st-note { font-size: 13px; color: var(--ink-3); margin-top: 40px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .project img { transition: none; } }

/* Mobile: swipeable project cards, then the comparison */
@media (max-width: 860px) {
  .st-head { grid-template-columns: 1fr; gap: 20px; }
  .st-title { font-size: 40px; }
  .projects { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .projects::-webkit-scrollbar { display: none; }
  .project { flex: 0 0 78%; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .projects { scroll-padding-left: var(--gutter); }
  .project figure { border-radius: 14px; }
  .transform { grid-template-columns: 1fr; gap: 24px; margin-top: 64px; }
  .transform-title { font-size: 30px; }
  .compare { border-radius: 14px; height: auto; width: min(68%, 280px); margin-bottom: 40px; }
}

/* Studios numbers: a spec sheet. One figure on the left, the other four as a ruled list on the right. */
.st-numbers { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(72px, 7vw, 112px); }
.st-numbers::before { content: ""; grid-column: 2; grid-row: 1; align-self: stretch; background: var(--rule-2); }
.st-big { grid-column: 1; grid-row: 1; }
.st-small { grid-column: 3; grid-row: 1; }
.st-big-n { font-family: var(--display); font-stretch: 100%; font-weight: 400; font-size: clamp(64px, 7.4vw, 116px); line-height: 0.9; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-plus { color: var(--studios); }
.st-big-l { font-size: 15px; color: var(--ink-3); margin-top: 16px; }
.st-small > div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; box-shadow: inset 0 1px 0 var(--rule-2); }
.st-small > div:last-child { box-shadow: inset 0 1px 0 var(--rule-2), inset 0 -1px 0 var(--rule-2); }
.st-small dt { font-size: 15px; color: var(--ink-3); }
.st-small dd { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -0.02em; white-space: nowrap; }
@media (max-width: 860px) {
  .st-numbers { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .st-numbers::before { display: none; }
  .st-big, .st-small { grid-column: 1; grid-row: auto; }
  .st-big-n { font-size: clamp(60px, 18vw, 76px); }
  .st-big-l { margin-top: 12px; }
  /* phone: no ruled box, just a 2 x 2 grid of figures, number above its label */
  .st-small { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .st-small > div, .st-small > div:last-child { flex-direction: column-reverse; justify-content: flex-end; align-items: flex-start; gap: 6px; padding: 0; box-shadow: none; }
  .st-small dt { font-size: 14px; line-height: 1.35; }
  .st-small dd { font-size: 28px; }
}
