:root {
  --night: #05070a;
  --ice: #eef3f5;
  --mist: #7d8891;
  --line: rgba(238,243,245,.12);
  --amber: #ffb21e;
  --flow: #7fd4ff;
  --pad: clamp(20px, 4vw, 56px);
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2,.7,.1,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ice); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--amber); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.k { margin: 0 0 28px; color: var(--mist); }

.bar { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 20px var(--pad); mix-blend-mode: difference; }
.bar__b { letter-spacing: .3em; }
.bar__m { position: absolute; left: 50%; transform: translateX(-50%); color: var(--mist); }
.bar__c { border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* 0. ridge */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
#ridge { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__txt { position: absolute; left: var(--pad); right: var(--pad); top: 22svh; }
.hero__t { margin: 0; font-weight: 200; font-size: clamp(40px, 9.6vw, 176px); letter-spacing: .06em; line-height: .95; }
.hero__s { margin: 26px 0 0; font-weight: 300; font-size: clamp(20px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -.01em; }
.hero__hint { position: absolute; right: var(--pad); bottom: 28px; margin: 0; text-align: right; line-height: 1.8; color: var(--ice); opacity: .75; transition: opacity .6s; }

/* 1. the law */
.law { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 110px); align-items: center; min-height: 100svh; padding: 16svh var(--pad); }
.law__t { margin: 0; font-weight: 200; font-size: clamp(34px, 4.4vw, 72px); line-height: 1.02; letter-spacing: -.035em; }
.law__p { margin: 30px 0 0; max-width: 46ch; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.65; font-weight: 300; color: #b9c2c8; }
.switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.switch button { appearance: none; border: 0; background: none; color: var(--mist); font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: background .4s, color .4s; }
.switch button[aria-selected="true"] { background: var(--ice); color: var(--night); }
.switch button[data-w="break"][aria-selected="true"] { background: var(--amber); }
.scale { position: relative; height: 250px; margin: 40px 0 0; }
.scale__axis { position: absolute; left: 0; right: 0; bottom: 70px; height: 1px; background: var(--line); }
.tick { position: absolute; bottom: 70px; transform: translateX(-50%); transition: left 1.2s var(--ease); }
.tick i { display: block; width: 1px; height: 70px; background: var(--mist); margin: 0 auto; }
.tick span { position: absolute; bottom: 78px; left: 50%; transform: translateX(-50%); white-space: nowrap; text-align: center; color: var(--mist); line-height: 1.6; }
.tick b { color: var(--ice); font-weight: 500; }
.tick--sa { left: 1.33%; }
.tick--sa span { left: 0; transform: none; text-align: left; bottom: auto; top: 84px; }
.tick--sa i { height: 80px; transform: translateY(0); }
.tick--no { left: 20%; }
.tick--no i { background: var(--ice); }
.tick--mk { left: 13.3%; }
.tick--mk i { height: 130px; width: 2px; background: var(--ice); transition: background .6s; }
.tick--mk span { bottom: 138px; }
.tick--mk b { font-size: 15px; }
.gap { position: absolute; bottom: 70px; height: 54px; left: 13.3%; width: 6.7%; background: rgba(238,243,245,.08); border-top: 1px dashed var(--mist); transition: left 1.2s var(--ease), width 1.2s var(--ease), background .6s; }
.law.is-break .tick--mk i { background: var(--amber); }
.law.is-break .gap { background: color-mix(in srgb, var(--amber) 22%, transparent); border-top-color: var(--amber); }
.law__out { margin: 18px 0 0; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
#outV { font-weight: 200; font-size: clamp(54px, 7vw, 110px); letter-spacing: -.05em; line-height: 1; transition: color .6s; }
.law.is-break #outV { color: var(--amber); }
#outL { color: var(--mist); max-width: 26ch; line-height: 1.6; }
.law__f { margin: 26px 0 0; color: #4c565e; text-transform: none; letter-spacing: .02em; }

/* 2. the proof */
.proof { position: relative; height: 900svh; }
.proof__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.proof__head { position: absolute; z-index: 2; top: 72px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.proof__head .k { margin: 0; }
.tog { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.tog button { appearance: none; border: 0; background: none; color: var(--mist); font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.tog button[aria-pressed="true"] { background: var(--ice); color: var(--night); }
#chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.now { position: absolute; left: var(--pad); top: 130px; pointer-events: none; }
.now__y { margin: 0; font-weight: 200; font-size: clamp(64px, 10vw, 170px); letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.now__p { margin: 12px 0 0; color: var(--mist); }
.now__p span:first-child { color: var(--ice); font-size: 14px; }
.ev { position: absolute; right: var(--pad); top: 140px; width: min(420px, 38vw); text-align: right; pointer-events: none; }
.ev__k { margin: 0 0 12px; color: var(--amber); transition: color .4s; }
.ev.is-flow .ev__k { color: var(--flow); }
.ev.is-neutral .ev__k { color: var(--ice); }
.ev__t { margin: 0; font-weight: 300; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.12; letter-spacing: -.02em; }
.ev__n { margin: 12px 0 0; color: var(--mist); }
.ev.flip .ev__k, .ev.flip .ev__t, .ev.flip .ev__n { animation: in .7s var(--ease); }
@keyframes in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.legend { position: absolute; left: var(--pad); bottom: 22px; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; color: var(--mist); }
.lg::before { content: ""; display: inline-block; width: 14px; height: 2px; margin-right: 8px; vertical-align: middle; }
.lg--b::before { background: var(--amber); }
.lg--f::before { background: var(--flow); }
.lg--n::before { height: 8px; background: rgba(238,243,245,.25); }

/* 3. paradox */
.para { padding: 22svh var(--pad) 16svh; max-width: 1400px; }
.para__t { margin: 0; font-weight: 200; font-size: clamp(36px, 5.2vw, 88px); line-height: 1.02; letter-spacing: -.04em; max-width: 18ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: 10svh; }
.st { border-top: 1px solid var(--line); padding-top: 20px; }
.st__v { margin: 0 0 12px; font-weight: 200; font-size: clamp(54px, 6.4vw, 108px); letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.st:nth-child(2) .st__v { color: var(--amber); }
.st .mono { color: var(--mist); line-height: 1.6; max-width: 30ch; }
.para__p { margin: 8svh 0 0; max-width: 58ch; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.6; font-weight: 300; color: #b9c2c8; }

/* 4. greenland */
.gl { padding: 16svh var(--pad); }
.gl__t { margin: 0; font-weight: 200; font-size: clamp(36px, 5.2vw, 88px); line-height: 1.02; letter-spacing: -.04em; }
.crust { margin-top: 9svh; display: grid; gap: 22px; }
.cr { display: grid; grid-template-columns: 160px 1fr; align-items: center; column-gap: 20px; row-gap: 6px; }
.cr span { color: var(--mist); }
.cr i { display: block; height: 10px; background: var(--ice); width: 0; transition: width 2.4s var(--ease); }
.crust.in .cr i { width: max(3px, calc(var(--w) * 100%)); }
.cr b { grid-column: 2; font-weight: 300; font-size: 14px; color: var(--mist); font-variant-numeric: tabular-nums; }
.cr:first-child b { color: var(--ice); }
.crust__f { margin: 8px 0 0; color: #4c565e; text-transform: none; letter-spacing: .02em; }
.gl__p { margin: 8svh 0 0; max-width: 60ch; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.6; font-weight: 300; color: #b9c2c8; }
.gl__p b { color: var(--ice); font-weight: 400; }

/* 5. nordic paradox */
.np { padding: 16svh var(--pad); border-top: 1px solid var(--line); margin: 0 var(--pad); padding-left: 0; padding-right: 0; }
.np__t { margin: 0; font-weight: 200; font-size: clamp(36px, 5.2vw, 88px); line-height: 1.02; letter-spacing: -.04em; max-width: 20ch; }
.np__l { list-style: none; margin: 9svh 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.np__l li { border-top: 1px solid var(--line); padding-top: 20px; font-size: clamp(18px, 1.6vw, 24px); font-weight: 300; line-height: 1.35; color: #b9c2c8; }
.np__l li span { display: block; font-weight: 200; font-size: clamp(40px, 4.4vw, 72px); letter-spacing: -.04em; color: var(--ice); margin-bottom: 8px; }
.np__p { margin: 8svh 0 0; max-width: 58ch; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.6; font-weight: 300; color: #b9c2c8; }

/* 6. end */
.end { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
#endRidge { position: absolute; inset: 0; width: 100%; height: 100%; }
.end__txt { position: relative; padding: 0 var(--pad) 14svh; }
.end__t { margin: 0; font-weight: 200; font-size: clamp(44px, 7vw, 124px); line-height: .95; letter-spacing: -.045em; }
.end__q { margin: 28px 0 0; max-width: 34ch; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.45; font-weight: 300; color: #b9c2c8; }
.end__cta { display: inline-grid; grid-template-columns: auto auto; align-items: baseline; margin-top: 52px; gap: 10px .4em; font-size: clamp(22px, 2.4vw, 34px); font-weight: 300; border-top: 1px solid var(--ice); padding-top: 16px; }
.end__cta span { grid-column: 1 / -1; color: var(--mist); }
.end__cta i { font-style: normal; color: var(--amber); display: inline-block; transition: transform .5s var(--ease); }
.end__cta:hover i { transform: translateX(.3em); }
.foot { position: relative; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 var(--pad); padding: 22px 0 28px; border-top: 1px solid var(--line); color: var(--mist); }
.foot a { border-bottom: 1px solid var(--line); }

.rv { opacity: 0; transform: translateY(14px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.stats .st:nth-child(2) { transition-delay: .1s; } .stats .st:nth-child(3) { transition-delay: .2s; }
.np__l li:nth-child(2) { transition-delay: .1s; } .np__l li:nth-child(3) { transition-delay: .2s; }

@media (max-width: 860px) {
  .bar__m { display: none; }
  .bar { mix-blend-mode: normal; background: rgba(5,7,10,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .hero__txt { top: 16svh; }
  .law { grid-template-columns: 1fr; padding-top: 12svh; }
  .scale { height: 250px; margin-top: 70px; }
  .tick--no span { left: 0; transform: none; text-align: left; }
  .tick span { font-size: 9px; }
  .proof__head { top: 66px; }
  .now { top: 150px; }
  .now__y { font-size: 64px; }
  .ev { top: auto; bottom: 64px; left: var(--pad); right: var(--pad); width: auto; text-align: left; }
  .ev__t { font-size: 21px; }
  .stats, .np__l { grid-template-columns: 1fr; }
  .cr { grid-template-columns: 1fr; }
  .cr b { grid-column: 1; }
  .legend { gap: 12px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .tick, .gap, .cr i { transition: none; }
  html { scroll-behavior: auto; }
}
