/* Explender Studio, direction v3.
 * The same paper-and-black frame and one accent as v2, now set in Schibsted Grotesk (a neo-grotesk, weight 500 for
 * display, tight tracking), with one persistent 3D object: the black box, carried through the whole pipeline.
 * Loads after site.css and v2.css; v2 parts (packages, order form, FAQ, lens, footer) are reused as they are. */

/* the cutaway lens radius: a registered length, so it eases. It must stay a length (not a percentage), because a
   radial-gradient circle only takes a length; the values are in cqw, a share of the card's width */
@property --cr { syntax: "<length>"; inherits: true; initial-value: 0px; }

:root {
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --soft: #85857F;           /* the quiet half of a two-tone headline: 3.34:1 on paper, large text only */
  --display: 500;
  --track: -0.04em;
}
body.v3 { font-family: var(--font); font-feature-settings: "ss01" 0; -webkit-font-smoothing: antialiased; }
.v3 h1, .v3 h2, .v3 h3 { font-family: var(--font); }

/* Display type: medium weight, tight, like the references (v2 set it at 300) */
.v3 .x-head h2,
.v3 .x-faq .section__head h2,
.v3 .x-order .section__head h2,
.v3 .x-closer__line,
.v3 .x-lens__title,
.v3 .x-kit__name,
.v3 .x-packages .pkg__price,
.v3 .x-foot__word { font-weight: var(--display); letter-spacing: var(--track); }
.v3 .x-lens__tech { font-weight: 400; }
/* the tagline (config.js) leads the footer in the display face */
.x-foot__tag { margin: 0 0 14px; max-width: 20ch; color: var(--on-dark); font-size: clamp(28px, 3.6vw, 44px); font-weight: var(--display); line-height: 1.04; letter-spacing: var(--track); text-wrap: balance; }
.v3 .pkg__name { font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Header ---------- */
.x-top__nav { display: none; gap: 28px; margin-right: 18px; font-size: 14.5px; font-weight: 500; }
.x-top__nav a { color: inherit !important; text-decoration: none; opacity: 0.78; transition: opacity .2s ease; }
.x-top__nav a:hover { opacity: 1; }
@media (min-width: 820px) { .x-top__nav { display: flex; } }

/* The mark (v3, the founder's final): an E whose middle spine piece is pulled out and set in the accent.
 * The piece stays accent on light and dark grounds (it reads by hue there, not by lightness: a logo, not text).
 * One-colour use (print, emboss) lives in Brand/logo/explender-e-one-colour.svg. */
.x-mark--v3 .x-mark__part { fill: currentColor; transition: transform .35s var(--ease); }
.x-mark--v3 .x-mark__dot { fill: var(--accent); transition: transform .35s var(--ease); }
.x-brand:hover .x-mark--v3 .x-mark__dot, .x-brand:focus-visible .x-mark--v3 .x-mark__dot { transform: translateX(-34px); }
.x-brand:hover .x-mark--v3 .x-mark__mid, .x-brand:focus-visible .x-mark--v3 .x-mark__mid { transform: translateX(24px); }
.v3 .x-brand { font-weight: 600; letter-spacing: -0.025em; }
.x-pill--lg { min-height: 50px; padding: 12px 26px; font-size: 16px; }

/* ---------- The theatre: hero + pipeline, one pinned stage ---------- */
.t { position: relative; height: 820svh; background: var(--black); color: var(--on-dark); }
.t__anchor { position: absolute; left: 0; width: 1px; height: 1px; }
.t__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.t__paper { position: absolute; inset: 0; background: var(--paper); opacity: calc(1 - var(--dark, 0)); }
.t__canvas { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 2; }
/* the floating subjects behind the hero: grey dots (the headline and the box stay the darkest things), gone with the hero,
   none without script or under reduced motion */
.t__dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; color: var(--ink-3);
  opacity: calc(1 - var(--hero-out, 0)); visibility: var(--hero-vis, visible); }
.no-js .t__dots, .t.is-static .t__dots { display: none; }
.t__stage { position: absolute; top: calc(var(--header-h) + 4px); bottom: calc(236px + env(safe-area-inset-bottom)); left: 0; right: 0; pointer-events: none; }
@media (max-height: 620px) and (max-width: 999px) { .t__stage { bottom: 200px; } .t__beat h2 + p { display: none; } }
@media (min-width: 1000px) { .t__stage { left: 36vw; right: 1vw; bottom: 3svh; } }

/* Hero (state 0 of the theatre) */
.t__hero {
  position: absolute; inset: var(--header-h) 0 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 var(--gutter) 7svh; text-align: center; color: var(--ink);
  opacity: calc(1 - var(--hero-out, 0)); transform: translateY(calc(var(--hero-out, 0) * -36px));
  visibility: var(--hero-vis, visible);
}
.t__kicker { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
/* the bottom margin takes back the empty band under the box (the box ends 94.3 % down its frame), sized to the slot */
.t__slot { margin: 0.5svh 0 calc(min(46svh, 76vw) * -0.057); width: min(46svh, 76vw); aspect-ratio: 1; }
.t__slot img { display: block; width: 100%; height: 100%; }
.t.is-live .t__slot img { visibility: hidden; }
/* 0.32em clear of the box: the accent highlight reaches about 0.15em above the letters.
   The longest phrase sets the size: "Advanced science" (7.92em; "Complex biology" is 7.17em, "Deep tech" 4.38em). The
   divisors were set when "Cutting edge ideas" (7.94em) was the longest. The founder's fourth pass (2026-11-30) dropped
   it, so they now leave a hair more spare. Below 900px the title breaks after the phrase, so that first line is the
   widest; the divisor leaves about 11% spare. From 900px it is one line, about 15.5em with " explained simply."
   (measured 2026-11-30, third pass: no hyphen, the highlight on "explained simply."), with about 7% spare, for a
   classic scrollbar. */
.t__title { margin: 0.32em 0 0; color: var(--ink) !important; font-size: min(calc((100vw - 2 * var(--gutter)) / 8.9), 68px); font-weight: var(--display); line-height: 0.95; letter-spacing: -0.045em; }
.t__soft { color: var(--soft); }
@media (min-width: 900px) { .t__title { font-size: min(calc((100vw - 2 * var(--gutter)) / 16.6), 96px); } .t__br { display: none; } }
/* the changing phrase types itself behind a caret in plain type (v3.js initSwap); the accent highlight is on
   "explained simply." only (the founder, 2026-11-30, third pass). Its slot opens one letter ahead of the caret and
   closes behind it as the phrase deletes, so the centred line glides with the letters.
   v3.js sets the duration for each letter; the timing stays linear so the steps join into one glide. */
.t__swap { position: relative; display: inline-block; vertical-align: top; text-align: left; white-space: nowrap; }
.t__swap.is-ready { transition: width 0s linear; }
/* the highlight is not positioned, so below 900px the phrase above it, in its positioned slot, paints over the box's
   top: the box reaches about 0.22em above its letters, past that line's descenders (the p, g and y) */
.t__hl { margin: 0 -0.045em; padding: 0 0.045em; background: var(--accent); color: var(--accent-ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.t__hl:empty { padding: 0; margin: 0; }
/* the caret: an empty inline box after the word, drawn by its left border, which spans the box's own text height. At
   0.92 of the title size it stops about 0.08em short of the highlight's top and 0.02em of its bottom; its margins (in
   its own em) set it 0.06em past the word and give the room back, so the line never moves */
.t__caret { font-size: 0.92em; margin: 0 -0.125em 0 0.065em; border-left: 0.06em solid var(--ink); opacity: 0; }
.t__swap.is-typing .t__caret { opacity: 1; }
.t__probe { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; }
.t__lede { margin: 22px auto 0; max-width: 34ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: var(--ink-2); letter-spacing: -0.01em; text-wrap: balance; }
.t__br-lede { display: none; }
@media (min-width: 640px) { .t__lede { max-width: none; } .t__br-lede { display: inline; } }
.t__ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; margin-top: 26px; }
.t__more { color: var(--ink) !important; font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* The beats: one statement per step of the pipeline */
.t__beats { list-style: none; margin: 0; padding: 0; }
.t__beat {
  position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); bottom: calc(58px + env(safe-area-inset-bottom));
  opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .6s var(--ease); pointer-events: none;
}
.t__beat.is-on { opacity: 1; transform: none; pointer-events: auto; }
.t__still { display: none; margin: 0; }
.t__n { display: flex; gap: 12px; align-items: baseline; margin: 0 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.t__beat h2 { margin: 0; color: var(--on-dark) !important; font-size: clamp(28px, 7.4vw, 40px); font-weight: var(--display); line-height: 1.02; letter-spacing: -0.04em; max-width: 16ch; }
.t__beat h2 + p { margin: 14px 0 0; max-width: 38ch; font-size: 16px; line-height: 1.5; color: var(--on-dark-2); }
@media (min-width: 1000px) {
  .t__beat {
    left: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); right: auto; top: 50%; bottom: auto; width: min(34vw, 470px);
    transform: translateY(calc(-50% + 18px));
  }
  .t__beat.is-on { transform: translateY(-50%); }
  .t__beat h2 { font-size: clamp(38px, 3.9vw, 60px); }
  .t__beat h2 + p { font-size: 18px; margin-top: 20px; }
}

/* Leader labels for the exploded view: positions come from the render's own anchors (anchors.json) */
.t__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.t__lines line { stroke: rgba(255, 255, 255, 0.55); stroke-width: 1; }
.t__lines circle { fill: var(--accent); }
.t__labels { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.t__labels li {
  position: absolute; left: 0; top: 0; padding: 0 0 0 6px; white-space: nowrap; opacity: 0;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark);
}
.t__labels li.is-left { padding: 0 6px 0 0; text-align: right; }
@media (min-width: 1000px) { .t__labels li { font-size: 12.5px; } }
/* on a phone a one-line label cannot clear its own dot: each breaks into two short lines */
@media (max-width: 599px) { .t__labels li { font-size: 11px; letter-spacing: 0.06em; line-height: 1.3; } .t__labels li span { display: block; } }

.t__progress {
  position: absolute; z-index: 4; left: var(--gutter); bottom: calc(22px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--on-dark-3); font-variant-numeric: tabular-nums; opacity: var(--dark, 0);
}
.t__progress-bar { position: relative; width: 120px; height: 1px; background: var(--dark-line); }
.t__progress-bar span { position: absolute; inset: 0; background: var(--on-dark); transform-origin: left; transform: scaleX(var(--tp, 0)); }
@media (min-width: 1000px) { .t__progress { left: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); bottom: 32px; } }

/* No script, or reduced motion: the theatre becomes a plain hero and a list of steps, each with its still */
.no-js .t, .t.is-static { height: auto; background: var(--paper); }
.no-js .t__pin, .t.is-static .t__pin { position: static; height: auto; overflow: visible; }
.no-js .t__hero, .t.is-static .t__hero { position: relative; inset: auto; padding: calc(var(--header-h) + 32px) var(--gutter) 72px; opacity: 1; transform: none; visibility: visible; }
.no-js .t__canvas, .no-js .t__lines, .no-js .t__labels, .no-js .t__stage, .no-js .t__progress, .no-js .t__paper,
.t.is-static .t__canvas, .t.is-static .t__lines, .t.is-static .t__labels, .t.is-static .t__stage, .t.is-static .t__progress, .t.is-static .t__paper { display: none; }
.t.is-static .t__slot img { visibility: visible; }
.no-js .t__beats, .t.is-static .t__beats { background: var(--black); padding: 72px var(--gutter) 88px; display: grid; gap: 56px; }
.no-js .t__beat, .t.is-static .t__beat {
  position: static; opacity: 1; transform: none; width: auto; max-width: 1160px; margin: 0 auto; pointer-events: auto;
  display: grid; gap: 0 40px; grid-template-columns: 1fr; align-items: center;
}
.no-js .t__still, .t.is-static .t__still { display: block; width: min(100%, 420px); margin-bottom: 18px; }
.no-js .t__still img, .t.is-static .t__still img { display: block; width: 100%; height: auto; }
@media (min-width: 900px) {
  .no-js .t__beat, .t.is-static .t__beat { grid-template-columns: 380px 1fr; grid-template-rows: auto auto auto; }
  .no-js .t__still, .t.is-static .t__still { grid-row: 1 / span 3; margin: 0; }
}

/* ---------- Who it's for: studio examples with a cutaway lens ---------- */
.w { padding: 112px 0 104px; background: var(--paper); }
.w__head { max-width: 860px; margin-bottom: 52px; }
.w__head h2 { margin: 0; font-size: clamp(40px, 6.4vw, 92px); font-weight: var(--display); line-height: 0.96; letter-spacing: -0.045em; }
.w__lede { margin: 22px 0 0; max-width: 46ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); }
.w__grid { display: grid; gap: 40px 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .w__grid { grid-template-columns: repeat(3, 1fr); } }
.w__card h3 { margin: 6px 0 0; font-size: clamp(22px, 2.1vw, 28px); font-weight: var(--display); letter-spacing: -0.03em; line-height: 1.1; }
.w__card h3 + p { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.w__field { margin: 20px 0 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.w__cap { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.w__note { margin: 40px 0 0; font-size: 14px; color: var(--ink-3); }
.w__media {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-l);
  background: linear-gradient(180deg, #EDEDE8, var(--paper-2));
  container-type: inline-size;
  --x: 50%; --y: 50%; --cr: 0px; cursor: crosshair; touch-action: pan-y;
}
.w__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The cut shows through a round lens with a soft edge (--feather). Timings: the lens grows in 0.42 s and shrinks in
   0.6 s; "Cut it open" widens it from the middle in 0.9 s (ease in and out) and "Close it" closes it in 0.6 s. The lens
   centre follows the pointer with a short ease in v3.js. Open is 80cqw: the far corner of the square from the middle
   is 70.7cqw, so the soft edge clears the corners with nothing spent past them. */
.w__inner {
  --feather: 5cqw;
  clip-path: circle(var(--cr) at var(--x) var(--y));  /* fallback without masks: the same lens, hard edged */
  transition: --cr .6s cubic-bezier(.45, 0, .2, 1);
}
@supports ((-webkit-mask-image: radial-gradient(#000, transparent)) or (mask-image: radial-gradient(#000, transparent))) {
  .w__inner {
    clip-path: none;
    -webkit-mask-image: radial-gradient(circle var(--cr) at var(--x) var(--y), #000 calc(100% - var(--feather)), transparent 100%);
    mask-image: radial-gradient(circle var(--cr) at var(--x) var(--y), #000 calc(100% - var(--feather)), transparent 100%);
  }
}
.w__media.is-lens .w__inner { --cr: 24cqw; transition: --cr .42s var(--ease); }
.w__media.is-open .w__inner { --cr: 80cqw; transition: --cr .9s cubic-bezier(.65, 0, .35, 1); }
.w__toggle {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; min-height: 36px; padding: 7px 14px; border: 0; border-radius: 999px;
  background: rgba(11, 11, 11, 0.82); color: var(--white); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);  /* a hairline, so the pill holds its shape over a black skin */
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.w__toggle[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Client film ---------- */
.c { padding: 108px 0 96px; background: var(--black); color: var(--on-dark-2); }
.c__head { max-width: 900px; margin-bottom: 44px; }
.c__head h2 { margin: 0; color: var(--on-dark) !important; font-size: clamp(40px, 6.4vw, 92px); font-weight: var(--display); line-height: 0.96; letter-spacing: -0.045em; }
.c__lede { margin: 22px 0 0; max-width: 50ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--on-dark-2); }
.c .film__caption, .c .film__caption a { color: var(--on-dark-2) !important; }
.c .film__caption strong { color: var(--on-dark); }
.v3 .x-lens { padding-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  .t__beat, .w__inner, .t__swap.is-ready { transition: none; }
}

/* Schibsted Grotesk gives its tabular comma a full figure width ("$1 , 850"), so prices use proportional figures */
.v3 .pkg__price, .v3 .choice-card__price, .v3 [data-due] { font-variant-numeric: proportional-nums; }

/* Phones get the 640 set through <picture>, the same files the theatre draws, so stills and frames share one download.
   The wrapper makes no box of its own: every ".t__slot img" style keeps applying as before. */
.t__slot picture, .t__still picture { display: contents; }

/* Packages carry no numbers or thumbnails; the Launch kit keeps its "Custom quote" flag, set at the left */
.v3 .x-kit .x-pkg__flag { margin-left: 0; }

/* Launch kit: a 10 s studio loop of the black box (Brand/3d/blackbox, loop mode). It plays only while it shows; a click
   or tap on it pauses it and plays it again (no button: the founder, 2026-11-30). Under reduced motion the poster stays
   until it is clicked; without script it is the poster. */
.x-kit__media { position: relative; overflow: hidden; }
.x-kit__media video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Explainer+: a bold, upright plus in the name's own colour (white on the dark cards), drawn as two bars
   (the founder, 2026-11-30: white, not rotated, no tile or border; at 0.86em it was "way too big", so it is now a
   little taller than the lowercase letters and centred on them). The real "+" stays in the text for screen readers and
   copying; it is only hidden from view. Same rules in start.css. */
.x-plus {
  position: relative; display: inline-block; width: 0.6em; height: 0.6em; margin-left: 0.06em; vertical-align: 0.02em;
  overflow: hidden; line-height: 0.6em; -webkit-text-fill-color: transparent;
}
.x-plus::before, .x-plus::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 0.015em; background: currentColor; transform: translate(-50%, -50%); }
.x-plus::before { width: 100%; height: 0.12em; }
.x-plus::after { width: 0.12em; height: 100%; }

/* The closer leads straight into the brief card: its two buttons went (the founder, 2026-11-30), so the card sits right
   under the line and carries the one way in, "Start now" */
.v3 .x-closer { padding-bottom: clamp(36px, 5vw, 64px); }
.v3 .x-closer + .x-order { padding-top: 0; }

/* the line under the examples' intro that says how to look inside: hover on a laptop, touch on a phone */
.w__hint { margin: 14px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-3); }
