/* Concept: the portfolio as an album. Pages are tracks, the nav is the tracklist,
   deep-navy "sleeve" bands carry the big type, electric blue is the signal. One committed dark look. */
:root {
  --paper: #0a0d14;        /* page: near-black with a blue cast */
  --paper-2: #121824;      /* cards */
  --ink: #e4e9f2;
  --ink-soft: #8e99ad;
  --navy: #0e1b3a;         /* sleeve bands */
  --navy-deep: #070d1d;
  --navy-glow: #1d3a86;
  --accent: #4f8dff;       /* electric blue */
  --accent-ink: #06101f;   /* text on accent */
  --steel: #263044;
  --line: rgba(228, 233, 242, .12);
  --line-light: rgba(228, 233, 242, .18);
  --font-display: "Syne", "Arial Black", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4.5vw, 56px);
  color-scheme: dark;
}

@view-transition { navigation: auto; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--ink-soft); }

/* ---------- header / tracklist nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -.03em; display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.logo .dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--accent); }
.tracklist { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tracklist::-webkit-scrollbar { display: none; }
.tracklist ol { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; justify-content: flex-end; }
.tracklist a {
  display: flex; align-items: baseline; gap: .35rem; padding: .45rem .7rem; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap;
}
.tracklist a span { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-soft); }
.tracklist a:hover { background: var(--paper-2); }
.tracklist a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.tracklist a[aria-current="page"] span { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.4rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid currentColor; cursor: pointer;
  font-family: inherit; font-size: 1rem; background: transparent; color: inherit;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.hot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- sleeve (cobalt band) ---------- */
.sleeve { background: radial-gradient(120% 90% at 85% 0%, var(--navy-glow) 0%, transparent 55%), var(--navy); color: #fff; position: relative; overflow: hidden; }
.sleeve .muted { color: rgba(255, 255, 255, .72); }

/* ---------- home hero ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(9rem, 16vw, 12rem); }
.hero .kicker { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; margin-bottom: clamp(1.5rem, 4vw, 3rem); color: rgba(255,255,255,.8); }
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 800; line-height: .95; letter-spacing: -.04em;
  text-transform: uppercase;
}
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1.25px #fff; }
.hero .rotator { margin-top: clamp(1.5rem, 4vw, 2.5rem); font-size: clamp(1.4rem, 3.4vw, 2.4rem); font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.rotator .word { color: var(--accent); display: inline-block; min-width: 1ch; transition: opacity .3s, transform .3s; }
.rotator .word.out { opacity: 0; transform: translateY(.3em); }
.hero .lede { margin-top: 1.25rem; max-width: 36rem; font-size: 1.15rem; color: rgba(255,255,255,.82); }
.hero .cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.hero .btn.ghost-light { color: #fff; }
#wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(110px, 16vw, 170px); pointer-events: none; }

.sticker {
  position: absolute; z-index: 2; width: clamp(110px, 13vw, 150px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; text-align: center;
  font-family: var(--font-mono); font-size: clamp(.6rem, 1vw, .72rem); letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.3; padding: 1rem; transform: rotate(-12deg);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
}
.hero .sticker { right: var(--gutter); top: clamp(5.5rem, 12vw, 8rem); }
.sticker b { display: block; font-family: var(--font-display); font-size: 1.5em; letter-spacing: -.02em; }

/* ---------- marquee ---------- */
.marquee { background: var(--navy-deep); color: var(--ink); overflow: hidden; border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.6rem); padding: .9rem 1.4rem; white-space: nowrap; display: flex; align-items: center; gap: 1.4rem; }
.marquee-track span::after { content: "✱"; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- generic sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec-head .tag { display: block; color: var(--accent); margin-bottom: .8rem; }
.sec-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; }
.sec-head p { color: var(--ink-soft); max-width: 32rem; }
.sleeve .sec-head .tag { color: var(--accent); }
.sleeve .sec-head p { color: rgba(255,255,255,.75); }

/* ---------- page heads (inner pages) ---------- */
.page-head { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem); }
.page-head .track-no { font-family: var(--font-mono); color: var(--accent); font-size: .85rem; letter-spacing: .08em; }
.page-head h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: .95; text-transform: uppercase; margin-top: .8rem; }
.page-head p { margin-top: 1.5rem; max-width: 40rem; font-size: 1.15rem; color: rgba(255,255,255,.82); }
.page-head .sticker { right: var(--gutter); bottom: -2.5rem; transform: rotate(9deg); }

/* ---------- lanes (home + services) ---------- */
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.lane {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px; padding: 1.8rem;
  display: flex; flex-direction: column; gap: 1rem; text-decoration: none; position: relative; overflow: hidden;
  transition: transform .25s, background .25s, color .25s;
}
.lane .ch { color: var(--ink-soft); }
.lane h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; }
.lane p { color: var(--ink-soft); }
.lane .go { margin-top: auto; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
a.lane:hover { transform: translateY(-4px) rotate(-.4deg); background: var(--navy); color: var(--ink); border-color: var(--accent); }
a.lane:hover p, a.lane:hover .ch { color: rgba(255,255,255,.7); }
a.lane:hover .go { color: var(--accent); }
.lane .glyph { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-glow); color: #fff; }
.lane:nth-child(2) .glyph { background: var(--accent); color: var(--accent-ink); }
.lane:nth-child(3) .glyph { background: var(--steel); color: var(--ink); }

/* ---------- frames (image slots) ---------- */
.frame {
  position: relative; border-radius: 16px; overflow: hidden; background:
    repeating-linear-gradient(-45deg, rgba(79,141,255,.07) 0 12px, transparent 12px 24px), var(--paper-2);
  border: 1px solid var(--line); aspect-ratio: 4 / 3; max-width: 100%;
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.frame .slot { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--ink-soft); }
.frame .slot span { background: var(--paper); border: 1px dashed var(--ink-soft); border-radius: 999px; padding: .35rem .8rem; }
.frame.wide { aspect-ratio: 16 / 9; }
.frame.tall { aspect-ratio: 3 / 4; }
.frame.square { aspect-ratio: 1; }

/* ---------- featured work (home) ---------- */
.reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.reel-item { text-decoration: none; display: flex; flex-direction: column; gap: .9rem; }
.reel-item .frame { transition: transform .35s; }
.reel-item:hover .frame { transform: rotate(-1.5deg) scale(1.02); }
.reel-item h3 { font-size: 1.5rem; font-weight: 700; }
.reel-item .meta { display: flex; justify-content: space-between; gap: .5rem; color: var(--ink-soft); }

/* ---------- case studies (work page) ---------- */
.case { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.case:nth-of-type(even) .case-media { order: 2; }
.case-media { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.case-media .frame:first-child { grid-column: 1 / -1; }
.case-body { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.case-body .meta { display: flex; gap: .5rem 1.2rem; flex-wrap: wrap; color: var(--ink-soft); }
.case-body .meta .live { color: var(--accent); font-weight: 700; }
.case-body h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 800; letter-spacing: -.04em; }
.case-body .lead { font-size: 1.2rem; }
.case-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.case-body li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .4rem; }
.case-body li::before { content: "✱"; color: var(--accent); font-weight: 700; }
.role-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.role-tags span { font-family: var(--font-mono); font-size: .72rem; padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper-2); }

/* ---------- services page ---------- */
.service { display: grid; grid-template-columns: minmax(0, 5rem) minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.service .big-ch { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: .9; color: var(--accent); }
.service h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 800; letter-spacing: -.035em; }
.service .for { margin-top: .9rem; color: var(--ink-soft); }
.service ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.service li { padding: .9rem 1.1rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; }
.service li strong { display: block; }
.service li span { color: var(--ink-soft); font-size: .95rem; }

.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.step { border-top: 3px solid var(--accent); padding-top: 1.1rem; }
.step .mono { color: var(--accent); }
.step h3 { font-size: 1.5rem; font-weight: 700; margin-block: .5rem .6rem; }
.step p { color: rgba(255,255,255,.75); font-size: .98rem; }

/* ---------- studio page ---------- */
.studio-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.vinyl-wrap { position: relative; max-width: 460px; width: 100%; justify-self: center; }
.vinyl {
  width: 100%; aspect-ratio: 1; border-radius: 50%; animation: spin 9s linear infinite;
  background:
    radial-gradient(circle at 50% 50%, var(--paper) 0 2.2%, var(--accent) 2.3% 17%, transparent 17.1%),
    repeating-radial-gradient(circle at 50% 50%, #111522 0 2px, #1d2233 2px 4px);
  box-shadow: 0 30px 60px -25px rgba(14,18,32,.6), inset 0 0 0 10px #0b0e17;
  display: grid; place-items: center;
}
.vinyl-label { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.vinyl-label span { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); text-align: center; line-height: 1.4; max-width: 7.5rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.studio-copy { display: flex; flex-direction: column; gap: 1.1rem; }
.studio-copy h2 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -.045em; }
.credits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: .6rem; }
.credits div { border-top: 2px solid var(--accent); padding-top: .6rem; }
.credits b { font-family: var(--font-display); font-size: 1.15rem; display: block; }

.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.tracks li { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding-block: 1rem; border-bottom: 1px solid var(--line-light); }
.tracks .no { font-family: var(--font-mono); color: var(--accent); }
.tracks .title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.5rem); }
.tracks .title small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .9rem; color: rgba(255,255,255,.65); }
.tracks a { text-decoration: none; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding: .5rem .9rem; border: 1px solid var(--line-light); border-radius: 999px; white-space: nowrap; }
.tracks a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.gallery .frame:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
.gallery .frame:nth-child(4) { grid-column: span 2; aspect-ratio: auto; }

/* ---------- about page ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-grid .frame { position: sticky; top: 90px; }
.story { display: flex; flex-direction: column; gap: 1.2rem; font-size: 1.15rem; max-width: 38rem; }
.story .pull { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; letter-spacing: -.025em; color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; padding-block: 1.3rem; border-top: 1px solid var(--line); }
.timeline .when { font-family: var(--font-mono); font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; padding-top: .3rem; }
.timeline h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.timeline p { color: var(--ink-soft); margin-top: .25rem; }
.timeline li.key .when { color: var(--accent); font-weight: 700; }
.kit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.kit h3 { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; color: var(--accent); margin-bottom: .9rem; }
.kit ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.kit li { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line-light); font-size: .92rem; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-lines { display: grid; gap: .8rem; }
.cline { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 1.4rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; }
.cline .mono { color: var(--ink-soft); display: block; margin-bottom: .2rem; }
.cline .val { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.6vw, 1.5rem); word-break: break-all; text-decoration: none; }
.copy { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .5rem .9rem; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; }
.copy:hover { background: var(--accent); color: var(--accent-ink); }
.resumes { display: grid; gap: .8rem; }
.resume-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: 16px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .2s, background .2s; }
.resume-card:hover { transform: translateX(4px); background: var(--navy); border-color: var(--accent); }
.resume-card b { font-family: var(--font-display); font-size: 1.25rem; display: block; }
.resume-card small { color: rgba(255,255,255,.65); }
.resume-card .mono { color: var(--accent); white-space: nowrap; }

/* ---------- CTA band + footer ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-glow), var(--navy) 60%, var(--navy-deep)); color: var(--ink); border-top: 1px solid var(--line); }
.cta-band .wrap { padding-block: clamp(3.5rem, 8vw, 6rem); display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.8rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.05em; line-height: .92; max-width: 14ch; }
.site-foot { background: #05070c; color: var(--ink-soft); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-foot .wrap { padding-block: 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.site-foot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .lanes, .reel { grid-template-columns: minmax(0, 1fr); }
  .reel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case, .studio-intro, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .case:nth-of-type(even) .case-media { order: 0; }
  .service { grid-template-columns: minmax(0, 1fr); }
  .service .big-ch { font-size: 2.6rem; }
  .process, .kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid .frame { position: static; max-width: 420px; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-head .wrap { flex-wrap: wrap; gap: .3rem 1rem; padding-block: .6rem; }
  .tracklist { flex-basis: 100%; }
  .tracklist ol { justify-content: flex-start; }
  .reel, .process, .kit, .credits { grid-template-columns: minmax(0, 1fr); }
  .hero .sticker { display: none; }
  .page-head .sticker { display: none; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .tracks li { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .tracks a { grid-column: 2; justify-self: start; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery .frame:nth-child(n) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .case-media { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- work categories ---------- */
.cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.cats a { text-decoration: none; padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-light); font-weight: 600; font-size: .95rem; color: #fff; transition: background .2s, color .2s, border-color .2s; }
.cats a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.studio-copy h3 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; }
.accent { color: var(--accent); }
.studio-intro .studio-copy p { color: rgba(255,255,255,.78); }
section[id] { scroll-margin-top: 80px; }

.case-media .frame.full { grid-column: 1 / -1; }
.frame img { object-position: top left; }

.frame.contain { background: #fff; }
.frame.contain img { object-fit: contain; object-position: center; }

.frame.contain.dark { background: #000; }

.reel-item .frame { aspect-ratio: 16 / 9; }
.reel-item .frame img { object-position: center; }

#music .vinyl-wrap { max-width: 260px; }
#music .studio-intro { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
@media (max-width: 960px) { #music .studio-intro { grid-template-columns: minmax(0, 1fr); } #music .vinyl-wrap { max-width: 200px; justify-self: start; } }

.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.facts li { padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line-light); font-size: .98rem; color: rgba(255,255,255,.88); }

/* ---------- logos grid ---------- */
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem 1rem; }
.logo-item { margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.logo-item .frame img { object-position: center; }
.logo-item figcaption { color: var(--ink-soft); }
@media (max-width: 960px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- clip player ---------- */
.clips-head { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-top: clamp(2.5rem, 6vw, 4rem); }
.clips-sub { color: rgba(255,255,255,.7); margin: .4rem 0 1.2rem; }
.tracks .play { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding: .55rem 1rem; min-width: 7.5rem; border: 1px solid var(--line-light); border-radius: 999px; background: transparent; color: #fff; cursor: pointer; white-space: nowrap; }
.tracks .play:hover:not(:disabled) { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tracks .play:disabled { opacity: .5; cursor: default; }
.tracks .bar { display: block; height: 3px; margin-top: .6rem; background: var(--line-light); border-radius: 2px; overflow: hidden; }
.tracks .bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.tracks li.empty .title { opacity: .6; }
@media (max-width: 640px) { .tracks .play { grid-column: 2; justify-self: start; } }

/* ---------- flyers (masonry, uncropped) ---------- */
.flyers { columns: 3; column-gap: 1rem; }
.flyer { margin: 0 0 1.2rem; break-inside: avoid; display: flex; flex-direction: column; gap: .6rem; }
.flyer img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.flyer figcaption { color: var(--ink-soft); }
@media (max-width: 960px) { .flyers { columns: 2; } }
@media (max-width: 520px) { .flyers { columns: 1; } }

/* ---------- album covers ---------- */
.covers { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 1.2rem; }
.sleeve .logo-item figcaption { color: rgba(255,255,255,.7); }
@media (max-width: 640px) { .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- image protection (deterrent): no drag, no select, no long-press save ---------- */
img { pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
figure, .frame, .reel-item { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }

/* transparent logos on the dark card colour; screenshots centred in their frames */
.frame.ink, .frame.contain.ink { background: var(--paper-2); }
.frame.ink .slot { display: none; }
.case-media .frame img { object-position: top center; }
.case-media .frame.contain img { object-position: center; }

.case-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.case-links .btn { padding: .75rem 1.15rem; font-size: .95rem; }

/* heading scale pass + contact roles */
.studio-copy h3 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.clips-head { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.story .pull { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.roles li { padding: 1rem 1.2rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; font-weight: 600; }
