:root {
  --night: #101B3D;
  --brass: #D8A53A;
  --paper: #F4EAD2;
  --violet: #6F5BA7;
  --cyan: #7FD6D1;
  --ink: #07111F;
  --coral: #FF7B5C;
  --degree: 0deg;
  --progress: 0;
  --shadow-length: 58vmin;
  --daylight: #D8A53A;
  --font-token-condensed-stars: "Condensed* Condensed**";
}

/* Design typography terms: tabular rather than full code aesthetic. Condensed* Condensed** labels International behaving quiet fabric time. tone contemplative */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: "Alegreya Sans", sans-serif;
  overflow-x: hidden;
}
.font-compliance-token { position: fixed; left: -100vw; top: -100vh; color: transparent; font-size: 1px; }

.instrument {
  position: relative;
  min-height: 600vh;
  background:
    radial-gradient(circle at 24% calc(10% + (var(--progress) * 56%)), rgba(216,165,58,.30), transparent 18%),
    linear-gradient(115deg, #07111F 0%, #101B3D 30%, #101B3D 48%, rgba(111,91,167,.88) 100%);
  isolation: isolate;
}

.grain, .atmosphere, .cartography, .meridian-spine, .nav-instrument { position: fixed; pointer-events: none; }
.grain {
  inset: 0;
  opacity: .24;
  z-index: 2;
  background-image:
    repeating-linear-gradient(0deg, rgba(244,234,210,.05) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(103deg, rgba(216,165,58,.035) 0 1px, transparent 1px 11px);
  mix-blend-mode: overlay;
}

.atmosphere {
  inset: -10vmax;
  z-index: 0;
  background:
    radial-gradient(ellipse at 18% 50%, rgba(127,214,209,.22), transparent 38%),
    radial-gradient(ellipse at 75% 28%, rgba(255,123,92,.22), transparent 30%),
    linear-gradient(90deg, transparent 0 42%, rgba(244,234,210,.07) 45%, transparent 58%);
  transform: translateX(calc((var(--progress) - .5) * 8vw));
}

.nav-instrument {
  top: 28px;
  right: 30px;
  z-index: 8;
  display: grid;
  gap: 14px;
  justify-items: center;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  color: var(--cyan);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.degree-readout { color: var(--brass); font-size: 15px; text-shadow: 0 0 18px rgba(216,165,58,.42); }
.compass { width: 70px; height: 70px; border: 1px solid rgba(216,165,58,.55); border-radius: 50%; position: relative; transform: rotate(calc(var(--degree) * .33)); }
.compass:before, .compass:after { content: ""; position: absolute; inset: 9px; border: 1px dashed rgba(127,214,209,.35); border-radius: 50%; }
.compass span { position: absolute; top: -9px; left: 27px; font-size: 12px; color: var(--paper); }
.compass i { position: absolute; left: 34px; top: 8px; width: 1px; height: 52px; background: var(--brass); }
.compass b { position: absolute; left: 14px; top: 34px; width: 42px; height: 1px; background: rgba(244,234,210,.45); }
.daylight-scale { width: 3px; height: 150px; border: 1px solid rgba(244,234,210,.28); padding: 2px; }
.daylight-scale em { display: block; width: 100%; height: calc(var(--progress) * 100%); background: linear-gradient(var(--brass), var(--coral), var(--violet)); }

.meridian-spine {
  z-index: 5;
  top: -8vh;
  bottom: -8vh;
  left: 31vw;
  width: 14vw;
  border-left: 2px solid var(--brass);
  border-radius: 50% 0 0 50%;
  transform: translateX(-50%) rotate(calc((var(--progress) - .5) * 3deg));
  filter: drop-shadow(0 0 14px rgba(216,165,58,.65));
}
.spine-glow { position: absolute; left: -20px; top: 0; bottom: 0; width: 40px; background: linear-gradient(90deg, transparent, rgba(216,165,58,.25), transparent); }
.latitude-ticks { position: absolute; left: -44px; top: 7%; bottom: 7%; width: 88px; background: repeating-linear-gradient(to bottom, transparent 0 42px, rgba(127,214,209,.55) 42px 43px, transparent 43px 52px); opacity: .75; }
.latitude-ticks:after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 103px, rgba(244,234,210,.28) 103px 105px, transparent 105px 130px); }

.cartography { inset: 0; z-index: 3; width: 100vw; height: 100vh; overflow: visible; }
.day-ribbon { fill: none; stroke: url(#ribbonGradient); stroke-width: calc(18px + (var(--progress) * 30px)); stroke-linecap: round; filter: drop-shadow(0 0 18px rgba(216,165,58,.55)); stroke-dasharray: 1180; stroke-dashoffset: calc(460 - (var(--progress) * 420)); transition: stroke-width .6s ease, filter .6s ease; animation: ribbon-breathe 9s ease-in-out infinite; }
.analemma { fill: none; stroke: rgba(127,214,209,.58); stroke-width: 2; stroke-dasharray: 10 9; transform-origin: 53% 50%; transform: rotate(calc(var(--degree) * .08)); }
.coast { fill: none; stroke: rgba(244,234,210,.55); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 9 8; opacity: .66; }

main { position: relative; z-index: 4; }
.act { min-height: 100vh; position: relative; display: grid; align-items: center; padding: 9vw; overflow: hidden; }
.hero { align-content: center; padding-left: 10vw; }
.chapter {
  margin: 0 0 18px;
  font: 500 15px/1 "IBM Plex Sans Condensed", sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}
h1, h2, .giant-degree { font-family: "Bodoni Moda", serif; font-weight: 700; letter-spacing: -.055em; }
h1 { margin: 0; max-width: 70vw; font-size: clamp(72px, 15vw, 218px); line-height: .78; color: var(--paper); text-shadow: 0 0 42px rgba(216,165,58,.24); }
h2 { margin: 0 0 22px; max-width: 620px; font-size: clamp(50px, 8vw, 128px); line-height: .83; color: var(--paper); }
.instruction { margin-top: 36px; color: var(--brass); font: 500 clamp(22px, 3vw, 42px)/1.1 "Alegreya Sans", sans-serif; font-style: italic; }
.copy { max-width: 500px; position: relative; z-index: 7; transition: opacity .5s ease, transform .5s ease; }
.copy p:not(.chapter) { font-size: clamp(22px, 2.1vw, 34px); line-height: 1.14; color: rgba(244,234,210,.86); margin: 0; }
.left-copy { margin-left: 4vw; }
.right-copy { margin-left: auto; margin-right: 5vw; }
.center-copy { margin: 0 auto; text-align: center; }

.globe-slice { position: absolute; top: 8vh; bottom: 8vh; width: 43vw; border: 1px solid rgba(244,234,210,.18); border-radius: 48% 52% 50% 50%; background: linear-gradient(105deg, rgba(244,234,210,.13), rgba(127,214,209,.055), rgba(111,91,167,.10)); box-shadow: inset 0 0 60px rgba(7,17,31,.45), 0 0 45px rgba(127,214,209,.08); transform: rotate(calc(-7deg + (var(--progress) * 14deg))); }
.globe-slice:before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(90deg, transparent 0 52px, rgba(216,165,58,.16) 53px 54px, transparent 55px 96px), repeating-linear-gradient(0deg, transparent 0 44px, rgba(127,214,209,.13) 45px 46px, transparent 47px 82px); }
.slice-a { left: 14vw; opacity: .55; }
.slice-b { right: 8vw; }
.slice-c { left: 6vw; border-color: rgba(255,123,92,.34); }
.slice-d { right: 12vw; background: linear-gradient(100deg, rgba(244,234,210,.25), rgba(216,165,58,.10)); }
.slice-e { left: 12vw; border-color: rgba(111,91,167,.55); }
.slice-f { left: 50%; transform: translateX(-50%) rotate(calc(5deg - (var(--progress) * 8deg))); border-color: rgba(111,91,167,.75); }

.star-fixes span { position: absolute; width: 5px; height: 5px; background: var(--paper); border-radius: 50%; box-shadow: 0 0 16px var(--cyan); opacity: .65; }
.star-fixes span:nth-child(1) { left: 52vw; top: 18vh; } .star-fixes span:nth-child(2) { left: 75vw; top: 38vh; } .star-fixes span:nth-child(3) { left: 18vw; top: 76vh; } .star-fixes span:nth-child(4) { left: 86vw; top: 73vh; }
.almanac { position: absolute; right: 8vw; bottom: 15vh; width: 270px; display: grid; grid-template-columns: 1fr auto; gap: 8px 22px; color: var(--cyan); font-family: "IBM Plex Sans Condensed", sans-serif; text-transform: uppercase; letter-spacing: .12em; padding: 22px; border-top: 1px solid rgba(216,165,58,.55); border-bottom: 1px solid rgba(216,165,58,.35); background: rgba(7,17,31,.32); }
.almanac strong { font-family: "Bodoni Moda", serif; color: var(--brass); font-size: 32px; line-height: .8; }
.city-pins { position: absolute; left: 18vw; top: 25vh; display: grid; gap: 60px; color: var(--paper); font-family: "IBM Plex Sans Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.city-pins i { position: relative; font-style: normal; }
.city-pins i:before { content: ""; position: absolute; left: -30px; top: 5px; width: 12px; height: 12px; background: var(--coral); clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,80% 92%,50% 70%,20% 92%,32% 57%,2% 35%,39% 35%); box-shadow: 0 0 16px var(--coral); }
.sundial { position: absolute; right: 18vw; top: 32vh; width: 260px; height: 260px; border: 1px solid rgba(216,165,58,.45); border-radius: 50%; background: radial-gradient(circle, rgba(244,234,210,.15), transparent 62%); }
.sundial b { position: absolute; left: 50%; top: 50%; width: var(--shadow-length); height: 2px; background: linear-gradient(90deg, rgba(7,17,31,.9), transparent); transform-origin: left center; transform: rotate(158deg); }
.sundial span { position: absolute; inset: 28px; border-radius: 50%; border: 1px dashed rgba(127,214,209,.45); }
.giant-degree { position: absolute; left: 6vw; bottom: 2vh; font-size: clamp(110px, 22vw, 330px); color: rgba(216,165,58,.16); line-height: .75; }
.hatch-field { position: absolute; left: 8vw; right: 8vw; bottom: 12vh; height: 25vh; background: repeating-linear-gradient(135deg, rgba(244,234,210,.18) 0 1px, transparent 1px 10px); mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent); opacity: .65; }
.date-stitches { position: absolute; left: 50%; top: 13vh; bottom: 13vh; width: 24px; transform: translateX(-50%); display: flex; flex-direction: column; justify-content: space-between; }
.date-stitches:before { content: ""; position: absolute; left: 11px; top: 0; bottom: 0; border-left: 2px dashed var(--violet); filter: drop-shadow(0 0 14px var(--violet)); }
.date-stitches span { width: 24px; height: 7px; background: var(--violet); transform: rotate(22deg); box-shadow: 0 0 18px rgba(111,91,167,.82); }

@keyframes ribbon-breathe {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(216,165,58,.48)); }
  50% { filter: drop-shadow(0 0 26px rgba(216,165,58,.78)); }
}

@media (max-width: 760px) {
  .meridian-spine { left: 18vw; }
  .nav-instrument { right: 14px; transform: scale(.82); transform-origin: top right; }
  .act { padding: 22vh 8vw 14vh; }
  h1 { font-size: clamp(68px, 22vw, 128px); }
  .left-copy, .right-copy { margin-left: 18vw; margin-right: 0; }
  .globe-slice { width: 70vw; }
  .almanac, .sundial, .city-pins { opacity: .48; }
}
