/* Palette A, "night drive": night blue, amber, road white, steel. Red only on the logo-derived playhead and REC dots. */
:root {
  --black: #0F1B2D;
  --white: #F2F4F1;
  --grey: #93A4B8;
  --line: #26384F;
  --red: #FF3B30;
  --amber: #FFB81C;
  --dusk: #1B2D47;
  --display: "Anybody", "Arial Black", system-ui, sans-serif;
  --text: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1rem, 5vw, 4rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--black); color: var(--white); font: 400 1.0625rem/1.6 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--black); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }

.bar { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); background: var(--black); }
.mark { display: block; line-height: 0; }
.mark-svg { height: 2.2rem; width: auto; }
.bar nav { display: flex; gap: clamp(1.2rem, 3vw, 2.4rem); font-size: .95rem; }
.bar nav a { text-decoration: none; color: var(--grey); }
.bar nav a:hover { color: var(--amber); }

.hero { padding-top: clamp(7rem, 16vw, 10rem); }
.name { margin: 0; font: 900 clamp(2.6rem, 9vw, 8rem)/.92 var(--display); font-variation-settings: "wdth" 135; letter-spacing: -.02em; }
.role { margin: 1.4rem 0 0; color: var(--amber); font-size: 1.1rem; }

.frame { position: relative; margin-top: clamp(2.5rem, 6vw, 4rem); aspect-ratio: 16 / 9; max-width: 100%; background: var(--poster) center / cover no-repeat, var(--dusk); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; z-index: 1; inset: 0; margin: auto; width: 4rem; height: 4rem; border-radius: 50%; border: 0; background: var(--amber); color: var(--black); cursor: pointer; display: grid; place-items: center; }
.play:hover { background: var(--white); }

.h2 { margin: 0 0 2rem; font: 900 1.1rem/1 var(--display); font-variation-settings: "wdth" 135; color: var(--grey); }
main > section + section { padding-top: clamp(4.5rem, 11vw, 7.5rem); }
.h3 { margin: 4rem 0 1.2rem; font: 800 1rem/1 var(--display); font-variation-settings: "wdth" 120; color: var(--grey); }

.reel { margin: 0; }
.reel figcaption { margin-top: .8rem; font-size: .9rem; color: var(--grey); }

.numbers dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.numbers dl > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .3rem; }
.numbers dd { margin: 0; color: var(--amber); font: 900 clamp(2.2rem, 5vw, 3.6rem)/1 var(--display); font-variation-settings: "wdth" 135; }
.numbers dt { color: var(--grey); font-size: .95rem; }
@media (max-width: 680px) { .numbers dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.brands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem 2.4rem; }
.brands li { font: 800 clamp(1.2rem, 2.6vw, 1.7rem)/1.2 var(--display); font-variation-settings: "wdth" 120; }

.case { padding: 1.6rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .3rem 2rem; }
.case:last-of-type { border-bottom: 1px solid var(--line); }
.case h3 { margin: 0; font: 900 clamp(1.5rem, 3vw, 2.2rem)/1.05 var(--display); font-variation-settings: "wdth" 120; grid-row: span 2; }
.case p { margin: 0; max-width: 36rem; }
.case .meta { color: var(--grey); font-size: .95rem; }
@media (max-width: 680px) { .case { grid-template-columns: 1fr; } .case h3 { grid-row: auto; } }

.lead { margin: 0 0 2.4rem; max-width: 40rem; font-size: 1.2rem; line-height: 1.55; }
.timeline { list-style: none; margin: 0; padding: 0; max-width: 40rem; }
.timeline li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.timeline span { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--amber); }
.published { margin: 2rem 0 0; color: var(--grey); max-width: 40rem; }
.published a { color: var(--amber); margin-left: .4rem; }

.series-link { font: 900 clamp(1.6rem, 4vw, 2.8rem)/1.1 var(--display); font-variation-settings: "wdth" 120; text-decoration: none; }
.series-link:hover { color: var(--amber); }
.series .fmt { margin: .6rem 0 0; }

.faq details { border-top: 1px solid var(--line); max-width: 46rem; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--grey); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.2rem; color: var(--grey); max-width: 40rem; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 4rem; gap: .25rem 2rem; align-items: baseline; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.client { font: 800 clamp(1.15rem, 2.2vw, 1.5rem)/1.2 var(--display); font-variation-settings: "wdth" 110; }
.fmt { color: var(--grey); font-size: .95rem; }
.rows a { justify-self: end; font-size: .95rem; text-decoration: none; color: var(--amber); font-weight: 600; }
.rows a:hover { text-decoration: underline; }
@media (max-width: 680px) {
  .rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .fmt { grid-column: 1; grid-row: 2; }
  .rows a { grid-column: 2; grid-row: 1; }
}

.prose { max-width: 40rem; }
.prose p { margin: 0 0 1rem; font-size: 1.2rem; line-height: 1.55; }
.prose .member { font-size: 1rem; color: var(--grey); }

.mail { display: inline-block; font: 900 clamp(1.5rem, 5vw, 3.4rem)/1.1 var(--display); font-variation-settings: "wdth" 110; text-decoration: none; overflow-wrap: anywhere; }
.mail:hover { color: var(--amber); }
.social { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 2rem; }
.social a { color: var(--grey); text-decoration: none; }
.social a:hover { color: var(--amber); }

.foot { padding-block: clamp(5rem, 12vw, 8rem) .5rem; color: var(--grey); font-size: .9rem; }
.foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Brand details from the Timecode logo: scroll scrubber, playhead reveal, REC dots */
.bar { position: fixed; }
.scrub { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.scrub i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--white); }
.scrub b { position: absolute; top: -5px; left: calc(var(--p, 0) * 100%); width: 2px; height: 12px; background: var(--red); }

.headline { position: relative; display: inline-block; }
.name { animation: reveal 1.1s cubic-bezier(.6, 0, .2, 1) .15s both; }
.sweep { position: absolute; top: -4%; bottom: -4%; width: 3px; background: var(--red); animation: sweep 1.1s cubic-bezier(.6, 0, .2, 1) .15s both; }
@keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sweep { 0% { left: 0; opacity: 1; } 85% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; } }

.frame::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, rgb(15 27 45 / .75)); pointer-events: none; }
.frame iframe { z-index: 2; }
.frame-tl { position: absolute; z-index: 1; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; height: 3px; background: rgb(255 255 255 / .3); }
.frame-tl i { position: absolute; inset: 0 auto 0 0; width: 34%; background: var(--white); }
.frame-tl b { position: absolute; left: 34%; top: -7px; width: 3px; height: 17px; background: var(--red); }

.h2::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .55em; border-radius: 50%; background: var(--red); vertical-align: .02em; }

.rows li, .case { position: relative; }
.rows li::before, .case::before { content: ""; position: absolute; left: -.75rem; top: 1rem; bottom: 1rem; width: 2px; background: var(--amber); opacity: 0; transition: opacity .2s; }
.rows li:hover::before, .case:hover::before { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .name, .sweep { animation: none; }
  .sweep { display: none; }
  .rows li::before, .case::before { transition: none; }
}

/* Touch: every tap target at least 44px tall */
.bar nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-inline: .2rem; }
.rows a, .social a, .published a { display: inline-flex; align-items: center; min-height: 44px; }
.mail { padding-block: .4rem; }
.faq summary { min-height: 44px; align-items: center; }
@media (hover: none) { .rows li::before, .case::before { display: none; } }
@media (max-width: 680px) {
  .bar { padding-block: .6rem; }
  .mark-svg { height: 1.9rem; }
  .frame-tl { left: .8rem; right: .8rem; bottom: .8rem; }
  .play { width: 3.5rem; height: 3.5rem; }
}
.mark { min-height: 44px; display: flex; align-items: center; }
.series-link, .mail { display: inline-block; min-height: 44px; }

/* Production Paradise ideas: proof line under the headline, video cards, closing call to action */
.trust { margin: .6rem 0 0; max-width: 44rem; color: var(--grey); font-size: 1rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.cards a { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; min-width: 0; }
.cards .thumb { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; margin-bottom: .5rem; background: var(--img, none) center / cover no-repeat, var(--dusk); }
.cards .thumb i { position: absolute; inset: 0; margin: auto; width: 3rem; height: 3rem; border-radius: 50%; background: var(--amber); }
.cards .thumb i::after { content: ""; position: absolute; left: 1.2rem; top: .95rem; border-style: solid; border-width: .55rem 0 .55rem .9rem; border-color: transparent transparent transparent var(--black); }
.cards b { font: 800 1.15rem/1.2 var(--display); font-variation-settings: "wdth" 110; }
.cards span:not(.thumb) { color: var(--grey); font-size: .92rem; }
.cards a:hover b { color: var(--amber); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.cta { margin: 0 0 .6rem; font: 800 clamp(1.3rem, 3vw, 2rem)/1.2 var(--display); font-variation-settings: "wdth" 110; color: var(--amber); max-width: 40rem; }

/* ===== George's structure: brand left, menu, Work With Me, slider, 6 featured ===== */
.bar { gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; min-height: 44px; text-decoration: none; }
.brand .mark-svg { height: 2rem; }
.brand span { font: 800 1.05rem/1 var(--display); font-variation-settings: "wdth" 115; white-space: nowrap; }
.menu { display: flex; gap: clamp(1rem, 2.6vw, 2rem); margin-left: auto; font-size: .95rem; }
.menu a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--grey); }
.menu a:hover, .menu a[aria-current="page"] { color: var(--white); }
.cta-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 99px; background: var(--amber); color: var(--black); font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.cta-btn:hover { background: var(--white); }
.menu-btn { flex-shrink: 0; display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--white); cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .2s; }
.menu-btn i:first-child { top: 17px; } .menu-btn i:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .cta-btn { margin-left: auto; padding: 0 .9rem; font-size: .9rem; }
  .bar .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.2rem; background: var(--black); border-bottom: 1px solid var(--line); }
  .bar .menu.is-open { display: flex; }
  .bar .menu a { font-size: 1.15rem; color: var(--white); border-top: 1px solid var(--line); }
}
[hidden] { display: none !important; }
@media (max-width: 480px) {
  .bar { gap: .6rem; }
  .brand .mark-svg { display: none; }
  .brand span { font-size: .98rem; }
  .cta-btn { padding: 0 .8rem; font-size: .85rem; }
}

/* slider: native swipe via scroll-snap */
main#main > .slider { padding-top: 4.6rem; }
.slider { position: relative; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; position: relative; scroll-snap-align: start; aspect-ratio: 21 / 9; max-height: 78vh; min-height: 18rem; background: var(--img, none) center / cover no-repeat, var(--dusk); }
.slide::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgb(15 27 45 / .85)); pointer-events: none; }
.slide figcaption { position: absolute; z-index: 1; left: var(--gutter); bottom: clamp(1.2rem, 4vw, 2.6rem); display: flex; flex-direction: column; gap: .2rem; }
.slide figcaption b { font: 900 clamp(1.6rem, 4.4vw, 3.4rem)/1 var(--display); font-variation-settings: "wdth" 125; }
.slide figcaption span { color: var(--amber); font-size: clamp(.95rem, 1.6vw, 1.1rem); }
.title-card .tc { position: absolute; inset: 0; background: radial-gradient(120% 90% at 80% 20%, #24395A, var(--dusk) 60%); }
.tc-rail { position: absolute; left: var(--gutter); right: var(--gutter); top: 44%; height: 3px; background: rgb(242 244 241 / .25); }
.tc-rail i { position: absolute; inset: 0 auto 0 0; width: 58%; background: var(--white); }
.tc-rail b { position: absolute; left: 58%; top: -9px; width: 3px; height: 21px; background: var(--red); }
.slider-ui { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; padding-top: .8rem; }
.sl-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--white); cursor: pointer; display: grid; place-items: center; }
.sl-btn:hover { border-color: var(--amber); color: var(--amber); }
.dots { display: flex; gap: .2rem; margin-right: auto; }
.dots button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.dots button::after { content: ""; position: absolute; left: 8px; right: 8px; top: 21px; height: 3px; background: var(--line); }
.dots button[aria-current="true"]::after { background: var(--amber); }
@media (max-width: 680px) { .slide { aspect-ratio: 4 / 5; max-height: 72vh; } }

/* intro under the slider */
.intro { padding-top: clamp(2.5rem, 7vw, 4.5rem); }
.intro .name { font-size: clamp(1.75rem, 7vw, 5.6rem); }
.work-page .intro { padding-top: clamp(7rem, 14vw, 9rem); }

/* 6 featured: 3x2, 2 columns on phones */
.featured .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.cards > li > div { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
@media (max-width: 760px) { .featured .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; } .cards b { font-size: 1rem; } }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1.6rem; color: var(--amber); font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.about .numbers { margin: 0 0 2rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.about .numbers > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .3rem; }
.about .numbers dd { margin: 0; color: var(--amber); font: 900 clamp(2rem, 5vw, 3.2rem)/1 var(--display); font-variation-settings: "wdth" 135; }
.about .numbers dt { color: var(--grey); font-size: .92rem; }
@media (max-width: 680px) { .about .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.quotes blockquote { margin: 0; font-size: 1.25rem; line-height: 1.5; max-width: 40rem; }
.quotes cite { display: block; margin-top: .6rem; color: var(--grey); font-style: normal; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.foot a { color: var(--grey); }
@media (prefers-reduced-motion: reduce) { .track { scroll-behavior: auto; } .menu-btn i { transition: none; } }
.bar .menu .menu-cta { display: none; }
@media (max-width: 360px) {
  .cta-btn { display: none; }
  .menu-btn { margin-left: auto; }
  .bar .menu .menu-cta { display: inline-flex; color: var(--amber); font-weight: 700; }
}

.foot .powered { font-size: .8rem; }
@media (max-width: 600px) { .foot { flex-direction: column; align-items: flex-start; gap: .25rem; } }
.foot .powered a { display: inline-flex; align-items: center; min-height: 44px; color: var(--grey); text-decoration: underline; text-underline-offset: 3px; }
.foot .powered a:hover { color: var(--amber); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.intro { padding-block: 1.25rem .25rem; }
.intro .trust { margin: 0 0 .5rem; color: var(--amber); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.intro .brands { gap: .25rem 1.4rem; }
.intro .brands li { font: 500 .95rem/1.6 var(--text, inherit); font-variation-settings: normal; color: var(--grey); }
@media (max-width: 600px) { .intro .brands { gap: .1rem 1rem; } }
.intro + .featured { padding-top: 2.5rem; }
.latest .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .latest .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
