/* The fund's headline that changes colour on the video, on scroll. Colours in :root (the Playground palette): the
   cream page and the warm ink outside the panel, the light cream of the copy over the panel, the ember accent.
   The script moves .panel (left, top, width, height in pixels) and cuts the light copy with a clip-path on the same
   rectangle; the CSS styles .panel__in inside it. */
:root {
  --page: #f3f1ec;          /* the cream page */
  --ink: #15130f;           /* the dark copy */
  --soft: #6f6a62;          /* the small dark words */
  --light: #faf6ee;         /* the light copy over the panel */
  --ember: #ff5a1f;         /* the accent */
  --hair: rgba(21, 19, 15, 0.07); /* the hairline columns of the page */
  --cell: #0c0908;          /* the dark of the test cell */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--page); }
html, body { overflow-x: clip; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Inter Tight Variable', 'Inter Tight', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.hero { position: relative; height: 360vh; }
.stage {
  --g: clamp(16px, 3.2vw, 44px);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}
@supports (height: 100lvh) {
  .stage { height: 100lvh; }
}

/* the page: cream with twelve hairline columns and a veil of grain */
.page { position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 90% at 50% 40%, #f7f5f0, var(--page) 70%); }
.page__cols {
  position: absolute;
  inset: 0 var(--g);
  background: repeating-linear-gradient(90deg, var(--hair) 0 1px, transparent 1px calc((100% - 1px) / 12));
  -webkit-mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.page__grain, .panel__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page__grain { opacity: 0.22; mix-blend-mode: multiply; }

/* the warm light the panel throws on the page once it is small */
.spill {
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 110, 40, 0.34), rgba(255, 110, 40, 0.1) 55%, transparent);
  filter: blur(30px);
  opacity: 0;
  pointer-events: none;
}

/* the panel: the live heat field of the test cell */
.panel {
  --r: 16px;
  --lift: 0;
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  height: 100px;
  border-radius: var(--r);
  box-shadow:
    0 1px 1px rgba(30, 14, 4, calc(0.12 * var(--lift))),
    0 10px 24px -8px rgba(60, 20, 4, calc(0.32 * var(--lift))),
    0 40px 80px -30px rgba(90, 30, 6, calc(0.45 * var(--lift)));
}
.panel__in {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: var(--cell);
}
.panel__heat { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; }
.panel__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 240, 220, 0.035) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}
.panel__grain { opacity: 0.3; mix-blend-mode: overlay; }
/* the 1px rim that catches the light at the top */
.panel__rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 236, 214, 0.55), rgba(255, 236, 214, 0.08) 38%, rgba(255, 140, 70, 0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* the instrument marks over the heat field */
.hud {
  position: absolute;
  inset: 0;
  color: rgba(250, 246, 238, 0.72);
  font-family: 'Geist Mono Variable', 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hud__corner { position: absolute; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.6; }
.hud__corner--tl { left: 22%; top: 24%; }
.hud__corner--tr { right: 22%; top: 24%; }
.hud__corner--bl { left: 22%; bottom: 20%; }
.hud__corner--br { right: 22%; bottom: 20%; }
.hud__tag { position: absolute; left: 22%; bottom: calc(20% - 22px); }
.scale {
  position: absolute;
  right: calc(var(--g, 24px) + 2px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  justify-items: end;
  gap: 8px;
}
.scale__bar {
  width: 3px;
  height: clamp(60px, 22vh, 180px);
  border-radius: 2px;
  background: linear-gradient(180deg, #ffe7c4, #ffab55 22%, #f0601e 48%, #8a2410 74%, #1d0a06);
  box-shadow: 0 0 0 1px rgba(255, 236, 214, 0.12);
}
.probe { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; will-change: transform; }
.probe__cross { width: 22px; height: 22px; margin: -11px 0 0 -11px; fill: none; stroke: #fff3e2; stroke-width: 1; }
.probe__read {
  margin-top: -11px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(12, 9, 8, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 214, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff3e2;
  font-variant-numeric: tabular-nums;
}
.probe__read b { font-weight: 500; }

/* the copy, twice: dark on the page, light over the panel */
.layer {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--g);
  color: var(--ink);
}
.layer--light {
  color: var(--light);
  pointer-events: none;
  clip-path: inset(50%);
}
.layer--light .line--end em { color: var(--light); }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: clamp(52px, 9vh, 76px);
  font-size: 14px;
  font-weight: 450;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 620; letter-spacing: -0.01em; font-size: 15px; }
.brand__mark { width: 22px; height: 22px; }
.brand__mark rect { fill: none; stroke: currentColor; stroke-width: 1.2; }
.brand__mark path { fill: currentColor; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { transition: opacity 0.3s, font-weight 0.3s; }
.nav__links a.is-dim { opacity: 0.45; }
.nav__cta {
  display: inline-grid;
  place-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px currentColor;
  transition: background-color 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.35s;
}
.nav__cta span { display: block; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.nav__cta.is-hover { background: var(--ember); color: #1b0b03; box-shadow: none; }
.nav__cta.is-hover span { transform: translateY(-1px); }
.nav__links a.is-hover { font-weight: 600; }

.title {
  align-self: center;
  margin-top: -2vh;
  font-weight: 520;
  font-size: min((100vw - 2 * var(--g)) * 0.098, 16vh);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.line { display: block; white-space: nowrap; will-change: transform; }
.line--end { text-align: right; }
.line--end em { font-style: normal; color: var(--ember); }
.w { display: inline-block; }

.foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: clamp(14px, 3.4vh, 32px);
  font-size: 13px;
  line-height: 1.3;
}
.foot__hint { display: inline-flex; align-items: center; gap: 8px; }
.foot__arrow { width: 10px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.foot__meta { color: var(--soft); text-align: right; }
.foot__meta b { color: var(--ink); font-weight: 600; }
.layer--light .foot__meta, .layer--light .foot__meta b { color: var(--light); }

@media (hover: hover) {
  .nav__links a, .nav__cta, .brand { cursor: pointer; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; height: 30px; padding: 0 13px; font-size: 13px; }
  .foot { font-size: 12px; }
  .hud { font-size: 9px; }
  .hud__tag { display: none; }
  .scale { display: none; }
}
@media (max-width: 420px) {
  .foot__meta { max-width: 13ch; }
}
