/* heroJones Studios: herojonesstudios.com. Brand: "Premiere · Platinum" (~/Content/factory/brand/HANDOFF.md).
   Dark only. Big Shoulders Display + Inter. Platinum is the accent; REC red only for the small on-air dot. */
:root {
  --hj-midnight: #0B0D12; --hj-graphite: #161A22; --hj-steel: #262C38;
  --hj-bone: #EEF1F5; --hj-body: #C3C9D3; --hj-ash: #939BA8;
  --hj-platinum: #C9CED6; --hj-rec: #E04848; --hj-on-accent: #0B0D12;
  --display: "Big Shoulders Display", "Oswald", sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 6px; --radius-btn: 4px;
  --container: 1240px; --gutter: 32px; --section-y: 120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--hj-midnight); color: var(--hj-bone); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, figure, ol { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--hj-platinum); }
:focus-visible { outline: 2px solid var(--hj-platinum); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--hj-platinum); color: var(--hj-on-accent); padding: 10px 14px; border-radius: var(--radius-btn); }
.skip:focus { left: 8px; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)); }

.eyebrow { font: 600 13px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--hj-platinum); }
h1, h2, .feature h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.005em; }
h2 { font-size: clamp(44px, 6vw, 72px); line-height: 1.04; }
.body { color: var(--hj-body); max-width: 56ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: var(--radius-btn); font: 600 15px var(--sans); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--hj-platinum); color: var(--hj-on-accent); }
.btn-primary:hover { background: var(--hj-bone); }
.btn-outline { border: 1px solid rgba(238, 241, 245, .55); color: var(--hj-bone); backdrop-filter: blur(6px); }
.btn-outline:hover { background: var(--hj-bone); color: var(--hj-on-accent); }
.btn-dark { background: var(--hj-midnight); color: var(--hj-bone); }
.btn-dark:hover { background: var(--hj-graphite); }

/* ---------- header: transparent over the hero, solid once scrolled */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 20; transition: background .35s, border-color .35s; border-bottom: 1px solid transparent; padding-top: env(safe-area-inset-top); }
.site-header.is-solid { background: rgba(11, 13, 18, .86); backdrop-filter: blur(14px); border-color: var(--hj-steel); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 18px; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--hj-bone); text-decoration: none; opacity: .85; }
.nav-links a:not(.btn):hover { opacity: 1; }

/* ---------- hero: full-bleed, letterboxed, framed like a monitor */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.reel, .grade, .grain { position: absolute; inset: 0; }
.reel { z-index: -3; background: var(--hj-midnight); }
.shot { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); }
.shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.shot.is-on { opacity: 1; }
.shot.is-on img { animation: push 9s linear both; }
@keyframes push { from { transform: scale(1.04); } to { transform: scale(1.14); } }
.grade { z-index: -2; background:
  linear-gradient(180deg, rgba(11,13,18,.55) 0%, rgba(11,13,18,0) 22%, rgba(11,13,18,0) 45%, rgba(11,13,18,.82) 78%, var(--hj-midnight) 100%),
  radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%); }
.grain { z-index: -1; opacity: .07; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(3) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

/* camera-monitor overlay: viewfinder corners, REC, timecode */
.monitor { position: absolute; inset: calc(88px + env(safe-area-inset-top)) 28px 28px; pointer-events: none; z-index: 1;
  --c: rgba(201, 206, 214, .7); --l: 34px; --t: 2px;
  background:
    linear-gradient(var(--c),var(--c)) top left / var(--l) var(--t) no-repeat, linear-gradient(var(--c),var(--c)) top left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) top right / var(--l) var(--t) no-repeat, linear-gradient(var(--c),var(--c)) top right / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) bottom left / var(--l) var(--t) no-repeat, linear-gradient(var(--c),var(--c)) bottom left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) bottom right / var(--l) var(--t) no-repeat, linear-gradient(var(--c),var(--c)) bottom right / var(--t) var(--l) no-repeat; }
.monitor span { position: absolute; top: 18px; font: 500 13px/1 var(--display); letter-spacing: .2em; color: rgba(238, 241, 245, .8); font-variant-numeric: tabular-nums; }
.rec { left: 22px; display: inline-flex; align-items: center; gap: 8px; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--hj-rec); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.tc { left: 50%; transform: translateX(-50%); font-size: 15px !important; }
.fmt { right: 22px; }

.hero-copy { position: relative; z-index: 2; width: 100%; padding-top: 140px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 26px; }
.hero-copy .eyebrow { opacity: 0; animation: rise 1s .2s var(--ease) forwards; }
.hero h1 { font-size: clamp(64px, 11vw, 168px); line-height: 1.02; max-width: 12ch; padding-bottom: .04em; opacity: 0; animation: rise 1.1s .35s var(--ease) forwards; text-shadow: 0 2px 40px rgba(0,0,0,.35); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--hj-body); max-width: 46ch; opacity: 0; animation: rise 1s .55s var(--ease) forwards; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: rise 1s .7s var(--ease) forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.now-showing { position: relative; z-index: 2; width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-block: 18px 36px; font-size: 14px; color: var(--hj-ash); }
.ns-label { font: 600 12px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--hj-platinum); }
#caption { transition: opacity .6s; }

/* Hero text stays well inside the monitor frame (its corners sit 28px in; 12px on phones). */
.hero .container { padding-inline: max(72px, calc(env(safe-area-inset-left) + 56px)); }
.hero .now-showing { padding-bottom: 64px; }

/* ---------- slate: a slow ticker of what we make */
.slate { border-block: 1px solid var(--hj-steel); overflow: hidden; padding-block: 20px; }
.slate-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.slate span { font: 300 clamp(28px, 4vw, 44px)/1 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--hj-ash); padding-inline: 28px; white-space: nowrap; }
.slate span::after { content: ""; display: inline-block; width: 8px; height: 8px; border: 1px solid var(--hj-platinum); transform: rotate(45deg) translateY(-6px); margin-left: 56px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections */
.section { padding-block: var(--section-y); }
.section-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 64px; }
.band { background: var(--hj-graphite); border-block: 1px solid var(--hj-steel); }

/* framed media: platinum viewfinder corners */
.frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--hj-steel); }
.frame::after { content: ""; position: absolute; inset: 14px; pointer-events: none;
  --c: rgba(201, 206, 214, .85); --l: 22px; --t: 2px;
  background:
    linear-gradient(var(--c),var(--c)) top left / var(--l) var(--t) no-repeat, linear-gradient(var(--c),var(--c)) top left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) top right / var(--l) var(--t) no-repeat, linear-gradient(var(--c),var(--c)) top right / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) bottom left / var(--l) var(--t) no-repeat, linear-gradient(var(--c),var(--c)) bottom left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) bottom right / var(--l) var(--t) no-repeat, linear-gradient(var(--c),var(--c)) bottom right / var(--t) var(--l) no-repeat;
  opacity: 0; transition: opacity .4s; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .frame::after, .work-card:hover .frame::after, .work-card:focus-visible .frame::after { opacity: 1; }
.feature:hover .frame img, .work-card:hover .frame img { transform: scale(1.04); }

/* channels: big alternating features */
.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature-flip .feature-media { order: 2; }
.feature-media { aspect-ratio: 16 / 9; }
.feature-copy { display: flex; flex-direction: column; gap: 18px; }
.kicker { display: flex; align-items: center; gap: 10px; font: 600 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--hj-ash); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.feature h3 { font-size: clamp(48px, 5.4vw, 80px); line-height: 1.02; }
.tagline { font: 500 15px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--hj-platinum); }
.link { font-weight: 600; text-decoration: none; margin-top: 8px; align-self: flex-start; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link:hover { color: var(--hj-bone); }
.link-muted { color: var(--hj-ash); border-bottom-style: dashed; }

/* work */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 40px 32px; }
.work-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--hj-bone); }
.thumb { aspect-ratio: 16 / 9; }
.tag { position: absolute; left: 14px; bottom: 14px; z-index: 1; background: rgba(11,13,18,.82); color: var(--hj-bone); font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 3px; }
.work-title { font: 800 clamp(26px, 2.6vw, 34px)/1.12 var(--display); }
.work-meta { font-size: 14px; color: var(--hj-ash); }

/* studio */
.studio { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.studio-intro { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 120px; }
.services { list-style: none; padding: 0; border-top: 1px solid var(--hj-steel); }
.service { display: grid; grid-template-columns: 80px 1fr; gap: 6px 24px; padding: 32px 0; border-bottom: 1px solid var(--hj-steel); }
.service-n { grid-row: span 2; font: 300 44px/1.1 var(--display); color: var(--hj-platinum); }
.service h3 { font: 600 20px var(--sans); }
.service p { color: var(--hj-ash); font-size: 16px; }

/* CTA */
.cta-wrap { padding-bottom: var(--section-y); }
.cta { background: var(--hj-platinum); color: var(--hj-on-accent); border-radius: var(--radius); padding: clamp(32px, 6vw, 72px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(52px, 7vw, 96px); line-height: 1.02; margin-top: 14px; }
.eyebrow-dark { color: #3A404B; }
.cta .btn-dark { min-height: 56px; font-size: 16px; }

/* footer */
.site-footer { border-top: 1px solid var(--hj-steel); }
.footer { padding-block: 32px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: var(--hj-ash); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--hj-ash); text-decoration: none; }
.footer-links a:hover { color: var(--hj-bone); }

/* reveal on scroll (site.js adds .in) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .feature, .studio { grid-template-columns: 1fr; gap: 28px; }
  .feature-flip .feature-media { order: 0; }
  .studio-intro { position: static; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; --section-y: 80px; }
  .nav-links a:not(.btn) { display: none; }
  .brand img { height: 32px; }
  .monitor { inset: calc(76px + env(safe-area-inset-top)) 12px 12px; --l: 24px; }
  .fmt { display: none; }
  .hero .container { padding-inline: 36px; }
  .hero .now-showing { padding-bottom: 44px; }
  .tc { left: auto !important; right: 18px; transform: none !important; font-size: 13px !important; }
  .section-head { margin-bottom: 40px; }
  .feature + .feature { margin-top: 64px; }
  .service { grid-template-columns: 56px 1fr; }
  .service-n { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-copy .eyebrow, .hero h1, .lead, .actions, .reveal { opacity: 1; transform: none; }
}
