

:root {
  color-scheme: light;
  --paper: #efede5;
  --white: #faf8f1;
  --ink: #20221e;
  --muted: #565950;
  --line: #bdbcb0;
  --cobalt: #243f9d;
  --navy: #21283b;
  --serif: "Parudux Estedad", Tahoma, serif;
  --sans: "Parudux Estedad", Tahoma, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(1rem, 4.2vw, 5rem);
  --block: clamp(2.8rem, 6vw, 6rem);
  --small: .83rem;
  --touch: 2.75rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.85 var(--sans); }
a { color: inherit; text-decoration: none; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.3; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 91rem); margin-inline: auto; }
.skip { position: fixed; inset: .5rem var(--gutter) auto auto; z-index: 10; padding: .5rem 1rem; background: var(--white); transform: translateY(-200%); }
.skip:focus { transform: none; }

.archive-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem 1.2rem; min-height: 5rem; border-block-end: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: .4rem; }
.brand-mark { width: 3rem; height: 3rem; object-fit: contain; filter: brightness(0); }
.brand > span { display: grid; }
.brand strong { font: 600 1.65rem/1.22 var(--serif); }
.brand small { font: .55rem/1.35 var(--mono); letter-spacing: .1em; color: var(--muted); }
.archive-header nav, .direct-links { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1rem; }
.archive-header nav { font-size: var(--small); }
.archive-header nav a { display: inline-flex; align-items: center; min-height: var(--touch); }
.archive-header nav a:hover { color: var(--cobalt); }
.direct-links { justify-self: end; gap: .3rem; }
.direct-link { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: var(--touch); padding-inline: .56rem; color: var(--ink); border: 1px solid var(--line); font-size: var(--small); white-space: nowrap; }
.direct-link img { width: .9rem; height: .9rem; }
.direct-link:hover { color: var(--cobalt); border-color: var(--cobalt); }
.direct-telephone { background: var(--cobalt); color: var(--white); border-color: var(--cobalt); }
.direct-telephone img { filter: invert(1); }
.direct-telephone:hover { color: var(--white); background: var(--navy); }

.masthead { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr) auto; align-items: end; gap: 1rem 2.1rem; padding-block: clamp(1.7rem, 3.5vw, 3.4rem) clamp(1.45rem, 3.25vw, 2.55rem); }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--cobalt); font-size: var(--small); font-weight: 600; }
.eyebrow > span { width: 1.4rem; border-block-start: 1px solid currentColor; }
.masthead h1 { margin-block-start: .35rem; font-size: clamp(3rem, 6vw, 6.5rem); line-height: 1.19; }
.masthead-note, .section-top > p, .contact-panel p:last-child { color: var(--muted); max-width: 28rem; }
.masthead-index, .shelf-ruler span[lang], .tape-top, .tape-credit, .role-grid li > div > span, .sheet-top > span { font: .64rem/1.35 var(--mono); letter-spacing: .09em; }
.masthead-index { color: var(--cobalt); align-self: start; margin-block-start: .65rem; }

.shelf { border-block: 1px solid var(--line); scroll-margin-block-start: 1rem; }
.shelf-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1.35rem; padding-block: .5rem; border-block-end: 1px solid var(--line); }
.shelf-header h2 { font-size: clamp(1.35rem, 2.2vw, 2.2rem); }
.filter-pills, .year-filter { display: flex; align-items: center; gap: .24rem; flex-wrap: wrap; }
.filter-pills a, .year-filter button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--touch); padding-inline: .65rem; border: 1px solid transparent; font-size: var(--small); white-space: nowrap; }
.filter-pills a:hover, .year-filter button:hover { border-color: var(--line); }
.filter-pills a[aria-current], .year-filter button[aria-pressed="true"] { background: var(--white); color: var(--cobalt); border-color: var(--line); font-weight: 600; }
.shelf-filters { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; padding-block: .55rem .4rem; }
.format-filter { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: var(--small); }
.format-filter select { min-height: var(--touch); padding-inline: .55rem; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); }
.format-shortcuts { display: flex; align-items: center; gap: .35rem; }
.format-shortcuts button { min-height: var(--touch); padding-inline: .65rem; color: var(--muted); background: transparent; border: 1px solid var(--line); font-size: var(--small); }
.format-shortcuts button:hover, .format-shortcuts [aria-pressed="true"] { color: var(--cobalt); border-color: var(--cobalt); background: var(--white); }
.year-filter > span { color: var(--muted); font-size: var(--small); margin-inline-end: .28rem; }
.year-filter button { color: var(--muted); background: transparent; }

.cover-shelf { position: relative; isolation: isolate; }
.cover-shelf::before { content: ""; position: absolute; z-index: -1; inset: 20% 6% 8%; background: radial-gradient(ellipse at 50% 90%, #d8d3c3, transparent 70%); pointer-events: none; }
.shelf-viewport { overflow-x: auto; overflow-y: hidden; }
.shelf.enhanced .shelf-viewport { overflow: hidden; }
.shelf-track { display: flex; align-items: center; margin: 0; padding: 1.7rem 0 1.25rem; list-style: none; touch-action: pan-y pinch-zoom; }
.shelf-slide { flex: 0 0 clamp(10rem, 20.4vw, 17rem); min-width: 0; padding-inline: .45rem; perspective: 1150px; }
.tape {
  --sleeve: #273e77;
  --sleeve-ink: #fff8e7;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) minmax(5.4rem, auto);
  width: 100%;
  aspect-ratio: 0.665;
  border: 1px solid rgb(36 33 25 / .48);
  border-inline-start-width: .42rem;
  background: var(--sleeve);
  color: var(--sleeve-ink);
  overflow: hidden;
  box-shadow: .4rem .65rem .8rem rgb(35 30 17 / .17);
  transform-origin: center;
  transition: transform .45s var(--ease), opacity .28s ease;
  outline-offset: -3px;
}
.tape:focus-visible { outline-color: var(--white); }
.tape[data-format="short"], .tape[data-format="art"] { --sleeve: #703d32; }
.tape[data-format="product"], .tape[data-format="portrait"], .tape[data-format="beauty"], .tape[data-format="fashion"], .tape[data-format="reportage"] { --sleeve: #3d5449; }
.tape[data-format="vfx"], .tape[data-format="three"], .tape[data-format="game"] { --sleeve: #2e3a45; }
.tape[data-format="reel"], .tape[data-format="film"] { --sleeve: #5b4f38; }
.tape[data-format="ai"] { --sleeve: #3c3a69; }
.tape[data-format="design"] { --sleeve: #414634; }
.tape[data-format="music"] { --sleeve: #273341; }
.tape-top, .tape-label { position: relative; z-index: 1; }
.tape-top { display: flex; justify-content: space-between; align-items: center; padding: .65rem .72rem; border-block-end: 1px solid rgb(255 255 255 / .25); }
.tape-dot { width: .5rem; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; }
.tape-art { display: block; min-height: 0; position: relative; margin: .32rem .35rem 0; overflow: hidden; background: #241f1d; }
.tape-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
.tape[data-role="edit"] .tape-art img { object-position: 50% 27%; }
.tape[data-layout="1"] .tape-art { margin-inline: .65rem; }
.tape[data-layout="2"] .tape-art { margin-inline-start: .82rem; }
.tape-art::after { content: ""; position: absolute; inset: 0; border: 1px solid rgb(255 250 231 / .19); pointer-events: none; }
.tape-label { display: grid; align-content: center; gap: .23rem; padding: .52rem .62rem .66rem; }
.tape-type { font-size: .73rem; line-height: 1.3; }
.tape-label strong { font: 600 clamp(1rem, 1.8vw, 1.44rem)/1.25 var(--serif); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tape-credit { font-family: var(--sans); letter-spacing: 0; font-size: .61rem; }
.shelf-empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.shelf-controls { display: grid; grid-template-columns: 1fr minmax(0, 2fr) 1fr; align-items: center; max-width: 33rem; margin-inline: auto; gap: .7rem; min-height: 4rem; padding-block-end: .5rem; }
.arrow { width: var(--touch); height: var(--touch); color: var(--cobalt); background: var(--white); border: 1px solid var(--line); justify-self: center; }
.arrow:hover { border-color: var(--cobalt); }
.arrow:disabled { opacity: .38; cursor: default; }
.shelf-selection { display: grid; gap: .15rem; text-align: center; line-height: 1.45; padding: .2rem .4rem; background: rgb(250 248 241 / .48); backdrop-filter: blur(12px); border: 1px solid rgb(189 188 176 / .45); border-radius: .45rem; }
.current-title { font: 600 clamp(1rem, 2vw, 1.35rem)/1.4 var(--serif); color: var(--cobalt); }
.shelf-count { color: var(--muted); font-size: .73rem; }
.shelf-ruler { display: flex; justify-content: space-between; gap: .75rem; color: var(--muted); font-size: var(--small); border-block-start: 1px solid var(--line); padding-block: .72rem; }

.role-section, .contact-panel { margin-block-start: var(--block); scroll-margin-block-start: 1rem; }
.section-top, .contact-panel { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem; }
.section-top { margin-block-end: 1rem; }
.section-top h2, .contact-panel h2 { font-size: clamp(2rem, 4vw, 4rem); }
.role-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.5rem, 1.6vw, 1.35rem); list-style: none; padding: 0; margin: 0; }
.role-grid li { border-block-end: 1px solid var(--line); }
.role-grid img { width: 100%; height: auto; aspect-ratio: 0.72; object-fit: cover; }
.role-grid li > div { padding-block: .55rem .8rem; }
.role-grid li > div > span { color: var(--cobalt); }
.role-grid h3 { font-weight: 600; font-size: .95rem; }
.contact-panel { padding-block: 1.45rem 2rem; border-block-start: 1px solid var(--line); }
.contact-panel .direct-link { background: var(--white); }
.contact-panel .direct-telephone { background: var(--cobalt); }
.archive-footer, .studio-tracking { color: var(--muted); font-size: var(--small); padding-block: .65rem; }
.archive-footer { border-block-start: 1px solid var(--line); }
.studio-tracking { padding-block-end: 1.5rem; }
.studio-tracking summary { cursor: pointer; min-height: var(--touch); }
.studio-tracking form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.studio-tracking input, .studio-tracking button, .studio-tracking textarea { color: var(--ink); background: var(--white); border: 1px solid var(--line); min-height: var(--touch); padding-inline: .5rem; }

.work-sheet { width: min(75rem, 100% - 2rem); max-height: calc(100% - 2rem); padding: 0; border: 1px solid var(--line); border-radius: .8rem; color: var(--ink); background: var(--white); }
.work-sheet::backdrop { background: rgb(26 27 31 / .57); backdrop-filter: blur(8px); }
.sheet-body { padding: clamp(.8rem, 3vw, 2rem); }
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: .7rem; margin-block-end: 1rem; border-block-end: 1px solid var(--line); padding-block-end: .65rem; }
.sheet-top > span { color: var(--cobalt); }
.sheet-top button { min-height: var(--touch); padding-inline: .65rem; color: var(--ink); background: transparent; border: 1px solid var(--line); }
.sheet-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1rem, 3.3vw, 3rem); align-items: start; }
.sheet-media { min-height: 12rem; background: var(--navy); color: var(--white); }
.sheet-media :is(img,video,iframe) { width: 100%; display: block; object-fit: contain; border: 0; max-height: min(52vh, 36rem); }
.sheet-media iframe { aspect-ratio: 16 / 9; }
.sheet-poster { display: grid; place-items: center; position: relative; width: 100%; padding: 0; border: 0; background: var(--navy); color: var(--white); }
.sheet-poster img { width: 100%; height: clamp(14rem, 45vh, 25rem); object-fit: contain; }
.sheet-source { display: inline-flex; min-height: var(--touch); align-items: center; padding-inline: .65rem; text-decoration: underline; text-underline-offset: .22em; font-size: var(--small); }
.sheet-copy h2 { font-size: clamp(1.7rem, 3.6vw, 3.4rem); margin-block: .2rem .4rem; }
.sheet-format, .sheet-contact { color: var(--cobalt); font-size: var(--small); }
.sheet-credit { font-weight: 600; }
.sheet-synopsis { color: var(--muted); margin-block: .7rem; }
.sheet-copy dl { border-block-start: 1px solid var(--line); padding-block-start: .65rem; }
.sheet-copy dt { font-weight: 600; font-size: var(--small); }
.sheet-copy dd { color: var(--muted); margin-block-end: .45rem; }
.sheet-contact { display: inline-flex; min-height: var(--touch); align-items: center; }
.sheet-editions { display: flex; gap: .55rem; overflow-x: auto; margin-block-start: 1rem; padding: .2rem .2rem .45rem; }
.edition { flex: 0 0 10rem; min-height: 5.5rem; display: grid; grid-template-columns: 2.7rem 1fr; align-items: center; gap: .45rem; text-align: start; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-inline-start-width: .28rem; padding: .4rem; font-size: .7rem; line-height: 1.4; }
.edition[data-edition="1"] { background: #e7e9e3; }
.edition[data-edition="2"] { background: #eee7db; }
.edition[data-format="short"] { border-inline-start-color: #703d32; }
.edition[data-format="ad"] { border-inline-start-color: #273e77; }
.edition[aria-pressed="true"] { border-color: var(--cobalt); color: var(--cobalt); }
.edition img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.edition-label { display: grid; gap: .2rem; }
.edition-label small { color: var(--muted); }

@media (max-width: 1000px) {
  .archive-header { grid-template-columns: 1fr auto; }
  .archive-header nav { grid-row: 2; grid-column: 1 / -1; }
  .masthead { grid-template-columns: 1fr .6fr; }
  .masthead-index { display: none; }
  .shelf-slide { flex-basis: clamp(10.5rem, 29vw, 15rem); }
}
@media (max-width: 650px) {
  .archive-header { gap: .15rem .5rem; padding-block-start: .5rem; }
  .brand-mark { width: 2.25rem; height: 2.25rem; }
  .brand strong { font-size: 1.3rem; }
  .brand small { font-size: .45rem; }
  .archive-header .direct-link { min-width: var(--touch); padding-inline: .35rem; }
  .archive-header .direct-link span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .masthead { grid-template-columns: 1fr; gap: .5rem; }
  .masthead h1 { font-size: clamp(2.6rem, 12vw, 4.4rem); }
  .masthead-note { font-size: .9rem; }
  .shelf-header { align-items: start; flex-direction: column; }
  .filter-pills a, .year-filter button { padding-inline: .34rem; font-size: .73rem; }
  .shelf-filters { gap: .3rem; }
  .shelf-slide { flex-basis: min(66vw, 15.5rem); }
  .shelf-track { padding-block: .9rem .65rem; }
  .tape-label strong { font-size: 1.2rem; }
  .shelf-ruler span[lang] { display: none; }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-layout { grid-template-columns: 1fr; }
  .sheet-editions { margin-block-start: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape { transition: none; }
}
