/* shortformmedia.co. Newsreader for the editorial voice (headlines, hooks, names, numbers), Schibsted Grotesk
   for everything you read in passing. One ground, one ink. The colour comes from the clips; the playing clip's
   progress is light travelling around its frame. */

@font-face { font-family: 'Newsreader'; src: url(/fonts/newsreader.woff2) format('woff2'); font-weight: 300 600; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url(/fonts/schibsted-grotesk.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --ground: #0b0c0e;
  --surface: #15161a;
  --surface-2: #1d1f24;
  --ink: #f4f3f0;
  --gain: #74d6a0;
  --btn: #f4f3f0;
  --btn-ink: #0b0c0e;
  --edge: rgba(255, 255, 255, 0.07);
  --light: #ffffff;
  --amb-o: 0.42;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --m: 20px;
  --max: 1240px;
  --bar: 64px;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.35, 0.5, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #f4f3ef;
    --surface: #ffffff;
    --surface-2: #eae8e3;
    --ink: #0d0e10;
    --gain: #0d7a44;
    --btn: #0d0e10;
    --btn-ink: #f4f3ef;
    --edge: rgba(0, 0, 0, 0.06);
    --amb-o: 0;
    color-scheme: light;
  }
}
@media (min-width: 768px) { :root { --m: 32px; } }
@media (min-width: 1200px) { :root { --m: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 16px/1.5 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip; -webkit-tap-highlight-color: transparent;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, figure, dl, dd, dt { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--ink); color: var(--ground); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 10; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--m); }
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* type: the serif speaks, the sans informs */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; }
h1 { font-size: clamp(46px, 12.6vw, 104px); line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(34px, 8.6vw, 64px); line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
p, .hook-t, .cap-t, .list li { text-wrap: pretty; }
h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; }
.lede { font-size: 16px; line-height: 1.5; max-width: 30ch; }
@media (min-width: 768px) { body { font-size: 17px; } .lede { font-size: 17px; } h2 { font-size: clamp(40px, 5vw, 64px); } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 32px; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink);
  font: 600 16px/1 var(--sans); letter-spacing: -0.01em;
  transition: transform 0.25s var(--spring), box-shadow 0.3s var(--ease);
  user-select: none; -webkit-user-select: none;
}
.btn:hover { box-shadow: 0 0 0 6px color-mix(in srgb, var(--btn) 14%, transparent); }
.btn:active { transform: scale(0.965); }

/* header */
.bar-in { height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a { padding: 8px 0; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
@media (max-width: 559px) { .nav { gap: 20px; } }

/* ---------- the stage ---------- */
.stage { padding-top: 24px; }
.stage-copy { position: relative; z-index: 1; }
.hero .lede { margin-top: 16px; }
.hero-act { margin-top: 26px; }
.stage-media { margin-top: 40px; }
.player { --cw: min(74vw, 320px); position: relative; isolation: isolate; }
.amb {
  position: absolute; z-index: -1; pointer-events: none; left: 0; top: 0; width: var(--cw); aspect-ratio: 9 / 16;
  transform: translateY(5%) scale(0.92); filter: blur(26px) saturate(1.5); opacity: 0; transition: opacity 1s var(--ease), left 0.5s var(--ease);
}
@media (min-width: 1024px) { .amb { transform: scale(1.08); filter: blur(40px) saturate(1.5); } }
.amb.live { opacity: var(--amb-o); }

.track {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--m); scrollbar-width: none;
  margin: 0 calc(-1 * var(--m)); padding: 0 var(--m);
}
.track::-webkit-scrollbar { display: none; }
.track::after { content: ''; flex: 0 0 1px; }
.card {
  flex: 0 0 var(--cw); aspect-ratio: 9 / 16; position: relative; overflow: hidden;
  border-radius: 7% / 3.9375%; background: var(--surface); scroll-snap-align: start;
  isolation: isolate; cursor: pointer; box-shadow: inset 0 0 0 1px var(--edge);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.card video { opacity: 0; transition: opacity 0.4s var(--ease); }
.card.playing video { opacity: 1; }
.card:not(.on) { filter: brightness(0.55) saturate(0.8); }
@media (prefers-color-scheme: light) { .card:not(.on) { filter: none; transform: scale(0.94); transform-origin: 50% 0; } }

.card.on.playing 
.sound, .play {
  position: absolute; z-index: 2; display: grid; place-items: center; color: #fff;
  background: rgba(10, 10, 12, 0.42); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-radius: 999px; transition: opacity 0.3s var(--ease), transform 0.25s var(--spring);
}
.sound { right: 12px; bottom: 12px; width: 40px; height: 40px; }
.sound .on, .unmuted .sound .off { display: none; }
.unmuted .sound .on { display: block; }
.sound:active { transform: scale(0.9); }
.card:not(.on) .sound { opacity: 0; pointer-events: none; }
.play { left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; opacity: 0; pointer-events: none; }
.play .ic { width: 26px; height: 26px; margin-left: 3px; }
.card.on.stopped .play { opacity: 1; }

.one .player { --cw: min(84vw, 360px); }
.one .track { justify-content: center; }
.one .track::after { display: none; }
.caption { margin-top: 20px; min-height: 76px; max-width: 30ch; transition: opacity 0.25s var(--ease); }
.caption.swap { opacity: 0; }
.cap-t { font-family: var(--serif); font-size: 21px; line-height: 1.2; letter-spacing: -0.012em; }
.cap-m { margin-top: 6px; font-size: 15px; }
.dot { padding: 0 3px; }
.hooks-block { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (min-width: 1024px) {
  .stage { padding-top: 0; }
  .stage-grid { --pw: clamp(260px, calc((100svh - 220px) * 0.5625), 400px); display: grid; grid-template-columns: minmax(0, 1fr) var(--pw); column-gap: clamp(40px, 7vw, 132px); }
  .stage-copy { grid-column: 1; }
  .hero { min-height: calc(100svh - var(--bar)); display: flex; flex-direction: column; justify-content: center; padding-bottom: 6vh; }
  .hero h1 { font-size: clamp(56px, 6.4vw, 96px); }
  .stage-media { grid-column: 2; grid-row: 1; margin: 0; }
  .stage .player { --cw: var(--pw); }
  .stage-media { position: sticky; top: calc((100svh - var(--pw) * 16 / 9 - 56px) / 2); margin-top: calc((100svh - var(--bar) - var(--pw) * 16 / 9 - 56px) / 2) !important; align-self: start; }
  .stage .track { display: block; overflow: visible; margin: 0; padding: 0; width: var(--pw); aspect-ratio: 9 / 16; position: relative; }
  .stage .track::after { display: none; }
  .stage .card { position: absolute; inset: 0; opacity: 0; transform: scale(0.985); }
  .stage .card.on { opacity: 1; transform: none; z-index: 1; }
  .stage.many .card:not(.on) { pointer-events: none; }
  .stage.one .stage-grid { --pw: clamp(240px, calc((100svh - 300px) * 0.5625), 380px); }
  .stage .caption { min-height: 0; margin-top: 16px; }
  .stage.many .cap-t { display: none; }
  .stage.many .cap-m { margin-top: 0; }
  .stage.many:not(.hero-in) .caption { opacity: 0; }

  .hooks-block { position: static; width: auto; height: auto; overflow: visible; clip: auto; padding: 0 0 10vh; }
  .hooks-h { max-width: 13ch; margin-bottom: 32px; }
  .hooks { position: relative; margin: 0 -24px; }
  .hook { position: relative; z-index: 1; display: block; width: 100%; text-align: left; padding: 20px 24px 22px; border-radius: 22px; transition: transform 0.25s var(--spring), background 0.3s; }
  .hook:active { transform: scale(0.985); }
  .hook { display: grid; grid-template-columns: minmax(0, 24ch) auto; justify-content: start; column-gap: 40px; align-items: baseline; }
  .hook-t { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 29px); line-height: 1.16; letter-spacing: -0.015em; max-width: 24ch; }
  .hook-v { grid-column: 2; grid-row: 1; font-family: var(--serif); font-size: clamp(22px, 2.1vw, 29px); letter-spacing: -0.02em; white-space: nowrap; }
  .hook-m { grid-column: 1; margin-top: 8px; font-size: 15px; }
  .hook-hl { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 0; border-radius: 22px; background: var(--surface); transition: transform 0.5s var(--ease), height 0.5s var(--ease), opacity 0.3s; opacity: 0; pointer-events: none; }
  .hook-hl.ready { opacity: 1; }
  .hook:not(.on):hover { background: color-mix(in srgb, var(--surface) 55%, transparent); }
}

/* ---------- what we do ---------- */
.service, .shows { padding-top: clamp(112px, 16vw, 200px); }
.list { margin-top: 28px; }
.list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0; font-family: var(--serif); font-size: clamp(22px, 5.8vw, 32px); line-height: 1.2; letter-spacing: -0.015em; }
.logos { display: inline-flex; gap: 14px; align-items: center; }
.logos .ic { width: 0.78em; height: 0.78em; }
@media (min-width: 960px) {
  .service-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
  .service-grid h2 { max-width: 11ch; }
  .list { margin-top: 0; }
  .list li:first-child { padding-top: 6px; }
}

/* ---------- proof ---------- */
.proof { padding-top: clamp(112px, 16vw, 200px); }
.proof h2 { max-width: 20ch; }
@media (max-width: 767px) { .proof h2, .service-grid h2 { max-width: none; } }
.cases { margin-top: 40px; display: grid; gap: 14px; }
.case { background: var(--surface); border-radius: 26px; overflow: hidden; position: relative; }
.face { position: absolute; left: 22px; top: 22px; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.case-in { padding: 22px 22px 26px; min-width: 0; }
.case h3, .case .firm { margin-left: 80px; }
.case h3 { padding-top: 6px; }
.firm { margin-top: 4px; font-size: 15px; text-wrap: balance; }
.gain { margin-top: 20px; font-family: var(--serif); font-size: clamp(34px, 9.6vw, 54px); line-height: 1; letter-spacing: -0.03em; color: var(--gain); }
.gain-l { margin-top: 8px; font-size: 15px; }
.views { margin-top: 2px; font-size: 15px; }
@media (min-width: 900px) {
  .cases { grid-template-columns: repeat(3, 1fr); margin-top: 56px; gap: 16px; }
  .face { left: 28px; top: 26px; }
  .case h3, .case .firm { margin-left: 80px; }
  .case-in { padding: 26px 28px 30px; }
  .gain { font-size: clamp(42px, 4.2vw, 58px); }
}

/* ---------- plain heroes and /casestudies ---------- */
.plain-hero { padding: 40px 0 0; }
.plain-hero .lede { margin-top: 16px; }
.plain-hero .btn { margin-top: 32px; }
.nf { padding-bottom: 20vh; }
@media (min-width: 960px) { .plain-hero { padding-top: 12vh; } }
.client { padding-top: clamp(88px, 12vw, 150px); }
.client .firm { margin-top: 6px; }
.client h2 { font-size: clamp(34px, 8.6vw, 44px); }
.nums { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.nums dt { font-size: 15px; }
.nums dd { margin-top: 4px; font-family: var(--serif); font-size: 26px; letter-spacing: -0.015em; }
.nums b { font-weight: 400; color: var(--gain); }
.nums div:last-child b { color: inherit; }
.client-row { margin-top: 30px; }
.client .player { --cw: min(64vw, 280px); }
@media (min-width: 900px) {
  .client .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; }
  .client-head { position: sticky; top: 14vh; }
  .client-row { margin-top: 0; }
  .client .track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; overflow: visible; margin: 0; padding: 0; }
  .client .track::after { display: none; }
  .client .card { flex: none; }
  .client   .client .caption { max-width: 40ch; }
}

/* ---------- questions ---------- */
.faq { padding-top: clamp(112px, 16vw, 200px); }
.qs { margin-top: 32px; display: grid; gap: 8px; }
.qs details { background: var(--surface); border-radius: 20px; }
.qs summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; font-weight: 500; cursor: pointer; }
.qs summary::-webkit-details-marker { display: none; }
.qs .pm { width: 22px; height: 22px; fill: none; transition: transform 0.35s var(--spring); }
.qs details[open] .pm { transform: rotate(45deg); }
.qs details p { padding: 0 22px 22px; max-width: 58ch; }
@media (min-width: 960px) {
  .faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
  .qs { margin-top: 0; }
}

/* ---------- apply ---------- */
.apply { padding: clamp(112px, 16vw, 200px) 0 clamp(96px, 12vw, 160px); scroll-margin-top: 8px; }
.apply-head h1, .apply-head h2 { max-width: 11ch; }
.alt { margin-top: 16px; font-size: 15px; }
.alt a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.apply-box { margin-top: 32px; }
.fields { display: grid; gap: 14px; }
.f { display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.f input {
  width: 100%; height: 56px; padding: 0 18px; border-radius: 16px;
  border: 1.5px solid transparent; background: var(--surface-2); color: var(--ink);
  font: 400 17px var(--sans); letter-spacing: -0.005em;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.f input:hover { background: color-mix(in srgb, var(--surface-2) 85%, var(--ink)); }
.f input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 10%, transparent); }
.f input[aria-invalid='true'] { border-color: #ff8a7a; }
.btn-w { width: 100%; margin-top: 22px; height: 56px; font-size: 17px; }
.btn-w[disabled] { cursor: progress; }
.sending .b-t { animation: breathe 1.4s var(--ease) infinite; }
@keyframes breathe { 50% { opacity: 0.45; } }
.form-err { margin-top: 14px; font-size: 15px; color: #ff8a7a; }
@media (prefers-color-scheme: light) { .form-err { color: #b42318; } .f input[aria-invalid='true'] { border-color: #b42318; } }
.done { padding: 24px 0; }
.done:focus { outline: none; }
.done-h { font-family: var(--serif); font-size: clamp(36px, 7vw, 56px); letter-spacing: -0.025em; line-height: 1.02; }
.done p:last-child { margin-top: 10px; }
.js .done:not([hidden]) { animation: rise 0.6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@media (min-width: 640px) {
  .fields { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .btn-w { width: auto; min-width: 200px; }
}
@media (min-width: 960px) {
  .apply-grid { max-width: 860px; }
  .apply-box { margin-top: 40px; }
}
.apply-hero { padding-top: 40px; }
.apply-hero h1 { font-size: clamp(42px, 11vw, 76px); }
@media (min-width: 960px) { .apply-hero { padding-top: 12vh; } }

/* ---------- index (/solutions) ---------- */
.index { padding-top: 48px; }
.ix { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ix a { display: block; transition: transform 0.25s var(--spring); }
.ix a:active { transform: scale(0.98); }
.ix img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 7% / 3.9375%; background: var(--surface); }
.ix span { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-family: var(--serif); font-size: 21px; letter-spacing: -0.012em; }
.ix .ic { fill: none; width: 18px; height: 18px; transition: transform 0.3s var(--spring); }
.ix a:hover .ic { transform: translateX(4px); }
@media (min-width: 900px) { .ix { gap: 28px; grid-template-columns: repeat(2, minmax(0, 340px)); } .ix span { font-size: 30px; justify-content: flex-start; gap: 14px; } }

/* ---------- legal ---------- */
.legal { padding: 40px 0 120px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 36px; }
.legal h2 { font-family: var(--sans); font-size: 19px; font-weight: 600; letter-spacing: -0.012em; margin: 36px 0 8px; }
.legal p + p { margin-top: 14px; }
.legal p { overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.foot { padding: 0 0 calc(36px + env(safe-area-inset-bottom)); }
.foot-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; padding-top: 40px; }
.foot-mail { font-weight: 500; }
.foot-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.foot-legal { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.foot-legal span { flex: 1 0 100%; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (min-width: 768px) { .foot-legal span { flex: 0 1 auto; margin-right: auto; } }

/* ---------- reveals ---------- */
.js [data-r] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-r].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-r] { transform: none; transition: opacity 0.4s; }
  .card, .hook-hl, }

@media (min-width: 900px) { .client .card:not(.on) { filter: none; transform: none; } }
