@import url("fonts/schibsted.css");

:root {
  --evergreen: #2a5745;
  --mint: #e8f8f0;
  --paper: #f9f8f6;
  --ink: #161616;
  --grey: #595e5b;
  --pale: #707973;
  --pill: var(--mint);
  --frame: var(--paper);
  --sketch-field: #c3e7d5;
  --line: color-mix(in oklch, var(--evergreen) 19%, var(--paper));
}
html, body { margin: 0; background: white; }
.reveal {
  color: var(--ink);
  font-family: "Schibsted Grotesk", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.reveal .slides { text-align: start; }
.reveal .slides > section { padding: 0; inline-size: 1920px; block-size: 1080px; }

.page {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 40px;
  box-sizing: border-box;
  padding-block: 96px;
  padding-inline: 140px;
  font-size: 38px;
}
.page :is(h1, h2, p, figure, ul, ol, dl, dd) { margin: 0; }
.page :is(ul, ol) { padding: 0; list-style: none; }
.page :is(h1, h2) { font-weight: 700; letter-spacing: -0.038em; line-height: 1; }
.page img { display: block; object-fit: contain; }
.pill {
  justify-self: start;
  align-self: start;
  display: inline-block;
  padding-block: 14px 15px;
  padding-inline: 28px;
  border-radius: 999px;
  color: var(--evergreen);
  background: var(--pill);
  font-size: 36px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 0;
  min-block-size: 0;
  border-radius: 48px;
  background: var(--frame);
  box-shadow: 0 0 0 2px var(--line);
  overflow: clip;
}
.frame > :is(img, video) { inline-size: 100%; block-size: 100%; object-fit: contain; }
.frame > .sketch { inline-size: 88%; block-size: 88%; }
.frame:has(> .sketch) { background: var(--sketch-field); box-shadow: none; }
.frame:has(> .phone) { background: var(--mint); }
.frame .on-white { mix-blend-mode: multiply; }
.soft { color: var(--pale); }

.title .page {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  padding-block: 110px;
}
.title .mark { block-size: 96px; }
.title h1 { max-inline-size: 1560px; align-self: center; font-size: 158px; text-wrap: pretty; }
.title .who { font-size: 52px; font-weight: 500; letter-spacing: -0.02em; }
.title .where { margin-block-start: 14px; color: var(--grey); font-size: 40px; letter-spacing: -0.01em; }

:is(.split, .list) .page {
  grid-template-columns: minmax(0, 1fr) 660px;
  grid-template-rows: 1fr;
  column-gap: 100px;
  padding-block: 110px;
}
.copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 44px; min-inline-size: 0; }
.split h2 { font-size: 150px; }
.points { inline-size: calc(100% + 24px); display: grid; gap: 34px; font-size: 78px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.points.medium { font-size: 68px; }
.points.compact { font-size: 60px; }
.split .brand { inline-size: 560px; max-block-size: 650px; }
.split .edsc { inline-size: 620px; }

.phone {
  block-size: 780px;
  aspect-ratio: 1170 / 2532;
  padding: 14px;
  background: #0e0e0e;
  border-radius: 72px;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 35%);
}
.phone .screen { inline-size: 100%; block-size: 100%; overflow: clip; background: white; border-radius: 58px; }
.screen > :is(img, video) { display: block; inline-size: 100%; block-size: 100%; object-fit: contain; }

.list .page { grid-template-columns: 1fr 540px; }
.list ol { display: grid; align-self: center; gap: 30px; }
.list li { display: grid; gap: 4px; }
.date { color: var(--pale); font-weight: 500; letter-spacing: -0.01em; }
.event { color: var(--grey); font-size: 56px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.turn { margin-block: 8px; }
.turn .date, .turn .event { color: var(--ink); }
.turn .event { font-size: 96px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.list .frame { flex-direction: column; justify-content: space-around; padding-block: 40px; }
.list .brand { inline-size: 440px; block-size: auto; }
.list .brand.ets { inline-size: 270px; }

.duo .page { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; }
.duo .pill { grid-column: 1 / -1; }
.duo .page:has(> figure:first-child) { grid-template-rows: auto; align-content: center; }
.duo .frame { block-size: 640px; }
.duo figcaption {
  margin-block-start: 34px;
  margin-inline-start: 8px;
  font-size: 104px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.frame .words {
  box-sizing: border-box;
  inline-size: 100%;
  padding-inline: 48px;
  display: grid;
  gap: 28px;
  font-size: 58px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.placeholder {
  box-sizing: border-box;
  max-inline-size: 100%;
  padding-inline: 60px;
  color: var(--grey);
  font-size: 38px;
  line-height: 1.3;
  letter-spacing: -0.012em;
  text-align: center;
  text-wrap: balance;
}

.word .page { align-content: center; grid-template-rows: none; gap: 44px; }
.word h2, .word .fragment { font-size: 150px; line-height: 1; font-weight: 700; letter-spacing: -0.038em; text-wrap: balance; }
.full .frame { align-self: stretch; }
/* Two rows of figures leave the phone at projection scale. */
.stats .page {
  grid-template-columns: minmax(0, 1fr) 570px;
  column-gap: 94px;
}
.stats dl {
  grid-column: 1;
  align-self: center;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 84px 92px;
}
.stats dt { font-size: 116px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.stats dd { margin-block-start: 16px; color: var(--grey); font-size: 42px; letter-spacing: -0.015em; }
.stats .frame { grid-column: 2; grid-row: 1 / 3; }
.stats .phone { block-size: 792px; }

.steps ol { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; align-self: center; gap: 42px; }
.steps .frame { block-size: 300px; border-radius: 38px; }
.steps figcaption { margin-block-start: 38px; font-size: 58px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.table table { align-self: center; inline-size: 100%; border-collapse: collapse; table-layout: fixed; }
.table :is(td, th) { padding-block: 19px; padding-inline: 0; text-align: start; font-size: 56px; letter-spacing: -0.025em; line-height: 1.15; }
.table thead th { padding-block-end: 32px; color: var(--grey); font-size: 40px; font-weight: 500; }
.table tbody tr { border-block-start: 2px solid var(--line); }
.table tbody th { font-weight: 700; }
.table td { font-weight: 500; }

.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 126px 0; align-self: center; justify-items: center; }
.logo-grid img { inline-size: 144px; block-size: 144px; }
.network { position: relative; inline-size: 1280px; block-size: 720px; place-self: center; }
.network svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; stroke: var(--pale); stroke-width: 2; fill: none; }
.network img {
  position: absolute;
  inset-inline-start: var(--x);
  inset-block-start: var(--y);
  transform: translate(-50%, -50%);
  inline-size: 126px;
  block-size: 126px;
}
.network .hub { inline-size: 184px; block-size: 184px; }

/* EDSC: the signature is bilingual and very wide; show its French half so it reads from the back. */
.edsc-fr { inline-size: 560px; overflow: hidden; }
.edsc-fr img { display: block; inline-size: 956px; max-inline-size: none; }

.title h1, .turn :is(.date, .event), .stats dt, #s-2-1b h2 { color: var(--evergreen); }
.list .turn .event { font-size: 118px; }
.table thead th { color: var(--evergreen); }
:is(.split, .stats, .full) .pill { background: var(--evergreen); color: white; }
.word .page { background: var(--evergreen); color: white; }
.word .pill { background: var(--paper); }
.word .fragment { font-size: 180px; }
.duo figure:has(.words):not(:has(.soft)) .frame { background: var(--mint); }

#s-0-2 .page { grid-template-columns: minmax(0, 1fr) 828px; column-gap: 56px; }
#s-0-2 h2 { font-size: 138px; }
.phones { gap: 24px; }
.phones .phone {
  block-size: 710px;
  padding: 11px;
  border-radius: 59px;
}
.phones .screen { border-radius: 48px; }
.phones .phone:first-child { margin-block-end: 80px; }
.phones .phone:last-child { margin-block-start: 80px; }

/* The shorter viewport on the front phone leaves room to scroll the capture. */
.phones .phone:last-child { aspect-ratio: 0.545; }
#s-5-2 .page { grid-template-columns: minmax(0, 1fr) 780px; padding-block: 64px; }
#s-5-2 .phone { block-size: 852px; aspect-ratio: 0.60; }
.screen > .browse { object-fit: cover; object-position: center bottom; }
#s-2-1 .page { grid-template-columns: minmax(0, 1fr) 780px; }
#s-2-1 .points { font-size: 108px; }
#s-2-1b .page { grid-template-columns: minmax(0, 1fr) 720px; padding-block: 82px; }
#s-2-1b h2, .stats dt { font-variant-numeric: tabular-nums; }

.dashboard .page { padding: 68px 42px; }
.dashboard .pill { margin-inline-start: 98px; }
.dashboard .frame {
  box-sizing: border-box;
  inline-size: 100%;
  align-self: center;
  padding: 14px;
  border-radius: 28px;
  background: #111217;
  box-shadow: none;
}
.dashboard .frame > img { block-size: auto; }

.reveal .slides section .fragment { transition: opacity 200ms ease-out; }
@media (prefers-reduced-motion: no-preference) {
  .present[data-auto-animate="pending"] [data-id="media-frame"] > :not(.sketch) { opacity: 0; }
  .present[data-auto-animate="running"] [data-id="media-frame"] > :not(.sketch) {
    animation: reveal-media 180ms ease-out 650ms backwards;
  }
  @keyframes reveal-media { from { opacity: 0; } to { opacity: 1; } }
  .present .browse { animation: browse 22s ease-in-out infinite; }
  @keyframes browse {
    0%, 8%, 100% { object-position: center 0%; }
    48%, 60% { object-position: center 100%; }
  }
  .present .network line {
    stroke-dasharray: 1 1;
    animation: draw-stroke 980ms ease-out backwards;
  }
  .drawing .ink-stroke {
    stroke-dasharray: 1 1;
    animation: draw-stroke var(--duration) linear var(--delay) backwards;
  }
  @keyframes draw-stroke {
    0% { stroke-dashoffset: 1; opacity: 0; }
    1% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal .slides section .fragment { transition: none; }
}

/* One-line slides: the single line is the headline, the same size everywhere. */
.split .points:has(> li:only-child),
.split .points.medium:has(> li:only-child),
.split .points.compact:has(> li:only-child) { font-size: 108px; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
