/* Orama Studios — "hand-drawn field notes on warm paper", in Orama's palette.
   Layout: split hero with drawings either side of a centred headline,
   then alternating paper / pale-tint bands, joined by one hand-drawn line down the page. */
/* Schibsted Grotesk (SIL Open Font License, see fonts/OFL.txt), self-hosted. */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #070600;
  --ink-soft: #3d3a33;
  --red: #AE1B1B;
  --red-deep: #8f1414;
  --paper: #F7F7FF;
  --cyan: #23B5D3;
  --blue: #279AF1;
  --wash-cyan: #eaf6f9;
  --wash-blue: #ecf3fd;
  --wash-red: #f8eeee;
  --line: rgba(7, 6, 0, 0.16);
  --white: #ffffff;

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem);
  --step-5: clamp(2.5rem, 1.6rem + 3.6vw, 4.1rem);

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --band: clamp(64px, 9vw, 112px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 2; }

h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.25; }
p { margin: 0; }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 58ch; }

/* small section label: sentence case, red dot */
.label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font); font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); }
.label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border-radius: 999px; font: 600 var(--step-0)/1 var(--font); text-decoration: none; border: 1.5px solid transparent; transition: background-color .2s, color .2s, transform .2s; cursor: pointer; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.skip { position: absolute; left: 16px; top: 12px; z-index: 30; transform: translateY(-160%); }
.skip:focus { transform: none; }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.nav .logo img { height: 40px; width: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-weight: 500; }
.nav ul a { text-decoration: none; padding-block: 6px; background: linear-gradient(var(--red), var(--red)) left bottom / 0 2px no-repeat; transition: background-size .25s; }
.nav ul a:hover { background-size: 100% 2px; }
.nav .btn { min-height: 42px; padding: 10px 20px; }
@media (max-width: 860px) { .nav ul { display: none; } .nav .logo img { height: 34px; } }

/* bands */
.band { position: relative; padding-block: var(--band); }
.band.tint-cyan { background: var(--wash-cyan); }
.band.tint-blue { background: var(--wash-blue); }
.band.tint-red { background: var(--wash-red); }
.band-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 60px); max-width: 760px; }

/* hero */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1fr minmax(0, 1.55fr) 1fr; align-items: center; gap: clamp(16px, 3vw, 40px); }
.hero-copy { text-align: center; display: grid; justify-items: center; gap: 24px; }
.hero h1 { font-size: var(--step-5); }
.hero h1 .mark { position: relative; white-space: nowrap; }
.hero h1 .underline { position: absolute; left: -2%; width: 104%; bottom: -0.16em; height: 0.32em; overflow: visible; pointer-events: none; }
.hero h1 .underline path { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; }
.hero .lede { max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.proof { font-family: var(--font); font-size: var(--step--1); color: var(--ink-soft); }
.proof a { text-underline-offset: 3px; }
.hero-art { position: relative; }
.hero-art.left { align-self: start; margin-top: 8%; }
.hero-art.right { align-self: center; margin-top: 18%; }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr 1fr; }
  .hero-copy { grid-column: 1 / -1; grid-row: 1; }
  .hero-art.left, .hero-art.right { margin-top: 0; align-self: center; }
}

/* services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.service { display: grid; grid-template-rows: auto auto 1fr; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 26px; }
.service .art { aspect-ratio: 4 / 3; display: grid; place-items: center; border-radius: 10px; background: var(--white); overflow: hidden; }
.service .art .alive { height: 86%; width: auto; max-width: 92%; }
.service p { color: var(--ink-soft); }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; max-width: 520px; } }

/* motion card */
.motion-svg { width: 100%; height: 100%; }
.motion-svg .track { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 8; opacity: .55; }
.motion-svg .handle { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.motion-svg .handle-pt { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.motion-svg .s { stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }

/* work */
.work { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: clamp(20px, 3vw, 32px); }
.work .ep:first-child { grid-row: span 2; }
.ep { display: grid; grid-template-rows: auto 1fr; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--white); text-decoration: none; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.ep:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink); }
.ep-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1.5px solid var(--ink); }
.ep-bar .dots { display: flex; gap: 6px; }
.ep-bar .dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink); }
.ep-bar .rec { width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.ep-body { display: grid; align-content: space-between; gap: 22px; padding: clamp(20px, 3vw, 32px); }
.ep-show { font-family: var(--font); font-size: var(--step--1); color: var(--ink-soft); }
.ep-title { font-family: var(--font); font-weight: 700; letter-spacing: -0.02em; font-size: var(--step-3); line-height: 1.15; text-wrap: balance; }
.ep:not(:first-child) .ep-title { font-size: var(--step-2); }
.ep-did { color: var(--ink-soft); max-width: 46ch; }
.ep-foot { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.play { width: 46px; height: 46px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex: none; transition: transform .25s; }
.play svg { width: 16px; height: 16px; margin-left: 3px; fill: var(--white); }
.ep:hover .play { transform: scale(1.08); }
.timeline { height: 6px; border-radius: 3px; background: var(--wash-blue); position: relative; overflow: hidden; }
.timeline::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 40%); background: var(--red); border-radius: 3px; }
@media (max-width: 860px) { .work { grid-template-columns: 1fr; } .work .ep:first-child { grid-row: auto; } }

/* numbers */
.numbers { border-block: 1.5px solid var(--ink); padding-block: clamp(28px, 4vw, 44px); }
.numbers ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.numbers li { display: grid; gap: 4px; }
.numbers .n { font-family: var(--font); font-weight: 700; letter-spacing: -0.03em; font-size: var(--step-4); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.numbers .k { font-family: var(--font); font-size: var(--step--1); color: var(--ink-soft); }
.numbers .src { margin-top: 22px; font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 760px) { .numbers ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }

/* reviews */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.quote { display: grid; grid-template-rows: auto 1fr auto; gap: 18px; margin: 0; }
.quote .qmark { width: 34px; height: 28px; }
.quote .qmark path { fill: var(--red); }
.quote blockquote { margin: 0; font-weight: 500; letter-spacing: -0.01em; font-size: var(--step-2); line-height: 1.38; }
.quote figcaption { font-size: var(--step--1); color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 14px; }
.quote figcaption strong { display: block; color: var(--ink); font-size: var(--step-0); font-weight: 600; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; max-width: 640px; } }

.also { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); }
.also figure { margin: 0; display: grid; gap: 10px; align-content: start; }
.also blockquote { margin: 0; font-size: var(--step-0); color: var(--ink-soft); }
.also figcaption { font-size: var(--step--1); font-weight: 600; }
.also-note { margin-top: 28px; font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 900px) { .also { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .also { grid-template-columns: 1fr; } }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-text { display: grid; gap: 20px; }
.about-text p { font-size: var(--step-1); max-width: 56ch; }
.facts { margin: 0; display: grid; border-top: 1.5px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font); font-size: var(--step--1); color: var(--ink-soft); padding-top: 2px; }
.facts dd { margin: 0; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* book */
.book { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.book-copy { display: grid; gap: 22px; justify-items: start; }
.email { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--step--1); color: var(--ink-soft); }
.email code { font-family: var(--font); font-weight: 600; font-size: var(--step-0); color: var(--ink); user-select: all; }
.copy { font: 500 var(--step--1)/1 var(--font); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.copy:hover { border-color: var(--ink); }
@media (max-width: 860px) { .book { grid-template-columns: 1fr; } .book-art { max-width: 420px; } }

/* footer */
.footer { border-top: 1.5px solid var(--ink); padding-block: 36px; font-size: var(--step--1); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer .who { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); }
.footer .who img { width: 32px; height: auto; }
.footer ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer a { text-underline-offset: 3px; }

/* mini edit timeline inside the featured episode */
.edit-tl { width: 100%; height: auto; }
.edit-tl text { font-family: var(--font); font-size: 11px; fill: var(--ink-soft); }
.edit-tl .lane { fill: var(--wash-blue); }
.edit-tl .clip { stroke: var(--ink); stroke-width: 1.5; }
.edit-tl .head { stroke: var(--red); stroke-width: 2; }

@media (max-width: 760px) { .doodle:not(.keep) { display: none; } }

/* the line down the page */
.journey { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.journey svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.journey .trail { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0.1 8.5; opacity: .78; }
.journey .tip { fill: var(--red); }
main { position: relative; }

/* drawings: the main drawing plus its doodles as separate layers, so they can move */
.alive { position: relative; aspect-ratio: var(--ar); transform-style: preserve-3d; }
.alive > img { width: 100%; height: auto; }
.alive .dd { position: absolute; height: auto; pointer-events: none; }

/* doodles */
.doodle { position: absolute; pointer-events: none; z-index: 1; overflow: visible; }
.doodle path, .doodle circle, .doodle polyline { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.doodle.ink path, .doodle.ink circle, .doodle.ink polyline { stroke: var(--ink); }
.doodle.cyan path, .doodle.cyan circle, .doodle.cyan polyline { stroke: var(--cyan); }
.doodle.blue path, .doodle.blue circle, .doodle.blue polyline { stroke: var(--blue); }
.doodle.red path, .doodle.red circle, .doodle.red polyline { stroke: var(--red); }

/* motion: only when JS is running and the viewer allows motion */
.motion .draw path, .motion .draw circle, .motion .draw polyline { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s cubic-bezier(.65,0,.35,1); }
.motion .draw.in path, .motion .draw.in circle, .motion .draw.in polyline { stroke-dashoffset: 0; }
.motion .rise.pre { opacity: 0; transform: translateY(28px); }
.motion .rise { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.motion .float { animation: float 6s ease-in-out infinite; }
.motion .float.slow { animation-duration: 9s; animation-delay: -2s; }
@keyframes float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -10px; rotate: 6deg; } }
.motion .hero h1 .underline path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink 1.1s .5s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes ink { to { stroke-dashoffset: 0; } }
.parallax { will-change: transform; }

/* reduce motion: keep fades and drawing-in, drop the big movement */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.calm .rise.pre { transform: none; }
.calm .rise { transition: opacity .9s ease; }
.calm .float { animation: none; }
.calm .ep:hover { transform: none; }

/* legal pages */
.legal { padding-block: clamp(40px, 7vw, 88px); }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: var(--step-4); margin-bottom: 10px; }
.legal h2 { font-size: var(--step-2); margin-top: 40px; margin-bottom: 12px; }
.legal p, .legal li { color: var(--ink); max-width: 68ch; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; }
.legal .updated { font-family: var(--font); font-size: var(--step--1); color: var(--ink-soft); }
.legal a { text-underline-offset: 3px; }
