:root {
  color-scheme: dark;
  --bg: #0f0d0a;
  --surface: #1a1610;
  --raised: #242018;
  --text: #f5efe4;
  --muted: #a99e8b;
  --quiet: #736959;
  --gold: #d9b45b;
  --gold-deep: #8c6a1f;
  --line: rgba(244,232,207,.13);
  --display: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 70% 0, rgba(217,180,91,.1), transparent 28rem), var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.studio-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; padding: 12px clamp(18px,4vw,58px); border-bottom: 1px solid var(--line); background: rgba(15,13,10,.76); backdrop-filter: blur(22px); }
.back-link { color: var(--muted); font-size: 13px; }
.studio-brand { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 680; }
.studio-brand img { width: 26px; height: 26px; border-radius: 7px; }
.studio-brand b { padding-left: 9px; border-left: 1px solid var(--line); color: var(--gold); }
.internal-badge { justify-self: end; padding: 7px 11px; border: 1px solid rgba(217,180,91,.28); border-radius: 999px; color: var(--gold); font-size: 10px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
main { width: min(calc(100% - 36px), 1500px); margin: auto; padding: 80px 0 120px; }
.studio-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; }
.kicker { margin: 0 0 18px; color: var(--gold); font-size: 11px; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font: 520 clamp(54px,8vw,112px)/.88 var(--display); letter-spacing: -.055em; }
.intro-copy { max-width: 620px; margin: 0 0 8px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.control-deck { display: grid; grid-template-columns: auto auto 1fr; gap: 34px; align-items: end; margin-top: 70px; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.025); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend, .format-readout > span { margin-bottom: 8px; color: var(--quiet); font-size: 10px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.segmented { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.segmented button { min-height: 36px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 680; }
.segmented button[aria-pressed="true"] { background: var(--gold); color: #17120a; }
.format-readout { justify-self: end; display: grid; justify-items: end; }
.format-readout strong { font: 520 22px/1 var(--display); }
.format-readout a { margin-top: 8px; color: var(--gold); font-size: 11px; }
.draft-notice { margin-top: 20px; padding: 14px 18px; border-left: 2px solid var(--gold); color: var(--muted); background: rgba(217,180,91,.06); font-size: 12px; }
.draft-notice strong { color: var(--text); }
.screen-grid { display: flex; gap: 10px; margin-top: 54px; overflow-x: auto; padding-bottom: 18px; scroll-snap-type: x proximity; }
.screen-candidate { flex: none; width: 270px; scroll-snap-align: start; }
.screen-grid[data-platform="ipad"] .screen-candidate { width: 520px; }
.screen-grid[data-platform="tvos"] .screen-candidate { width: 640px; }
/* One canvas = one exported screenshot, at its real aspect. Sizes in cqw scale with it. */
.canvas { position: relative; overflow: hidden; container-type: inline-size; aspect-ratio: 1320 / 2868; border-radius: 14px;
  background: radial-gradient(120% 70% at 50% 0, #263d61 0, #0d1429 70%); }
.screen-grid[data-platform="ipad"] .canvas { aspect-ratio: 2752 / 2064; }
.screen-grid[data-platform="tvos"] .canvas { aspect-ratio: 16 / 9; }
.screen-title { position: absolute; z-index: 3; top: 4.5%; left: 6%; right: 6%; margin: 0; text-align: center;
  font: 520 8.4cqw/1.02 var(--display); letter-spacing: -.03em; text-wrap: balance; color: var(--text); }
.screen-grid[data-platform="ipad"] .screen-title { top: 4%; font-size: 4.6cqw; }
.screen-grid[data-platform="tvos"] .screen-title { top: auto; bottom: 5%; left: 4%; right: auto; max-width: 60%; text-align: left;
  font-size: 3.3cqw; padding: .5em .8em .6em; border-radius: .5em; background: rgba(13,20,41,.72); backdrop-filter: blur(12px); }
/* Devices drawn like Apple's product bezels: black glass border, a metal band around it
   (titanium on iPhone 17 Pro, aluminum on iPad Pro), the Dynamic Island, side buttons. */
.device { position: absolute; z-index: 2; transform-origin: 50% 50%; box-sizing: border-box;
  padding: 1.15cqw; border-radius: 13.6% / 6.3%; background: #050506;
  box-shadow: 0 0 0 .38cqw #5d5f63, 0 0 0 .62cqw #24252a, 0 0 0 .7cqw rgba(255,255,255,.12),
              0 4cqw 9cqw rgba(0,0,0,.6); }
.device img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 11.6% / 5.35%; }
.device.phone::after { content: ""; position: absolute; left: 50%; top: 2.1%; width: 27%; height: 3.6%;
  transform: translateX(-50%); border-radius: 999px; background: #000; }
.device.phone::before { content: ""; position: absolute; right: -1.05cqw; top: 26%; width: .5cqw; height: 13%;
  border-radius: .3cqw; background: linear-gradient(90deg, #2b2c30, #6a6c70); }
.device.phone.landscape { border-radius: 6.3% / 13.6%; }
.device.phone.landscape img { border-radius: 5.35% / 11.6%; }
.device.phone.landscape::after { left: 2.1%; top: 50%; width: 3.6%; height: 27%; transform: translateY(-50%); }
.device.phone.landscape::before { right: auto; left: 26%; top: auto; bottom: -1.05cqw; width: 13%; height: .5cqw; }
.device.tablet { padding: .9cqw; border-radius: 4.3% / 5.7%;
  box-shadow: 0 0 0 .28cqw #8d9095, 0 0 0 .44cqw #3a3c40, 0 3cqw 7cqw rgba(0,0,0,.6); }
.device.tablet img { border-radius: 3.1% / 4.1%; }
.device.tablet::after { content: ""; position: absolute; left: 50%; top: .32cqw; width: .42cqw; height: .42cqw;
  transform: translateX(-50%); border-radius: 50%; background: #1d2a3a; }
.screen-grid[data-platform="ipad"] .device.phone { padding: .5cqw;
  box-shadow: 0 0 0 .18cqw #5d5f63, 0 0 0 .3cqw #24252a, 0 2cqw 5cqw rgba(0,0,0,.55); }
.screen-grid[data-platform="ipad"] .device.phone::before { right: -.5cqw; width: .25cqw; }
.bleed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen-grid[data-platform="iphone"] .bleed + .screen-title { text-shadow: 0 .2em 1em rgba(0,0,0,.8); }
.pending { position: absolute; z-index: 3; left: 50%; bottom: 6%; transform: translateX(-50%); white-space: nowrap; padding: .6em 1em;
  border: 1px dashed rgba(217,180,91,.7); border-radius: 999px; background: rgba(13,20,41,.8); color: var(--gold); font-size: 4cqw; font-weight: 700; }
.candidate-meta { padding: 10px 4px 0; color: var(--quiet); font-size: 10px; }
.studio-footer { display: flex; justify-content: space-between; gap: 30px; padding: 26px clamp(18px,4vw,58px); border-top: 1px solid var(--line); color: var(--quiet); font-size: 11px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 900px) {
  .studio-header { grid-template-columns: 1fr auto; }
  .studio-brand { display: none; }
  .studio-intro { grid-template-columns: 1fr; }
  .control-deck { grid-template-columns: 1fr; align-items: start; }
  .format-readout { justify-self: start; justify-items: start; }
}
@media (max-width: 560px) {
  main { padding-top: 54px; }
  .segmented { overflow-x: auto; }
  .studio-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

.pending.in-device { left: 26%; bottom: auto; top: 50%; transform: translate(-50%, -50%); font-size: 2.4cqw; }
