/* ── tokens ───────────────────────────────────────────────────────────
   Warm near-black ground, warm off-white type. No gradients, no glows.
   The page's only chroma comes from the ticker tiles themselves.        */
:root {
  --bg:        #141414;
  --bg-raise:  #1c1c1c;
  --line:      #2a2a2a;
  --text:      #e8e4de;   /* warm off-white, not pure #fff */
  --muted:     #8f8b85;
  --up:        #57b87d;
  --down:      #d1594f;

  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
code {
  font-family: var(--mono); font-size: .88em;
  background: var(--bg-raise); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 5px;
}

/* ── nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 16px clamp(18px, 4vw, 44px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -0.03em;
}
/* the mark is optically a touch low next to cap-height text */
.brand .logo { margin-top: -1px; flex: none; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 780px) { .nav-links { display: none; } }

.btn {
  font: inherit; font-size: 14.5px; font-weight: 600;
  color: var(--text); background: transparent;
  border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 16px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: #444; background: var(--bg-raise); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.btn-solid { background: var(--text); color: #121212; border-color: var(--text); }
.btn-solid:hover { background: #fff; border-color: #fff; }

/* ── hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(86vh, 820px);
  display: grid; place-items: center;
  padding: clamp(60px, 10vw, 130px) 20px;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; text-align: center; max-width: 760px; }
.eyebrow { font-size: clamp(15px, 1.6vw, 18px); font-weight: 600; color: var(--text); margin-bottom: 14px; }

/* the number stack — the actual hero */
.stack { display: flex; flex-direction: column; gap: 2px; }
.line {
  font-size: clamp(38px, 7.4vw, 82px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums lining-nums;
  text-wrap: balance;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.note { margin-top: 18px; font-size: 13.5px; color: var(--muted); min-height: 20px; }

/* ── scattered ticker tiles ───────────────────────────────────────────
   Three nested layers so the motions compose without fighting over
   `transform`:
     .tile-pos    absolute placement
     .tile-float  horizontal wander
     .tile        vertical wander + slight rotation
   The two wanders run at different periods, so the combined path drifts
   in a slow figure rather than a visible up-down bounce.               */
.scatter { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.tile-pos {
  position: absolute;
  transform: translate(-50%, -50%);
  /* same overshoot curve as the tooltip so the tile and its label feel like
     one movement rather than two */
  transition: transform .26s cubic-bezier(.2, .9, .3, 1.15);
}
.tile-float {
  animation: wanderX var(--dx, 17s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}
.tile {
  width: var(--sz, 78px); height: var(--sz, 78px);
  border-radius: 23%;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700;
  font-size: calc(var(--sz, 78px) * 0.215);
  letter-spacing: -0.02em;
  /* Light tile: the brand marks carry their own colour, and monochrome ones
     (Apple) inherit this as currentColor. Guarantees every logo stays legible
     against the dark ground without knowing each mark's palette. */
  color: #14110e;
  background: #f6f4f1;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
  animation: wanderY var(--dy, 11s) ease-in-out infinite alternate;
  animation-delay: var(--delay2, 0s);
  will-change: transform;
  overflow: hidden;
}
.tile img {
  width: 58%; height: 58%; object-fit: contain; display: block;
}

/* ── tile hover ───────────────────────────────────────────────────────
   The .scatter container stays pointer-events:none so it can't block the
   hero copy or buttons underneath; only the tiles themselves opt back in. */
/* Hit-testing follows the tile's transformed position, so pointer-events goes on
   .tile itself. The .hov class is toggled from JS rather than using :hover on the
   ancestor — hover propagation up through a pointer-events:none parent is an edge
   case not worth depending on. */
.tile { pointer-events: auto; cursor: default; }
/* Scale goes on .tile-pos, not .tile: .tile has a running transform animation,
   which wins over a static transform even while paused. .tile-pos only animates
   opacity, so its transform is free. */
.tile-pos.hov { transform: translate(-50%, -50%) scale(1.06); }
/* freeze the wander while hovered, so the tile doesn't drift out from under
   the cursor and flicker the tooltip */
.tile-pos.hov .tile,
.tile-pos.hov .tile-float { animation-play-state: paused; }

.tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  /* rises and settles from slightly below and slightly small */
  transform: translate(-50%, 6px) scale(.94);
  transform-origin: 50% 100%;
  background: #22232b; border: 1px solid #34353f; border-radius: 9px;
  padding: 7px 11px; white-space: nowrap; text-align: center;
  opacity: 0; visibility: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.55);
  z-index: 5;
  /* Leaving is quick and immediate; arriving overshoots slightly and settles,
     and waits 70ms so brushing past a tile doesn't flash the tooltip. */
  transition:
    opacity .12s ease,
    transform .12s ease,
    visibility 0s linear .12s;
}
.tile-pos.hov .tip {
  opacity: 1; visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition:
    opacity .19s cubic-bezier(.2, .9, .3, 1.15) 70ms,
    transform .26s cubic-bezier(.2, .9, .3, 1.15) 70ms,
    visibility 0s linear 70ms;
}
/* the pointer scales with the bubble rather than sliding out from under it */
.tip::after { transition: inherit; }
.tip .n { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.tip .p {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  font-variant-numeric: tabular-nums; margin-top: 2px;
}
/* pointer */
.tip::after {
  content: ""; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #34353f;
}
@media (prefers-reduced-motion: reduce) {
  .tile-pos, .tip, .tile-pos.hov .tip { transition: opacity .1s linear; }
  .tile-pos.hov { transform: translate(-50%, -50%); }
  .tip { transform: translate(-50%, 0) scale(1); }
}
@media (pointer: coarse) { .tip { display: none; } }
.tile .tile-tkr { display: none; }
/* image failed -> revert to the coloured ticker-text tile */
.tile.noimg { color: var(--tile-fg, #fff); background: var(--tile-bg, #333); }
.tile.noimg img { display: none; }
.tile.noimg .tile-tkr { display: block; }
@keyframes wanderX {
  from { transform: translate3d(calc(var(--ax, 12px) * -1), 0, 0); }
  to   { transform: translate3d(var(--ax, 12px), 0, 0); }
}
@keyframes wanderY {
  from { transform: translate3d(0, calc(var(--ay, 14px) * -1), 0) rotate(calc(var(--rot, 3deg) * -1)); }
  to   { transform: translate3d(0, var(--ay, 14px), 0) rotate(var(--rot, 3deg)); }
}

/* tiles fade in on load, furthest-out first */
.tile-pos { opacity: 0; animation: tileIn .7s ease forwards; animation-delay: var(--in, 0s); }
@keyframes tileIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .tile-float, .tile { animation: none; }
  .tile-pos { opacity: 1; animation: none; transition: none; }
}
/* keep tiles clear of the copy on narrow screens */
@media (max-width: 900px) { .tile { --sz: 54px; } }
@media (max-width: 640px) { .tile-pos[data-opt="1"] { display: none; } }

/* ── sections ────────────────────────────────────────────────────── */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.section-head { margin-bottom: 36px; max-width: 620px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ── holdings table ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
.tbl th {
  text-align: left; font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); padding: 0 14px 12px; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tkr {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 700;
}
.mark {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: #f6f4f1; display: grid; place-items: center; overflow: hidden;
}
.mark img { width: 68%; height: 68%; object-fit: contain; display: block; }
.tag { font-size: 12px; color: var(--muted); }
.tag.live { color: var(--up); }

/* ── distribution rows ───────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 640px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 9px 5px 6px;
  font-size: 12.5px; white-space: nowrap;
}
.chip .mark { width: 18px; height: 18px; border-radius: 5px; }
.chip .t { font-family: var(--mono); font-weight: 700; letter-spacing: -0.02em; }
.chip .a { font-family: var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.more { color: var(--muted); padding-left: 9px; }
.when { white-space: nowrap; }
.when .d { color: var(--muted); }
.txlink {
  color: var(--muted); text-decoration: none; font-size: 17px;
  display: inline-block; transition: color .15s, transform .15s;
}
.txlink:hover { color: var(--text); transform: translateX(2px); }
.empty { padding: 34px 14px; text-align: center; }

/* ── figures ─────────────────────────────────────────────────────── */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.fig { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fig-l { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
@media (max-width: 760px) { .figures { grid-template-columns: repeat(2, 1fr); } }

/* ── scroll reveals ──────────────────────────────────────────────────
   Sections lift in as they enter the viewport. Children stagger off
   --i so a table or a step list arrives in sequence rather than as one
   block. Everything is visible by default and only hidden once JS has
   marked the document — so with JS off, or if the observer never fires,
   the content still reads.                                            */
.js .reveal { opacity: 0; transform: translate3d(0, 18px, 0); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal {
  transition: opacity .62s cubic-bezier(.22, .61, .36, 1),
              transform .62s cubic-bezier(.22, .61, .36, 1);
  transition-delay: calc(var(--i, 0) * 55ms);
}
/* section rules draw themselves in */
.js .section { position: relative; }
.js .section::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: var(--text); opacity: .18;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .9s cubic-bezier(.22, .61, .36, 1);
}
.js .section.in::before { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .section::before { transform: scaleX(1); transition: none; }
}

/* ── footer ──────────────────────────────────────────────────────── */
.footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 32px clamp(18px, 4vw, 44px) 64px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
