/* Studio page: an interactive directory spread (cover, portfolio reel, company profile, recruiting). */

/* ---------- hero */
.sp-hero { --h: 230; position: relative; background: radial-gradient(120% 90% at 85% 15%, hsl(var(--h) 70% 38% / .55), transparent 60%), var(--navy);
  color: #fff; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; }
.sp-hero.has-cover { min-height: min(62vh, 560px); }
.sp-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-hero.has-cover::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgb(11 11 46 / .15) 0%, rgb(11 11 46 / .1) 35%, rgb(11 11 46 / .92) 100%), linear-gradient(90deg, rgb(11 11 46 / .55), transparent 60%); }
.sp-hero-in { position: relative; z-index: 2; display: flex; gap: 26px; align-items: flex-end; padding: 40px 0 34px; }
.slogo.xl { width: 150px; height: 150px; padding: 18px; border-radius: 20px; background: rgb(11 11 46 / .78); border: 1px solid rgb(255 255 255 / .14); backdrop-filter: blur(8px); }
.sp-id h1 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.4rem); text-shadow: 0 2px 18px rgb(0 0 0 / .45); }
.sp-other { color: var(--mist); margin: .1em 0 .4em; }
.sp-tagline { font-size: 1.1rem; max-width: 40em; }
.sp-hero .tag { background: rgb(255 255 255 / .12); color: #fff; text-decoration: none; backdrop-filter: blur(4px); }
.sp-hero a.tag:hover { background: rgb(255 255 255 / .22); }
.sp-hero .btn.ghost { color: #fff; }
.sp-hiring { position: absolute; z-index: 3; top: 0; right: clamp(16px, 5vw, 64px); background: var(--red); color: #fff; font-weight: 800; letter-spacing: .08em;
  padding: 26px 16px 12px; border-radius: 0 0 10px 10px; text-decoration: none; box-shadow: 0 8px 24px rgb(230 30 42 / .35); font-size: .9rem; }
.sp-hiring:hover { padding-top: 32px; }

/* ---------- layout */
.sp-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; padding: 36px 0 56px; align-items: start; }
.sp-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.sp-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 20px; }
.sp-card h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 1.4em 0 .7em; }
.sp-card h3:first-child { margin-top: 0; }
.sp-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0 0 4px; font-size: .9rem; }
.sp-facts dt { font-weight: 800; color: var(--ink); }
.sp-facts dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.sp-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sp-cats li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: .62rem; font-weight: 700; color: #c5c6d6; line-height: 1.2; }
.sp-cats li a { display: contents; color: inherit; text-decoration: none; }
.sp-cats li svg { width: 40px; height: 40px; padding: 7px; border-radius: 10px; background: var(--paper); }
.sp-cats li.on { color: var(--navy); }
.sp-cats li.on svg { background: var(--navy); color: #fff; }
.sp-cats li.on a:hover svg { background: var(--red); }
.sp-about { font-size: .92rem; }
.sp-about p { margin-bottom: .6em; }
.sp-soft { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.sp-soft span { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: .2em .55em; font-size: .8rem; font-weight: 600; }
.sp-card .credits { margin: 0; padding-left: 1.1em; font-size: .9rem; }
.sp-recruit { border-color: var(--red); background: linear-gradient(180deg, #fff5f5, #fff 60%); }
.sp-recruit h3 { color: var(--red); display: flex; align-items: center; gap: 8px; }
.sp-recruit .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgb(230 30 42 / .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgb(230 30 42 / 0); } }
.sp-roles { list-style: none; margin: 0 0 .8em; padding: 0; }
.sp-roles li { padding: .45em 0; border-bottom: 1px solid #f3d9da; font-weight: 700; }
.sp-recruit p { font-size: .9rem; }
.sp-note { margin: 0 4px; }

/* ---------- portfolio reel */
.pf-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.pf-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.pf-count { background: var(--navy); color: #fff; border-radius: 999px; font-size: .8rem; padding: .15em .65em; }
.pf-ctl { display: flex; align-items: center; gap: 8px; }
.pf-pos { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.pf-pos b { color: var(--ink); }
.pf-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.pf-btn:hover { border-color: var(--navy); }
.pf-btn:disabled { opacity: .35; cursor: default; }
.pf-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pf-filter button { font: inherit; font-size: .85rem; font-weight: 700; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .35em .9em; cursor: pointer; }
.pf-filter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.pf-track { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: thin; border-radius: 14px; }
.pf-track:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.pf-piece { scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; }
.pf-piece[hidden] { display: none; }
.pf-img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--navy); cursor: zoom-in; }
.pf-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pf-img:hover img { transform: scale(1.03); }
.pf-img:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.pf-no { position: absolute; left: 14px; top: 12px; font-weight: 900; font-size: 1.5rem; color: #fff; letter-spacing: -.02em; text-shadow: 0 2px 12px rgb(0 0 0 / .6); }
.pf-stills { position: absolute; right: 12px; bottom: 12px; background: rgb(11 11 46 / .78); color: #fff; font-size: .78rem; font-weight: 800; border-radius: 999px; padding: .25em .7em; }
.pf-stills::before { content: "▦ "; }
.pf-cap { padding: 12px 4px 0; }
.pf-cap h3 { margin: 0 0 .2em; font-size: 1.1rem; }
.pf-n { color: var(--red); }
.pf-role { margin: 0 0 .3em; font-size: .92rem; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0; font-size: .8rem; color: var(--muted); font-weight: 600; }

.pf-thumbs { display: flex; gap: 8px; margin: 16px 0 0; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.pf-thumbs button { flex: none; width: 92px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .55; background: var(--navy); transition: opacity .2s, border-color .2s; }
.pf-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pf-thumbs button:hover { opacity: .85; }
.pf-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--red); }
.pf-thumbs button[hidden] { display: none; }
.pf-rights { list-style: none; margin: 22px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); columns: 2; column-gap: 28px; font-size: .74rem; color: var(--muted); }
.pf-rights li { break-inside: avoid; margin-bottom: 3px; }
.pf-empty { background: #fff; border: 1px dashed var(--line); border-radius: 14px; padding: 32px; text-align: center; }

/* ---------- lightbox */
.lb { width: min(1200px, 96vw); max-width: none; max-height: 96vh; padding: 0; border: 0; border-radius: 18px; background: #07071f; color: #fff; }
.lb::backdrop { background: rgb(5 5 20 / .86); backdrop-filter: blur(4px); }
.lb-in { display: flex; flex-direction: column; max-height: 96vh; }
.lb-x { position: absolute; right: 10px; top: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .12); color: #fff; font-size: 1.6rem; cursor: pointer; }
.lb-stage { position: relative; background: #000; display: flex; align-items: center; justify-content: center; min-height: 0; flex: 1; }
.lb-stage img { max-width: 100%; max-height: calc(96vh - 190px); object-fit: contain; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(11 11 46 / .7); color: #fff; font: inherit; font-weight: 800; font-size: 1.1rem; cursor: pointer; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-nav:hover, .lb-x:hover { background: var(--red); }
.lb-cap { display: flex; align-items: center; gap: 18px; padding: 14px 20px 6px; }
.lb-cap > div { flex: 1; min-width: 0; }
.lb-title { font-weight: 800; margin: 0; }
.lb-role { margin: 0; color: var(--mist); font-size: .88rem; }
.lb-count { margin: 0; color: var(--mist); font-weight: 700; font-variant-numeric: tabular-nums; }
.lb .btn.ghost { color: #fff; }
.lb-strip { display: flex; gap: 6px; padding: 8px 20px 16px; overflow-x: auto; }
.lb-strip button { flex: none; width: 80px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; opacity: .5; cursor: pointer; background: none; }
.lb-strip button img { width: 100%; height: 100%; object-fit: cover; }
.lb-strip button[aria-current="true"] { opacity: 1; border-color: var(--red); }
.lb button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (max-width: 980px) {
  .sp-body { grid-template-columns: minmax(0, 1fr); }
  .sp-side { position: static; }
}
@media (max-width: 640px) {
  .sp-hero-in { flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: 24px; }
  .slogo.xl { width: 96px; height: 96px; padding: 12px; }
  .pf-track { grid-auto-columns: 92%; gap: 12px; }
  .pf-ctl .pf-pos { display: none; }
  .pf-rights { columns: 1; }
  .sp-cats { grid-template-columns: repeat(5, 1fr); }
  .lb { width: 100vw; max-height: 100vh; border-radius: 0; }
  .lb-nav { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-track { scroll-behavior: auto; }
  .pf-img img, .scard-cover img { transition: none; }
  .sp-recruit .dot { animation: none; }
}
