:root {
  color-scheme: dark;
  --room: #110d0e;
  --paper: #f6eee7;
  --quiet: #c3aca4;
  --red: #bf392e;
  --accent: #ff9886;
  --body: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
  --fade: 240ms ease-out;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--room); color: var(--paper); font-family: var(--body); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #8b3128; color: var(--paper); }

.shell { width: min(1420px, calc(100% - 88px)); margin-inline: auto; }
.mono { font: 12px/1.4 var(--mono); letter-spacing: .04em; }
.skip-link { position: absolute; z-index: 8; top: 10px; left: 10px; padding: 12px 16px; background: var(--paper); color: var(--room); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.masthead { position: relative; z-index: 6; background: #100c0d; }
.header-inner { height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-size: 22px; line-height: 1; font-weight: 800; letter-spacing: .08em; }
.brand-mark { position: relative; width: 24px; height: 20px; background: var(--red); clip-path: polygon(0 0,100% 0,100% 70%,76% 100%,0 100%); }
.brand-mark::after { content: ""; position: absolute; inset: 6px 5px; background: var(--paper); clip-path: polygon(0 0,100% 0,100% 100%,0 100%); }
.main-nav { height: 100%; display: flex; align-items: stretch; gap: 31px; font-size: 14px; white-space: nowrap; }
.main-nav a { position: relative; display: grid; place-items: center; color: var(--quiet); padding-inline: 3px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--paper); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 13px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.header-link { justify-self: end; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; font-size: 14px; font-weight: 680; white-space: nowrap; }
.header-link span { color: var(--accent); }

.screen-picture { position: relative; overflow: hidden; background: #090607; }
.screen-still,.screen-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.screen-video { z-index: 1; opacity: 0; visibility: hidden; pointer-events: none; background: #0b0809; transition: opacity var(--fade); }
[data-player][data-state="playing"] .screen-video { opacity: 1; visibility: visible; pointer-events: auto; }
.player-status { color: #edc0b5; font-size: 13px; line-height: 1.5; }

.visual-studies { margin-top: clamp(36px,5vw,76px); scroll-margin-top: 20px; }
.visual-heading { margin-bottom: clamp(17px,2.5vw,34px); }
.visual-heading h2 { color: #fff2e8; font-size: clamp(29px,4vw,58px); font-family: var(--feature-display); font-weight: 800; letter-spacing: -.055em; line-height: 1; }
.visual-heading > span { color: #e2a08f; }
.visual-grid { display: grid; grid-template-columns: minmax(0,1.68fr) minmax(0,1fr); align-items: start; gap: clamp(22px,6vw,87px); }
.study { min-width: 0; margin: 0; }
.study-tall { margin-top: clamp(28px,5.2vw,83px); }
.study-image { overflow: hidden; background: #180d0e; aspect-ratio: 1.85; }
.study-tall .study-image { aspect-ratio: 1.19; }
.study-image img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0,var(--study-y,0%),0) scale(var(--study-zoom,1));
}
.study figcaption { margin-top: 11px; color: #f0d2c5; font-size: clamp(17px,2.2vw,30px); font-weight: 750; letter-spacing: -.04em; }
.study-reveal .study-image { animation: reveal-still 840ms cubic-bezier(.2,.72,.21,1) both; }
@keyframes reveal-still {
  from { clip-path: inset(39% 0 39% 0); opacity: .48; }
  to { clip-path: inset(0); opacity: 1; }
}

.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 43px; padding: 9px 15px; border: 0; border-radius: 5px; font-size: 14px; line-height: 1.25; font-weight: 680; white-space: nowrap; }
.button-primary { color: #fff9f4; background: var(--red); }
.button-primary:hover { background: #a83229; }
.button-ghost { color: var(--paper); background: #372725; }
.button-ghost:hover { background: #503632; }
.button:disabled { cursor: wait; color: #e8d5cf; }
.play-icon { display: inline-block; width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.section-line { display: flex; justify-content: space-between; align-items: center; gap: 13px; }
.section-line > span { color: var(--quiet); font-size: 12px; }
.studio { padding-top: 25px; }
.studio-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-block: 4px 19px; }
.project-label { color: #e4c2b9; font-size: 12px; }
.indicator { display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 1px; background: var(--accent); border-radius: 50%; }
.studio-heading h1 { margin-top: 7px; font-size: clamp(36px, 4.3vw, 63px); font-weight: 820; letter-spacing: -.075em; line-height: 1.01; }
.studio-heading p { margin-top: 9px; color: var(--quiet); font-size: 13px; }
.studio-count { display: flex; align-items: baseline; gap: 12px; color: var(--quiet); font-size: 12px; }
.studio-count span { color: var(--paper); font: clamp(19px, 2.6vw, 33px)/1 var(--mono); }
.studio-layout { display: grid; grid-template-columns: minmax(124px,14%) minmax(0,1fr) minmax(184px,23%); grid-template-areas: "shots monitor notes"; align-items: start; gap: clamp(19px,2.7vw,47px); margin-top: 13px; }
.monitor-section { grid-area: monitor; }
.studio-shot-nav { grid-area: shots; }
.shot-inspector { grid-area: notes; }
.monitor-label { margin-bottom: 12px; }
.monitor-label h2, .studio-shot-nav h2, .inspector-head h2 { font-size: 15px; font-weight: 730; }
.studio-shot-nav h2 { margin-bottom: 12px; }
.monitor-label > span { color: #ffc4b1; }
.studio-picture { width: 100%; aspect-ratio: 2.23; }
.monitor-toolbar { display: flex; align-items: center; min-height: 49px; gap: 10px; }
.monitor-toolbar .button { min-height: 33px; padding: 5px 10px; font-size: 13px; }
.shot-strip { display: grid; grid-template-columns: minmax(0,1fr); gap: 11px; }
.shot { display: block; min-width: 0; padding: 0; text-align: left; border: 0; background: transparent; }
.shot img { width: 100%; height: auto; aspect-ratio: 2.18; object-fit: cover; opacity: .58; }
.shot > span { display: flex; align-items: baseline; gap: 6px; padding: 6px 0 2px; white-space: nowrap; font-size: 12px; }
.shot b { font: 12px var(--mono); color: var(--quiet); }
.shot:hover img, .shot[aria-pressed="true"] img { opacity: 1; }
.shot[aria-pressed="true"] > span, .shot[aria-pressed="true"] b { color: #ffa998; }
.inspector-head { padding-bottom: 16px; }
.inspector-head span { color: #ffa998; }
.shot-inspector h3 { margin-bottom: 9px; font-size: 30px; font-weight: 780; letter-spacing: -.055em; }
.shot-description { color: #e3cec3; font-size: 14px; line-height: 1.65; }
.shot-facts { display: grid; gap: 10px; margin: 20px 0 22px; font-size: 13px; }
.shot-facts > div { display: flex; justify-content: space-between; gap: 6px; }
.shot-facts dt { color: var(--quiet); }
.shot-facts dd { margin: 0; color: var(--paper); }
.notes label { font-size: 13px; font-weight: 700; }
.notes textarea { width: 100%; min-height: 88px; max-height: 290px; margin-top: 7px; padding: 10px 11px; border: 0; border-radius: 5px; resize: vertical; background: #251a1a; color: var(--paper); font-size: 13px; line-height: 1.55; }
.notes textarea::placeholder, .notes-save { color: var(--quiet); }
.notes-save { margin-top: 6px; font-size: 12px; }

.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; margin-top: 31px; color: var(--quiet); font-size: 12px; }
.page-footer span:first-child { color: #dec2b5; font-size: 13px; font-weight: 750; letter-spacing: .08em; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  .studio-picture.is-shared-shot { view-transition-name: story-frame; }
  ::view-transition-group(story-frame) {
    animation-duration: 620ms;
    animation-timing-function: cubic-bezier(.24,.71,.32,1);
  }
  ::view-transition-old(root) { animation: theatre-out 110ms ease-in both; mix-blend-mode: normal; }
  ::view-transition-new(root) { animation: theatre-in 230ms ease-out 125ms both; mix-blend-mode: normal; }

  @keyframes theatre-out { to { opacity: 0; } }
  @keyframes theatre-in { from { opacity: 0; } }
}

@media (max-width: 980px) {
  .shell { width: calc(100% - 48px); }
  .main-nav { gap: 20px; }
  .studio-layout { grid-template-columns: minmax(0,1fr) minmax(181px,30%); grid-template-areas:"monitor notes" "shots notes"; gap: 14px 25px; }
  .shot-strip { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 30px); }
  .header-inner { height: 56px; grid-template-columns: 1fr auto; }
  .brand { font-size: 19px; gap: 8px; }
  .brand-mark { width: 21px; height: 18px; }
  .main-nav { gap: 20px; font-size: 13px; }
  .main-nav a[aria-current="page"]::after { bottom: 8px; }
  .nav-films, .header-link { display: none !important; }
  .section-line > span { font-size: 11px; }
  .studio { padding-top: 14px; }
  .studio-layout { grid-template-columns: minmax(0,1fr); grid-template-areas:"monitor" "shots" "notes"; gap: 17px; margin-top: 4px; }
  .studio-picture { aspect-ratio: 1.76; }
  .shot-strip { grid-auto-flow: column; grid-auto-columns: 29%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: inline proximity; padding: 3px 3px 5px; margin: -3px -3px 0; }
  .shot { scroll-snap-align: start; }
  .page-footer { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
