/* Anchor Management. Colours are the Figma file's (Abdul's pick, 2026-11-23).
   Two faces only: Fraunces Black, soft, for display; IBM Plex Mono for labels. */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/Fraunces-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy: #112d3c;
  --sea: #183d4b;
  --teal: #1e495a;
  --cream: #ece6da;
  --red: #d73d27;
  --orange: #e46728;
  --amber: #ea922f;
  --yellow: #eebd3c;
  --anchor: #006688;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { background: var(--navy); color: var(--cream); }
body {
  margin: 0;
  overflow-x: clip;
  font: 500 16px/1.5 "Plex Mono", ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }

h2, .display {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
}
h2 { font-size: clamp(40px, 7vw, 104px); max-width: 14ch; }
h2 em { font-style: normal; color: var(--yellow); }

.label {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}

/* Marked placeholders: facts nobody has confirmed yet. */
.tbd {
  color: var(--yellow);
  outline: 2px dashed var(--yellow);
  outline-offset: 2px;
  padding: 0 4px;
  font-size: 14px;
  letter-spacing: 0.06em;
  width: fit-content;
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 0 96px;
  overflow: clip;
  isolation: isolate;
}
@keyframes turn { to { transform: rotate(360deg); } }

/* the world, seen from above the pole. It turns slowly on its own, and
   scrolling the page turns it further: the whole site sits on top of it. */
.world { position: fixed; inset: 0; z-index: -2; display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.world .drift { animation: turn 600s linear infinite; }
.world img {
  width: max(170vw, 170vh);
  max-width: none;
  opacity: 0.5;
  transform: rotate(var(--spin, 0deg));
  will-change: transform;
}

.hero::after { /* vignette, as in the video */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(6, 19, 27, 0.75) 100%);
  pointer-events: none;
}

.wm {
  position: relative;
  width: min(94vw, 1280px, 150svh);
  aspect-ratio: 1920 / 1083;
  margin: 0;
  filter: drop-shadow(0 0 28px rgba(236, 230, 218, 0.16));
}
.wm .l { position: absolute; inset: 0; width: 100%; height: 100%; }
.l-under { z-index: 1; } .strings { z-index: 2; } .l-anchor { z-index: 3; } .l-over { z-index: 4; }
.l-A, .l-N, .l-C, .l-H, .l-R { z-index: 5; } .l-globe { z-index: 6; }
.l-globe { transform-origin: 69.47% 20.1%; }

/* the stripes run off both edges of the screen, and they are strings */
.wm .strings {
  position: absolute;
  top: 37.78%;
  height: 17.76%;
  left: calc(50% - 50vw);
  width: 100vw;
  overflow: visible;
  touch-action: pan-y;
}
.strings path:nth-child(1) { fill: var(--red); }
.strings path:nth-child(2) { fill: var(--orange); }
.strings path:nth-child(3) { fill: var(--amber); }
.strings path:nth-child(4) { fill: var(--yellow); }

/* letters stamp in once, on arrival */
.ready .l-A, .ready .l-N, .ready .l-C, .ready .l-H, .ready .l-R, .ready .l-over, .ready .l-under {
  animation: stamp 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.ready .l-under, .ready .l-over { animation-delay: 0.55s; }
.ready .l-N { animation-delay: 0.08s; } .ready .l-C { animation-delay: 0.16s; }
.ready .l-H { animation-delay: 0.24s; } .ready .l-R { animation-delay: 0.4s; }
.ready .l-globe { animation: arrive 0.9s cubic-bezier(0.2, 1.3, 0.4, 1) 0.3s both, spin 40s linear 1.2s infinite; }
.ready .l-anchor { animation: drop 0.8s cubic-bezier(0.3, 1.4, 0.5, 1) 0.7s both; }
@keyframes stamp { from { transform: translateY(-8%) scale(1.25); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes arrive { from { transform: rotate(-200deg) scale(0); } to { transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drop { from { transform: translateY(-18%); opacity: 0; } to { transform: none; opacity: 1; } }

.motto {
  margin: clamp(8px, 2vw, 24px) var(--gutter) 0;
  text-align: center;
  font-weight: 600;
  font-size: clamp(13px, 1.5vw, 18px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.motto span { display: inline-block; }

/* ---------------------------------------------------------------- news strap */
.strap { display: flex; height: 64px; position: relative; z-index: 2; }
.tab { width: 36px; display: flex; flex-direction: column; flex: none; }
.tab i { flex: 1; }
.tab i:nth-child(1) { background: var(--red); } .tab i:nth-child(2) { background: var(--orange); }
.tab i:nth-child(3) { background: var(--amber); } .tab i:nth-child(4) { background: var(--yellow); }
.strap .bar {
  flex: 1; min-width: 0; overflow: hidden;
  background: #0b2230;
  border-top: 3px solid var(--teal);
  display: flex; align-items: center;
}
.crawl { display: flex; white-space: nowrap; animation: crawl 60s linear infinite; }
.crawl span {
  font-weight: 600; font-size: 18px; letter-spacing: 0.12em; text-transform: uppercase;
  padding-right: 48px; display: inline-flex; align-items: center; gap: 48px;
}
.crawl span::after { content: ""; width: 12px; height: 12px; background: var(--yellow); }
@keyframes crawl { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- sections */
main section { padding: clamp(72px, 12vw, 160px) var(--gutter); max-width: 1280px; margin: 0 auto; }
main section h2 { margin-bottom: clamp(32px, 5vw, 64px); }
.anchors h2 { margin-bottom: 12px; }
.tagline { font-size: clamp(26px, 3.6vw, 52px); color: var(--yellow); margin: 0 0 clamp(32px, 5vw, 64px); }

.screen, .desk {
  /* framed like the IT'S REPEATING screens: square, in the sunset */
  border: 10px solid var(--red);
  box-shadow: 0 0 0 10px var(--orange), 0 0 0 20px var(--amber), 0 0 0 30px var(--yellow);
  margin: 30px;
}
.screen { background: #000; }
.screen video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* ---------------------------------------------------------------- the anchors */
.desk {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  /* Figma "backdrop 12": the anchor and the sun rings on the left, open sea on the right for the hosts */
  background: var(--sea) url("../assets/backdrop-12.jpg") left center / cover no-repeat;
}
.people { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
.third { position: absolute; bottom: 7%; display: flex; height: clamp(40px, 6vw, 72px); }
.third-a { left: 5%; } .third-j { right: 5%; }
.third .tab { width: clamp(14px, 1.6vw, 24px); }
.third .bar {
  background: var(--navy); border-top: 3px solid var(--teal);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(12px, 2vw, 28px);
}
.third b {
  font-family: "Fraunces", serif; font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: clamp(16px, 2.6vw, 34px); line-height: 1;
}
.third span { font-weight: 600; font-size: clamp(9px, 0.9vw, 12px); letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); }

/* ---------------------------------------------------------------- listings */
.guide { margin: 0; max-width: 820px; }
.guide div { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; }
.guide dt {
  font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; flex: none;
}
.guide div::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted var(--teal); transform: translateY(-4px); }
.guide dd { order: 2; margin: 0; }

/* ---------------------------------------------------------------- footer */
.foot { position: relative; padding: 140px 0 48px; overflow: clip; }
.strings-foot { display: block; width: 100%; height: 120px; overflow: visible; touch-action: pan-y; }
.sign { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 56px; }
.foot-anchor { width: 72px; }
.sign .label { color: var(--cream); opacity: 0.7; margin: 0; }

@media (max-width: 640px) {
  .strap { height: 52px; }
  .crawl span { font-size: 15px; }
  .screen, .desk { margin: 20px; border-width: 7px; box-shadow: 0 0 0 7px var(--orange), 0 0 0 14px var(--amber), 0 0 0 21px var(--yellow); }
  .desk { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

.guide a { color: var(--yellow); text-decoration: none; border-bottom: 2px solid var(--yellow); }
.guide .soon { color: var(--amber); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }

@media (max-width: 640px) {
  .guide div { flex-wrap: wrap; }
  .guide dd { font-size: 14px; }
}
