:root {
  --ink: #F6F3EC;
  --dim: rgba(246, 243, 236, .58);
  --faint: rgba(246, 243, 236, .16);
  --up: #7FE3B0;
  --down: #FF8A7A;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --sans: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(18px, 3.2vw, 48px);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #000; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: #000; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
#scroll { height: 1150vh; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }

/* Loader: the fridge cooling down */
#loader { display: grid; place-items: center; transition: opacity .7s ease, visibility .7s; }
#loader.done { opacity: 0; visibility: hidden; }
.cool { text-align: center; }
.cool-k { font-size: 13px; letter-spacing: .02em; color: var(--dim); font-variant-numeric: tabular-nums; }
.cool-c { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(72px, 15vw, 240px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 18px 0 22px; font-optical-sizing: auto; }
.cool-note { font-size: 14px; color: var(--dim); }

/* After the film: live content rises over the dimmed refrigerator */
#gl { transition: opacity 1s ease; }
body.after #gl { opacity: .28; }
[data-page="home"] .top { transition: background .3s, border-color .3s, padding .3s; border-bottom: 1px solid transparent; background-origin: border-box; }
body.after[data-page="home"] .top { background: rgba(0, 0, 0, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--faint); padding-bottom: 22px; }
body.after .ui, body.after .thermo, body.after .readout { opacity: 0 !important; visibility: hidden; transition: opacity .5s, visibility .5s; }
.after { position: relative; z-index: 12; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.86) 26vh, #000 70vh); padding-top: 34vh; }
.after h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 66px); line-height: 1; letter-spacing: -.02em; }
.after-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.leaders-wrap, .after-grid, .steps, .last-cta { padding: 0 var(--pad); }
.leaders { list-style: none; border-top: 1px solid rgba(246, 243, 236, .3); }
.leaders li a { display: grid; grid-template-columns: 90px minmax(0, 1.4fr) 120px minmax(120px, 1fr); align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--faint); text-decoration: none; transition: background .2s; }
.leaders li a:hover { background: rgba(246, 243, 236, .035); }
.leaders .rk { font-family: var(--serif); font-style: italic; font-size: clamp(44px, 4.4vw, 72px); line-height: .9; color: var(--dim); }
.leaders li:first-child .rk { color: var(--ink); }
.leaders .who b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 42px); line-height: 1.05; letter-spacing: -.01em; }
.leaders .who small { color: var(--dim); font-size: 13px; }
.leaders .rt { font-size: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.leaders svg { width: 100%; height: 44px; display: block; }
.after-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 110px); margin-top: 120px; }
.after-grid h2 { font-size: clamp(30px, 3vw, 46px); }
.fresh { list-style: none; border-top: 1px solid rgba(246, 243, 236, .3); }
.fresh li a { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--faint); text-decoration: none; }
.fresh b { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.fresh span { color: var(--dim); font-size: 13px; white-space: nowrap; }
.qmap.small svg { width: 100%; height: auto; display: block; }
.qmap .edge { stroke: rgba(246, 243, 236, .16); stroke-width: 1; }
.qmap .seat { fill: transparent; stroke: rgba(246, 243, 236, 0); stroke-width: 1; cursor: pointer; transition: stroke .2s; }
.qmap .seat.owned { stroke: rgba(246, 243, 236, .35); }
.qmap .seat:hover { stroke: var(--ink); }
.qmap .lab { fill: var(--dim); font: 10px var(--sans); pointer-events: none; }
.round-line { color: var(--dim); font-size: 14px; margin-top: 14px; }
.steps { margin-top: 160px; }
.steps ol { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 34px; counter-reset: s; border-top: 1px solid rgba(246, 243, 236, .3); }
.steps li { counter-increment: s; padding: 22px 24px 0 0; }
.steps li::before { content: counter(s); display: block; font-family: var(--serif); font-style: italic; font-size: 54px; line-height: 1; color: var(--dim); margin-bottom: 18px; }
.steps b { display: block; font-weight: 600; margin-bottom: 8px; }
.steps p { color: var(--dim); font-size: 15px; }
.last-cta { margin-top: 180px; padding-bottom: 160px; text-align: center; }
.giant { display: inline-block; font-family: var(--serif); font-style: italic; font-size: clamp(56px, 11vw, 190px); line-height: .95; letter-spacing: -.035em; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0% 2px no-repeat; transition: background-size .6s cubic-bezier(.2, .8, .2, 1); padding-bottom: 6px; }
.giant:hover { background-size: 100% 2px; }
.last-cta p { color: var(--dim); margin-top: 22px; }
@media (max-width: 900px) {
  .steps ol { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; gap: 0 12px; padding: 18px 0; border-bottom: 1px solid var(--faint); }
  .steps li::before { grid-row: 1 / span 2; font-size: 40px; margin: 0; }
  .after-grid { grid-template-columns: 1fr; }
  .leaders li a { grid-template-columns: 54px minmax(0, 1fr) 84px; }
  .leaders svg { display: none; }
}

/* Top bar */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--pad) 40px; background: linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,0)); }
.logo { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 30px; letter-spacing: -.02em; text-decoration: none; line-height: 1; }
.menu { display: flex; gap: clamp(16px, 2.4vw, 34px); font-size: 14px; }
.menu button { padding: 4px 0; position: relative; }
.menu button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.menu button:hover::after, .menu button[aria-pressed="true"]::after { transform: scaleX(1); }

/* Thermometer: where you are between room temperature and the chip */
.thermo { position: fixed; right: var(--pad); top: 18vh; bottom: 22vh; width: 72px; z-index: 10; pointer-events: none; transition: opacity .6s; }
.thermo-line { position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: var(--faint); }
#ticks { list-style: none; position: absolute; inset: 0; }
#ticks li { position: absolute; right: 10px; transform: translateY(-50%); font-size: 11px; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
#ticks li::after { content: ""; position: absolute; right: -10px; top: 50%; width: 6px; height: 1px; background: var(--dim); }
.thermo-mark { position: absolute; right: 0; height: 0; }
.thermo-mark i { position: absolute; right: -5px; top: -5px; width: 9px; height: 9px; border: 1px solid var(--ink); background: #000; transform: rotate(45deg); }
.thermo-mark span { position: absolute; right: 64px; top: -9px; font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
body.on-chip .thermo, body.at-end .thermo { opacity: 0; }

/* Captions sit bottom-left over the film */
.ui { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
/* a soft shadow in the bottom-left corner so captions read over the gold */
.ui::before { content: ""; position: fixed; left: 0; bottom: 0; width: min(900px, 90vw); height: 75vh; background: radial-gradient(ellipse 70% 70% at 0% 100%, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 75%); pointer-events: none; }
.cap { position: absolute; left: var(--pad); bottom: clamp(28px, 7vh, 80px); width: min(560px, calc(100vw - var(--pad) * 2 - 90px)); opacity: 0; visibility: hidden; }
.cap.on { visibility: visible; pointer-events: auto; }
.cap h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.6vw, 96px); line-height: .94; letter-spacing: -.025em; max-width: 9em; font-optical-sizing: auto; }
.cap h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 60px); line-height: .98; letter-spacing: -.02em; margin-bottom: 18px; font-optical-sizing: auto; }
.cap h2.big { font-size: clamp(64px, 9vw, 150px); font-style: italic; letter-spacing: -.035em; }
.cap p { color: var(--dim); max-width: 31em; }
.cap .k { color: var(--ink); font-size: 13px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.lede { margin-top: 26px; font-size: 17px; color: rgba(246, 243, 236, .74) !important; }
.ctas { display: flex; align-items: baseline; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.link-cta { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2vw, 32px); line-height: 1.1; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .45s cubic-bezier(.2, .8, .2, 1); text-decoration: none; }
.link-cta:hover { background-size: 0% 1px; background-position: 100% 100%; }
.link-quiet { font-size: 14px; color: var(--dim); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid var(--faint); transition: color .2s, border-color .2s; }
.link-quiet:hover { color: var(--ink); border-color: var(--ink); }
.fine { font-size: 13px !important; margin-top: 22px; }
.seats { margin-top: 16px; font-size: 13px; }
.hint { color: var(--ink) !important; }

/* Live readout, bottom right */
.readout { position: fixed; right: var(--pad); bottom: clamp(28px, 7vh, 80px); z-index: 10; display: grid; gap: 0; min-width: 210px; font-size: 13px; transition: opacity .6s; }
.readout div { display: flex; justify-content: space-between; gap: 28px; padding: 7px 0; border-top: 1px solid var(--faint); }
.readout dt { color: var(--dim); }
.readout dd { font-variant-numeric: tabular-nums; }
body.on-chip .readout, body.at-end .readout { opacity: 0; pointer-events: none; }

/* Hover card on the chip */
.qcard { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; opacity: 0; transition: opacity .2s; min-width: 220px; padding: 14px 16px 12px; background: rgba(0, 0, 0, .72); border-left: 1px solid var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.qcard.on { opacity: 1; }
.qcard b { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.1; }
.qcard small { color: var(--dim); font-size: 12px; }
.qcard .row { display: flex; justify-content: space-between; gap: 18px; margin-top: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }

/* Sheets slide in from the right */
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); z-index: 40; background: rgba(0, 0, 0, .9); border-left: 1px solid var(--faint); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 76px 34px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.sheet[hidden] { display: block; visibility: hidden; }
.sheet.open { transform: none; visibility: visible; }
.sheet h2 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -.02em; margin-bottom: 28px; }
.sheet h3 { font-size: 12px; font-weight: 500; color: var(--dim); margin: 26px 0 10px; }
.close { position: absolute; top: 26px; right: 34px; font-size: 14px; color: var(--dim); }
.close:hover { color: var(--ink); }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 4px; font-size: 12px; color: var(--dim); }
.field input { background: transparent; border: 0; border-bottom: 1px solid var(--faint); color: var(--ink); font: inherit; font-family: var(--serif); font-size: 26px; padding: 4px 0 8px; outline: none; }
.field input:focus { border-bottom-color: var(--ink); }
.field.file input { font-family: var(--sans); font-size: 14px; }
.dials { display: grid; gap: 18px; margin-top: 6px; }
.dial label { display: flex; justify-content: space-between; font-size: 14px; }
.dial output { color: var(--dim); font-variant-numeric: tabular-nums; }
.dial .ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: var(--faint); }
input[type="range"]::-moz-range-track { height: 1px; background: var(--faint); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; margin-top: -5px; background: var(--ink); transform: rotate(45deg); border: 0; }
input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; background: var(--ink); transform: rotate(45deg); border: 0; border-radius: 0; }
.circuit { width: 100%; height: auto; margin-top: 6px; }
.circuit .w { stroke: rgba(246, 243, 236, .3); stroke-width: 1; }
.circuit .wl { fill: rgba(246, 243, 236, .6); font: 11px var(--sans); }
.circuit .g rect { fill: #000; stroke: var(--ink); stroke-width: 1; }
.circuit .g text { fill: var(--ink); font: 10px var(--sans); text-anchor: middle; font-variant-numeric: tabular-nums; }
.circuit .cz { stroke: var(--ink); }
.circuit .dot { fill: var(--ink); }
.verdict { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.verdict em { font-style: italic; }
.solid { width: 100%; height: 56px; background: var(--ink); color: #000; font-size: 15px; font-weight: 600; letter-spacing: .01em; transition: background .2s; }
.solid:hover { background: #fff; }
.board { width: 100%; border-collapse: collapse; font-size: 14px; }
.board th { font-weight: 500; font-size: 12px; color: var(--dim); text-align: left; padding: 0 0 8px; border-bottom: 1px solid var(--faint); }
.board td { padding: 11px 0; border-bottom: 1px solid var(--faint); font-variant-numeric: tabular-nums; }
.board td:first-child { color: var(--dim); width: 30px; }
.board tr { cursor: pointer; }
.board tr:hover td { color: #fff; }
.board b { font-family: var(--serif); font-weight: 500; font-size: 17px; }
.stat { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; }
.stat span:first-child { color: var(--dim); }
.hist { display: grid; grid-template-columns: repeat(16, 1fr); align-items: end; gap: 2px; height: 80px; border-bottom: 1px solid var(--faint); }
.hist i { background: rgba(246, 243, 236, .35); }
.hist i.peak { background: var(--ink); }
.spark { width: 100%; height: 70px; display: block; margin-top: 8px; }

#toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 16px); z-index: 60; font-family: var(--serif); font-style: italic; font-size: 22px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; text-shadow: 0 0 24px #000; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 820px) {
  .thermo { display: none; }
  .readout { display: none; }
  .ui::before { width: 100vw; height: 70vh; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.8) 38%, rgba(0,0,0,0) 100%); }
  .cap { width: calc(100vw - var(--pad) * 2); }
  .lede { font-size: 15px; }
  .cap p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* on the chip the caption gets a solid shadow of its own: the die behind it is bright */
.chipcap::before { content: ""; position: absolute; inset: -40px -60px -40px -60px; background: radial-gradient(ellipse at 30% 60%, rgba(0,0,0,.78), rgba(0,0,0,0) 70%); z-index: -1; }

/* the sound button: a speaker in the bottom left, apart from the text links (waves while it plays, a cross when off) */
.snd { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .55); border: 1px solid rgba(246, 243, 236, .24); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.snd:hover { border-color: var(--ink); background: rgba(0, 0, 0, .8); }
.snd:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.snd[aria-pressed="true"] .snd-off, .snd[aria-pressed="false"] .snd-on { display: none; }
.snd[aria-pressed="false"] { color: var(--dim); }
