/* Magnet Monkey Media: black, white and one light */
:root {
  color-scheme: dark;
  --black: #000;
  --white: #fff;
  --grey: #a3a3a3;
  --grey-2: #6e6e6e;
  --surface: #121212;
  --line: #262626;
  --light: radial-gradient(70% 60% at 50% 0%, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0.07) 45%, rgb(255 255 255 / 0) 72%);
  --light-up: radial-gradient(80% 70% at 50% 100%, rgb(255 255 255 / 0.18), rgb(255 255 255 / 0.05) 50%, rgb(255 255 255 / 0) 75%);
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1280px;
  --gutter: 48px;
  --gap: 32px;
  --section: 160px;
  --nav-h: 72px;
  --r-media: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); scrollbar-color: var(--grey-2) var(--black); }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--font); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
::selection { background: var(--white); color: var(--black); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
img, video { display: block; max-width: 100%; height: auto; }
svg { display: block; }
[hidden] { display: none !important; }
button, input { font: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 5.2vw, 5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); max-width: 18ch; }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; }
.lead { font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.3125rem); line-height: 1.5; color: var(--grey); max-width: 46ch; }
.small { font-size: 0.875rem; color: var(--grey); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: var(--section); }
.skip { position: absolute; left: 16px; top: -80px; z-index: 600; padding: 8px 16px; background: var(--white); color: var(--black); border-radius: 999px; }
.skip:focus-visible { top: 16px; }

/* buttons: white pill is the one action, outline is the second */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--white); font-size: 0.9375rem; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease); }
.btn--primary { background: var(--white); color: var(--black); }
.btn--primary:hover { background: #d9d9d9; }
.btn--quiet { border-color: #3a3a3a; }
.btn--quiet:hover { border-color: var(--white); }
.btn--bare { min-height: 40px; padding: 0 12px; color: var(--grey); font-size: 0.875rem; }
.btn--bare:hover { color: var(--white); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* nav */
.slab { position: sticky; top: 0; z-index: 300; background: rgb(0 0 0 / 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgb(255 255 255 / 0.06); }
.slab .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; text-decoration: none; }
.brand img { width: 44px; height: auto; display: block; }
.slab ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.slab li a { font-size: 0.875rem; color: var(--grey); text-decoration: none; transition: color 200ms var(--ease); }
.slab li a:hover { color: var(--white); }

/* hero: the studio light, the films either side */
.hero { position: relative; padding-block: 56px 96px; background: var(--light), var(--black); }
.hero .container { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); grid-template-areas: "a t b"; align-items: center; gap: 56px; min-height: min(calc(100dvh - var(--nav-h) - 152px), 40rem); }
.hero__text { grid-area: t; display: grid; justify-items: center; gap: 24px; text-align: center; }
.hero__text .lead { max-width: 30ch; }
.hero__text .acts { justify-content: center; margin-top: 8px; }
.reel { margin: 0; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-media); background: var(--surface); box-shadow: 0 40px 80px -40px rgb(255 255 255 / 0.18); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel--a { grid-area: a; transform: translateY(24px); }
.reel--b { grid-area: b; transform: translateY(-24px); }
html:not(.js) [data-loop-toggle] { display: none; }

/* work: heading and filters stay put while the films scroll */
.stack { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px var(--gap); align-items: start; }
.pin { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
html:not(.js) .filters { display: none; }
.chip { min-height: 38px; padding: 0 16px; border: 1px solid #333; border-radius: 999px; background: transparent; color: var(--grey); font-size: 0.875rem; cursor: pointer; transition: border-color 200ms var(--ease), color 200ms var(--ease), background-color 200ms var(--ease); }
.chip:hover { border-color: var(--white); color: var(--white); }
.chip[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--black); }
.bin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--gap); }
.clip { display: grid; gap: 14px; align-content: start; text-decoration: none; }
.clip__scr { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-media); background: var(--surface); }
.clip__scr img, .clip__scr video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip--wide { grid-column: 1 / -1; }
.clip--wide .clip__scr { aspect-ratio: 16 / 9; }
.clip__play { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); opacity: 0.92; transition: transform 200ms var(--ease); }
.clip__play::after { content: ""; width: 11px; height: 13px; margin-left: 3px; background: var(--black); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.clip:hover .clip__play { transform: scale(1.08); }
.clip__title { font-size: 1rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.clip__meta { display: block; margin-top: 4px; font-weight: 400; }

/* process */
.band { background: var(--black); }
#how { border-top: 1px solid var(--line); }
.prompt { padding: 18px 22px; border-radius: var(--r-media); background: var(--surface); color: var(--grey); font-size: 1.0625rem; }
.prompt::before { content: "> "; color: var(--grey-2); }
.gets { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--grey); }
.gets li { padding-left: 22px; position: relative; }
.gets li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: var(--grey-2); }
.stages { margin: 0; padding: 0; list-style: none; counter-reset: stage; }
.stage { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 24px; padding-block: 40px; counter-increment: stage; }
.stage + .stage { border-top: 1px solid var(--line); }
.stage::before { content: counter(stage); grid-row: span 2; font-size: 1rem; font-weight: 500; color: var(--grey-2); font-variant-numeric: tabular-nums; padding-top: 0.4em; transition: color 400ms var(--ease); }
.stage h3 { font-size: clamp(1.5rem, 2vw, 2rem); transition: color 400ms var(--ease); }
.stage p { color: var(--grey); font-size: 1.0625rem; max-width: 52ch; transition: color 400ms var(--ease); }
.js .stage:not(.is-on) h3 { color: var(--grey-2); }
.js .stage:not(.is-on) p { color: #4d4d4d; }
.stage.is-on::before { color: var(--white); }
.kicker { margin-top: 40px; font-size: clamp(1.25rem, 1.4vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; max-width: 34ch; }

/* styles trio */
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap); align-items: end; margin-bottom: 56px; }
.head .lead { justify-self: end; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.trio figure { display: grid; gap: 14px; margin: 0; }
.trio video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-media); background: var(--surface); }
.trio figcaption { font-weight: 500; }
.trio-acts { margin-top: 32px; }

/* two ways */
#offers { border-top: 1px solid var(--line); }
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.way { display: grid; gap: 24px; align-content: start; padding: 40px; border-radius: 20px; background: var(--surface); }
.way h3 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); }
.way__side { display: grid; gap: 12px; }
.way__side p { color: var(--grey); }
.way__body { display: grid; gap: 20px; }
.way__body > p:first-child { font-size: 1.0625rem; line-height: 1.5; }
.way ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--grey); }
.way li { position: relative; padding-left: 22px; }
.way li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: var(--grey-2); }

/* estimate */
#estimate { border-top: 1px solid var(--line); }
.est { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.est form { display: grid; gap: 28px; }
.fld { display: grid; gap: 6px; }
.fld label { display: flex; justify-content: space-between; gap: 16px; font-weight: 500; }
.fld output { color: var(--grey); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; height: 36px; margin: 0; background: transparent; cursor: pointer; appearance: none; -webkit-appearance: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: #333; border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 2px; background: #333; border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: var(--white); border: 0; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 0; }
.seg { display: flex; gap: 8px; }
.seg .btn { min-height: 40px; }
.seg .btn[aria-pressed="true"] { background: var(--white); color: var(--black); border-color: var(--white); }
.fig { display: block; font-size: clamp(4rem, 8vw, 7rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; margin-top: 8px; }
.meter { height: 2px; margin-block: 28px; background: #333; overflow: hidden; border-radius: 2px; }
.meter > i { display: block; height: 100%; background: var(--white); transform-origin: left; transition: transform 200ms var(--ease); }
.rows { display: grid; }
.rows > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-top: 1px solid var(--line); }
.rows strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.est .small { margin-top: 16px; }

/* close: the light comes back up */
.close { padding-block: var(--section) 40px; background: var(--light-up), var(--black); border-top: 1px solid var(--line); }
.close h2 { max-width: 14ch; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.close__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px var(--gap); align-items: end; }
.close__grid .lead { margin-top: 20px; }
.close__acts { display: grid; gap: 12px; }
.mail { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 20px; border-radius: 999px; background: rgb(255 255 255 / 0.08); }
.mail code { font-family: var(--font); font-size: 1rem; overflow-wrap: anywhere; user-select: all; min-width: 0; }
.mail .btn { min-height: 40px; }
.close__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 120px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.1); }

/* player */
.lb { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px var(--gutter); background: rgb(0 0 0 / 0.94); }
.lb-in { display: grid; grid-template-columns: auto minmax(0, 20rem); gap: 40px; align-items: center; max-height: 100%; }
.lb video { max-height: 86dvh; max-width: 100%; border-radius: var(--r-media); background: var(--surface); }
.lb video.v { aspect-ratio: 9 / 16; height: 86dvh; width: auto; }
.lb .info { display: grid; gap: 12px; }
.lb .info h3 { font-size: 1.75rem; }
.lb .info p { color: var(--grey); }
.lb .nav { display: flex; gap: 8px; margin-top: 8px; }
.lb .x { position: absolute; top: 16px; right: var(--gutter); }

/* tablets */
@media (max-width: 60rem) {
  :root { --gutter: 24px; --section: 104px; }
  .slab ul { display: none; }
  .hero .container { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "t t" "a b"; gap: 40px 16px; min-height: 0; }
  .reel--a, .reel--b { transform: none; }
  .head, .stack, .est, .close__grid, .ways { grid-template-columns: minmax(0, 1fr); }
  .head .lead { justify-self: start; }
  .pin { position: static; }
}

/* phones */
@media (max-width: 40rem) {
  :root { --gutter: 16px; --section: 80px; --nav-h: 60px; --gap: 16px; }
  .brand { font-size: 0.9375rem; }
  .hero { padding-block: 32px 64px; }
  .hero__text .acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .hero__text .acts .btn { padding: 0 12px; }
  .hero__text .acts .btn--bare { grid-column: 1 / -1; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; }
  .bin { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gap); }
  .clip__title { font-size: 0.875rem; }
  .clip__play { width: 32px; height: 32px; right: 8px; bottom: 8px; }
  .stage { grid-template-columns: 32px minmax(0, 1fr); padding-block: 28px; }
  .stage p { font-size: 1rem; }
  .trio { gap: 8px; }
  .trio figcaption { font-size: 0.875rem; line-height: 1.25; }
  .trio-acts .btn { flex: 1 1 100%; }
  .way { padding: 28px 22px; }
  .mail { flex-wrap: wrap; border-radius: 20px; padding: 12px 12px 12px 16px; }
  .close__foot { margin-top: 72px; }
  .lb { padding: 72px var(--gutter) 16px; align-items: start; overflow-y: auto; }
  .lb-in { grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: center; }
  .lb video.v { height: auto; width: min(82vw, calc(66dvh * 9 / 16)); }
  .lb .info { justify-items: center; text-align: center; }
  .lb .info p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
