/* Layout: cinema letterbox. The showreel runs full-bleed near the top, and every section after it sits on a
   left-aligned 12-column grid with a call-sheet-style case study as the one "document" moment. */
:root {
  color-scheme: dark;
  --bg: #0b0b0c;          /* stage black */
  --panel: #141416;       /* flight-case grey */
  --line: #26262a;        /* gaffer-tape seam */
  --text: #ecebe7;        /* white balance */
  --mute: #9b9a95;        /* secondary copy */
  --red: #f01e06;         /* Crewroom logo orange-red (sampled from the logo), used sparingly */

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --s-xs: 0.8125rem; --s-sm: 0.9375rem; --s-md: 1.0625rem; --s-lg: 1.375rem;
  --s-xl: clamp(1.75rem, 3.2vw, 2.5rem); --s-2xl: clamp(2.25rem, 5.4vw, 4.5rem);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: var(--s-md); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Type */
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--s-2xl); font-stretch: 112%; font-weight: 800; text-transform: uppercase; }
h2 { font-size: var(--s-xl); font-stretch: 108%; text-transform: uppercase; }
h3 { font-size: var(--s-lg); font-stretch: 100%; }
p { margin: 0; max-width: 62ch; }
.label { font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.lede { font-size: var(--s-lg); line-height: 1.45; color: var(--text); max-width: 46ch; }
.muted { color: var(--mute); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.6em; font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: var(--s-sm); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 0.95em 1.6em; border: 1px solid var(--text); background: var(--text); color: var(--bg); transition: background .2s, color .2s; }
.btn:hover { background: var(--red); border-color: var(--red); color: var(--text); }
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { border-color: var(--red); background: transparent; color: var(--text); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a:not(.btn) { font-family: var(--f-display); font-stretch: 105%; font-size: var(--s-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--mute); }
.nav a:not(.btn):hover { color: var(--text); }
.nav .btn { padding: 0.7em 1.2em; font-size: var(--s-xs); }
.menu { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: .08em; text-transform: uppercase; padding: 0.6em 0.9em; cursor: pointer; }
@media (max-width: 860px) {
  .menu { display: inline-block; }
  .nav { display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px var(--gutter) 26px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .brand img { height: 38px; }
}

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(24px, 3vw, 36px); }
.hero .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px 24px; align-items: end; }
.hero-text { grid-column: 1 / span 8; display: grid; gap: 22px; }
.hero-side { grid-column: 9 / span 4; display: grid; gap: 22px; justify-items: start; }
.hero h1 .accent { color: var(--red); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .hero-text, .hero-side { grid-column: 1 / -1; } }

/* Showreel letterbox */
.reel { position: relative; background: #000; border-block: 1px solid var(--line); }
.reel img { width: 100%; height: auto; max-height: calc(100vh - 170px); min-height: 220px; object-fit: cover; object-position: 50% 55%; }
.reel-play { position: absolute; left: 50%; top: 55%; translate: -50% -50%; width: clamp(64px, 11vw, 150px); aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--bg); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 1px rgba(255,255,255,.18); transition: background .2s, transform .2s; }
.reel-play:hover { background: var(--red); transform: scale(1.04); }
.reel-play svg { width: 34%; margin-left: 8%; fill: currentColor; }
.reel-cap { position: absolute; left: var(--gutter); bottom: 16px; display: flex; gap: 14px; align-items: center; color: var(--text); text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.reel-cap .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
@media (max-width: 560px) { .reel-cap { bottom: 10px; } }

/* Sections */
section.block { padding-block: clamp(64px, 9vw, 120px); }
.head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 24px; margin-bottom: clamp(32px, 4vw, 56px); align-items: end; }
.head .label { grid-column: 1 / -1; }
.head h1, .head h2 { grid-column: 1 / span 7; }
.head p { grid-column: 8 / span 5; color: var(--mute); }
@media (max-width: 900px) { .head h1, .head h2, .head p { grid-column: 1 / -1; } }

/* Logo wall: three tiers by brand size */
.clients { padding-block: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.clients .label { text-align: center; display: block; margin-bottom: 36px; }
.tier { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: clamp(24px, 3.6vw, 52px); row-gap: 26px; }
.tier + .tier { margin-top: clamp(28px, 3.5vw, 44px); }
.tier img { height: calc(var(--h) * var(--s, 1)); width: auto; }
.t1 { --h: clamp(26px, 2.6vw, 36px); column-gap: clamp(22px, 2.8vw, 42px); }
.t2 { --h: clamp(22px, 2.5vw, 32px); }
.t3 { --h: clamp(17px, 1.8vw, 24px); }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.svc { display: grid; grid-template-rows: auto auto 1fr; gap: 18px; }
.svc figure { margin: 0; overflow: hidden; }
.svc img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.9); transition: transform .5s; }
.svc:hover img { transform: scale(1.03); }
.svc-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.svc-title .label { color: var(--red); }
.svc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--mute); font-size: var(--s-sm); }
.svc li { padding-left: 18px; position: relative; }
.svc li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--mute); }
.svc.feature .svc-title { border-top-color: var(--red); }
.svc-body { display: grid; gap: 14px; align-content: start; }
.addon { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: baseline; padding: 18px 22px; border: 1px solid var(--line); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; gap: 48px; } }

/* Credits roll */
.work { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; align-items: start; }
.roll { grid-column: 1 / span 7; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.roll li { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.roll .title { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.35rem, 2.6vw, 2rem); text-transform: uppercase; line-height: 1.05; }
.roll .where { font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text); align-self: center; text-align: right; }
.roll .what { grid-column: 1 / -1; color: var(--mute); font-size: var(--s-sm); }
.work-photo { grid-column: 9 / span 4; margin: 0; display: grid; gap: 10px; }
.work-photo img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .roll, .work-photo { grid-column: 1 / -1; } .work-photo img { aspect-ratio: 16 / 10; } }

/* Call sheet case study */
.sheet { background: var(--panel); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(12, 1fr); }
.sheet-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 18px 24px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.sheet-head b { color: var(--red); font-weight: 500; }
.sheet-main { grid-column: 1 / span 9; padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 22px; align-content: start; }
.sheet-rows { grid-column: 8 / span 5; border-left: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); font-size: var(--s-sm); }
.row:last-child { border-bottom: 0; }
.row dt { font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding-top: 2px; }
.row dd { margin: 0; }
@media (max-width: 900px) { .sheet-main, .sheet-rows { grid-column: 1 / -1; } .sheet-rows { border-left: 0; border-top: 1px solid var(--line); } .row { grid-template-columns: 7.5em 1fr; padding-inline: 20px; } }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; }
.q { display: grid; gap: 18px; align-content: start; margin: 0; }
.q blockquote { margin: 0; font-family: var(--f-display); font-stretch: 100%; font-weight: 600; font-size: var(--s-lg); line-height: 1.3; text-wrap: pretty; }
.q.big { grid-column: 1 / span 8; }
.q.big blockquote { font-size: clamp(1.6rem, 3.3vw, 2.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.q.big blockquote::before { content: "\201C"; display: block; color: var(--red); font-size: 1.6em; line-height: .6; margin-bottom: .1em; }
.q-small { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; border-top: 1px solid var(--line); padding-top: 40px; }
.q figcaption { font-size: var(--s-sm); color: var(--mute); }
.q figcaption b { display: block; color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .q.big { grid-column: 1 / -1; } .q-small { grid-template-columns: 1fr; } }

/* Behind the scenes strip */
.bts { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 17vw, 240px); gap: 8px; }
.bts img { width: 100%; height: 100%; object-fit: cover; }
.bts .w2 { grid-column: span 2; }
.bts .h2 { grid-row: span 2; }
@media (max-width: 700px) { .bts { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .bts .h2 { grid-row: span 1; } .bts .w2.h2 { grid-row: span 2; } }
.more { margin-top: 24px; display: flex; justify-content: flex-end; }
.more a, .more-btn { font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.more-btn { background: none; border: 1px solid var(--line); padding: 12px 18px; cursor: pointer; transition: color .2s, border-color .2s; }
.more-btn:hover { color: var(--text); border-color: var(--red); }
body { overflow-anchor: none; }
.bts-more-wrap { overflow: hidden; transition: height .75s cubic-bezier(.65, 0, .35, 1); }
.bts-more { padding-top: 8px; }
.bts-more .tile { opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .45s ease, transform .5s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 55ms); }
.bts-more.in .tile { opacity: 1; transform: none; }
/* Closing is the exact mirror of opening: same distance, timing and stagger, played backwards */
.bts-more.out .tile { transition-timing-function: ease, cubic-bezier(.8,0,.8,.3); transition-delay: calc(var(--r, 0) * 55ms); }
@media (prefers-reduced-motion: reduce) { .bts-more .tile { opacity: 1; transform: none; } .bts-more-wrap { transition: none; } }
[hidden] { display: none !important; }

/* About */
.about { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; align-items: center; }
.about figure { grid-column: 1 / span 6; margin: 0; }
.about figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about-text { grid-column: 8 / span 5; display: grid; gap: 20px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 36px; margin: 8px 0 0; padding: 0; }
.facts dt { font-family: var(--f-display); font-stretch: 115%; font-weight: 800; font-size: var(--s-xl); line-height: 1; font-variant-numeric: tabular-nums; }
.facts dd { margin: 6px 0 0; font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.facts div { display: grid; }
@media (max-width: 900px) { .about figure, .about-text { grid-column: 1 / -1; } }

/* Contact */
.contact { border-top: 1px solid var(--line); background: var(--panel); }
.contact .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; }
.contact-intro { grid-column: 1 / span 6; display: grid; gap: 20px; align-content: start; }
.contact-intro h2 { font-size: var(--s-2xl); font-stretch: 115%; font-weight: 800; }
.lines { grid-column: 8 / span 5; display: grid; gap: 0; align-content: start; border-top: 1px solid var(--line); }
.line { display: grid; gap: 4px; padding-block: 22px; border-bottom: 1px solid var(--line); text-decoration: none; }
.line .v { font-family: var(--f-display); font-stretch: 105%; font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.15; overflow-wrap: anywhere; transition: color .2s; }
a.line:hover .v { color: var(--red); }
@media (max-width: 900px) { .contact-intro, .lines { grid-column: 1 / -1; } }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 28px; }
footer .social { display: flex; gap: 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; background: var(--text); color: var(--bg); padding: 12px 18px; font-size: var(--s-sm); font-weight: 500; z-index: 50; }

/* Homepage H1: small, sits above the logo wall */
.site-h1 { font-family: var(--f-display); font-stretch: 105%; font-weight: 600; font-size: var(--s-md); text-transform: none; letter-spacing: 0; text-align: center; color: var(--text); margin: 0 auto 10px; max-width: 60ch; }
h1.h2 { font-size: var(--s-xl); font-stretch: 108%; font-weight: 700; }
.nav a[aria-current="page"] { color: var(--text); }
.more-link { font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text); text-decoration: none; margin-top: 6px; }
.more-link:hover, .head p a:hover { color: var(--red); }
.head p a { color: var(--text); }

/* Inner page opener */
.page-head { padding-block: clamp(40px, 6vw, 80px) 0; }
.page-head .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; align-items: end; }
.ph-text { grid-column: 1 / span 6; display: grid; gap: 22px; padding-bottom: 8px; }
.ph-text h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.ph-img { grid-column: 8 / span 5; margin: 0; }
.ph-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .ph-text, .ph-img { grid-column: 1 / -1; } }

/* Six-item service grid */
.li-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
.li-col { display: grid; gap: 8px; align-content: start; padding-block: 22px 26px; border-top: 1px solid var(--line); }
.li-col h3 { font-size: var(--s-lg); }
.li-col p { font-size: var(--s-sm); }
@media (max-width: 900px) { .li-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .li-grid { grid-template-columns: 1fr; } }

/* Questions */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding-block: 20px; font-family: var(--f-display); font-weight: 600; font-size: var(--s-lg); }
.qa summary::-webkit-details-marker { display: none; }
.qa { overflow: hidden; }
.qa summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.3em; line-height: 1; color: var(--red); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.qa.is-open summary::after { transform: rotate(45deg); }
.qa p { transition: opacity .35s ease, transform .35s ease; }
.qa.is-closing p { opacity: 0; transform: translateY(-6px); }
.qa p { padding-bottom: 22px; color: var(--mute); }


/* Behind-the-scenes video slot (placeholder until the real clip is added) */
.video-slot { background: #000; border: 1px solid var(--line); display: grid; place-items: center; }
.video-slot span { font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

/* Kit section: short, photo + text */
.kit { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; align-items: center; }
.kit-img { grid-column: 1 / span 5; margin: 0; }
.kit-img img { width: 100%; aspect-ratio: 9 / 10; object-fit: cover; object-position: center 42%; }
.kit-text { grid-column: 7 / span 6; display: grid; gap: 20px; }
.kit-quote { background: var(--panel); border: 1px solid var(--line); padding: 22px 24px; margin-top: 8px; gap: 14px; }
.kit-quote blockquote { font-size: var(--s-md); font-weight: 600; }
.kit-quote blockquote::before { content: "\201C"; display: block; color: var(--red); font-size: 2em; line-height: .6; margin-bottom: .15em; }
@media (max-width: 900px) { .kit-img, .kit-text { grid-column: 1 / -1; } }

/* Behind-the-scenes tiles */
.bts .tile { position: relative; overflow: hidden; }
.bts .tile > img, .bts .tile > .video-slot { width: 100%; height: 100%; object-fit: cover; }
/* Temporary numbers so Isaac can pick tiles; delete .num spans when done */
.bts .num { position: absolute; top: 8px; left: 8px; background: var(--red); color: var(--text); font-family: var(--f-mono); font-weight: 500; font-size: 1rem; line-height: 1; padding: 6px 9px; }

/* Menu links land sections just below the sticky header */
main section, section.contact, main .reel { scroll-margin-top: 84px; }

/* behind-the-scenes photos push in slightly on hover */
.bts .tile > img { transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .7s; }
.bts .tile:hover > img { transform: scale(1.045); filter: brightness(1.06); }

/* Contact: Crewroom emblem embossed faintly behind the text */
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact-intro { position: relative; }
.contact-intro::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: clamp(280px, 30vw, 460px); aspect-ratio: 1;
  left: 38%; top: 50%; translate: -50% -50%;
  background: url("../img/emblem.png") center / contain no-repeat;
  opacity: .07;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.9)) drop-shadow(0 -1px 0 rgba(255,255,255,.5));
}

/* "Back to home" link on the inner pages */
.back-wrap { padding-top: 28px; }
.back { font-family: var(--f-mono); font-size: var(--s-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); text-decoration: none; transition: color .2s; }
.back:hover { color: var(--text); }
.back-wrap + .page-head { padding-top: clamp(20px, 3vw, 40px); }

.li-more { margin-top: 24px; font-size: var(--s-md); }

/* A quote straight after the logo strip needs breathing room so its quote mark clears the divider line */
.clients + section.block[style*="padding-top:0"] { padding-top: clamp(56px, 7vw, 96px) !important; }

