/* heloyouofficial.com. One fixed world, one fixed copy layer, one spacer. */

:root {
  --canvas: #0B0B0C;
  --surface: #151517;
  --ink: #F2F1EE;
  --ink-soft: #A9A8A1;
  --accent: #FF4D2E;
  --accent-ink: #160905;
  --line: rgba(242, 241, 238, .16);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-text: "Geist", system-ui, sans-serif;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem;
  --gutter: clamp(1.125rem, 4vw, 3.5rem);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --radius: 999px;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--canvas); color-scheme: dark; scrollbar-color: #3a3a3d var(--canvas); }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- the world ---------- */

#world {
  position: fixed; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 0;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none; user-select: none;
}
#world.is-drag { cursor: grabbing; }

.poster { display: none; }
.no-webgl .poster { display: block; position: fixed; inset: 0; z-index: 0; }
.no-webgl .poster img { width: 100%; height: 100%; object-fit: cover; }
.no-webgl #world { display: none; }

.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Density only where the copy sits: a left column on wide screens, a band on phones. */
.scrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 11, 12, .78) 0, rgba(11, 11, 12, 0) 7rem),
    linear-gradient(90deg, rgba(11, 11, 12, .82) 0%, rgba(11, 11, 12, .5) 26%, rgba(11, 11, 12, 0) 52%);
}

/* ---------- chrome ---------- */

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4);
  padding: max(var(--s4), env(safe-area-inset-top)) var(--gutter) var(--s4);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }

.mark {
  display: inline-flex; align-items: center; gap: var(--s3);
  min-height: 44px;
  font-family: var(--font-display);
  font-stretch: 112%; font-weight: 560; font-size: 1.0625rem; letter-spacing: -.01em;
  text-decoration: none;
}
.mark img { display: block; width: 36px; height: 36px; }

.index ol { display: flex; gap: clamp(.25rem, 1.6vw, 1.25rem); margin: 0; padding: 0; list-style: none; }
.index a {
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2);
  color: var(--ink-soft); text-decoration: none; font-size: .9375rem;
  transition: color .16s var(--ease-out);
}
.index a::after {
  content: ""; position: absolute; left: var(--s2); right: var(--s2); bottom: 9px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .26s var(--ease-out);
}
.index a[aria-current="true"] { color: var(--ink); }
.index a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .index a:hover { color: var(--ink); }
}

/* ---------- pins: labels that ride on the planet ---------- */

.pins { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.pin {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: var(--s2);
  margin: -22px 0 0 -22px; padding: 0 var(--s3) 0 0; height: 44px;
  border: 0; background: none; color: var(--ink); cursor: pointer;
  font: 500 .8125rem/1 var(--font-text); letter-spacing: .02em;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease-out), visibility 0s .22s;
  will-change: transform;
}
.pin.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.pin i {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none;
}
.pin i::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 11, 12, .55);
}
.pin i::after {
  content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--accent); animation: ping 2.4s var(--ease-out) infinite;
}
.pin span {
  margin-left: -10px; padding: 5px 9px; border-radius: var(--radius);
  background: rgba(11, 11, 12, .62); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .16s var(--ease-out), color .16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .pin:hover span { background: var(--ink); color: var(--canvas); }
}
.pin:active span { transform: scale(.97); }
@keyframes ping {
  0% { transform: scale(1); opacity: .9; }
  70%, 100% { transform: scale(3.4); opacity: 0; }
}

/* ---------- the copy layer ---------- */

.stage {
  position: fixed; inset: 0; z-index: 4;
  display: grid; align-items: center;
  padding: 5.5rem var(--gutter) 3.5rem;
  pointer-events: none;
}
.stage__col { width: min(33rem, 40vw); }

.greet {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 116%;
  font-weight: 470;
  font-size: clamp(3rem, 5.7vw, 5.6rem);
  line-height: .95;
  letter-spacing: -.04em;
}
.greet__l1, .greet__l2 { display: block; white-space: nowrap; }
.greet__slot { position: relative; display: inline-block; }
.greet__word {
  display: inline-block; white-space: pre;
  opacity: 0; transform: translateY(.28em);
  transition: opacity .3s var(--ease-out), transform .42s var(--ease-out);
}
.greet__word.is-on { opacity: 1; transform: none; }
.greet__word.is-out {
  position: absolute; left: 0; top: 0;
  opacity: 0; transform: translateY(-.28em);
  transition: opacity .18s var(--ease-out), transform .3s var(--ease-out);
}

.panels { display: grid; margin-top: var(--s6); min-height: 12.5rem; align-items: start; }

.copy {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s .2s;
}
.copy.is-on {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity .34s var(--ease-out) .08s, transform .44s var(--ease-out) .08s, visibility 0s 0s;
}

.lede { margin: 0; max-width: 30ch; font-size: clamp(1.0625rem, 1.25vw, 1.25rem); line-height: 1.55; text-wrap: pretty; }
.note { margin: var(--s4) 0 0; color: var(--ink-soft); font-size: .9375rem; }
.fine { margin: var(--s6) 0 0; color: var(--ink-soft); font-size: .8125rem; }

.acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin: var(--s5) 0 0; }

.btn {
  display: inline-flex; align-items: center; gap: var(--s3);
  min-height: 48px; padding: 0 1.375rem 0 1.125rem;
  border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  font-weight: 560; font-size: 1rem; letter-spacing: 0; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 10px 24px -12px rgba(255, 77, 46, .7);
  transition: transform .14s var(--ease-out), background-color .14s var(--ease-out);
}
.btn::before {
  content: ""; width: 0; height: 0;
  border-style: solid; border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #FF6A4F; transform: translateY(-1px); }
}
.btn:active { transform: scale(.97); }

.link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); font-size: .9375rem;
  text-decoration: underline; text-decoration-color: var(--line);
  text-decoration-thickness: 1px; text-underline-offset: .32em;
  transition: text-decoration-color .16s var(--ease-out);
}
.link::after { content: "\2197"; margin-left: .35em; font-size: .9em; }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: var(--ink); }
}
.link[aria-disabled="true"] { display: none; }

.places { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s2); margin: var(--s5) 0 0; padding: 0; list-style: none; }
.places a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.125rem;
  border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none; font-size: .9375rem;
  transition: background-color .16s var(--ease-out), color .16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .places a:hover { background: var(--ink); color: var(--canvas); }
}
.places a:active { transform: scale(.97); }

/* The only thing in document flow. */
.track { height: 750vh; }

/* ---------- player ---------- */

.player {
  width: min(92vw, 26rem); max-height: 94dvh; padding: var(--s4);
  border: 0; border-radius: 20px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.player::backdrop { background: rgba(5, 5, 6, .78); }
.player[open] { animation: rise .26s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.player__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.player__title { margin: 0; font-family: var(--font-display); font-stretch: 112%; font-weight: 560; letter-spacing: -.01em; }
.player__close {
  min-height: 44px; padding: 0 var(--s4); border: 0; border-radius: var(--radius);
  background: none; color: var(--ink); font: 500 .9375rem var(--font-text); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
}
.player__frame {
  margin-top: var(--s3); aspect-ratio: 9 / 16; max-height: 68dvh; width: 100%;
  border-radius: 12px; overflow: hidden; background: #000;
  display: grid; place-items: center;
}
.player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player__frame p { margin: 0; padding: var(--s5); max-width: 24ch; text-align: center; color: var(--ink-soft); }
.player__foot { margin: var(--s2) 0 0; }

/* ---------- phones: the planet takes the top, the copy the bottom ---------- */

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .scrim {
    background:
      linear-gradient(180deg, rgba(11, 11, 12, .86) 0, rgba(11, 11, 12, 0) 6.5rem),
      linear-gradient(180deg, rgba(11, 11, 12, 0) 44%, rgba(11, 11, 12, .78) 66%, rgba(11, 11, 12, .94) 100%);
  }
  .places a { padding: 0 .875rem; }
  .stage { align-items: end; padding: 4.5rem var(--gutter) max(1.5rem, env(safe-area-inset-bottom)); }
  .stage__col { width: 100%; }
  .greet { font-size: clamp(2.5rem, 12.4vw, 3.4rem); }
  .panels { margin-top: var(--s4); min-height: 12.75rem; }
  .lede { max-width: 34ch; }
  .acts { margin-top: var(--s4); }
  .fine { margin-top: var(--s4); }
  .mark span { display: none; }
  .index a { font-size: .875rem; padding: 0 .4rem; }
  .index a::after { left: .4rem; right: .4rem; }
  .pin span { display: none; }
}
@media (max-width: 760px) and (max-height: 680px) {
  .greet { font-size: 2.35rem; }
  .panels { min-height: 11.5rem; }
  .note { margin-top: var(--s2); }
}

/* ---------- reduced motion: keep the meaning, drop the travel ---------- */

@media (prefers-reduced-motion: reduce) {
  .greet__word, .greet__word.is-out, .copy, .copy.is-on { transform: none; transition-duration: .12s; }
  .pin i::after { animation: none; }
  .player[open] { animation: none; }
}

/* ---------- no script or no WebGL: the same content as a plain page ---------- */

.no-js #world, .no-js .pins, .no-js .track, .no-js .greet__slot { display: none; }
.no-js .scrim { background: rgba(11, 11, 12, .0); }
.no-js .stage { position: relative; inset: auto; display: block; padding-top: 7rem; padding-bottom: 5rem; pointer-events: auto; }
.no-js .stage__col { width: min(36rem, 100%); }
.no-js .panels { display: block; }
.no-js .copy { opacity: 1; visibility: visible; transform: none; pointer-events: auto; margin-top: var(--s7); }
.no-js .copy h2 {
  position: static; width: auto; height: auto; margin: 0 0 var(--s3); clip-path: none; white-space: normal;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 520; font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.1;
}
.no-js .note { display: none; }
.no-js .greet__l2::after { content: "."; }
.no-webgl .scrim { background: linear-gradient(90deg, rgba(11, 11, 12, .9), rgba(11, 11, 12, .55)); }
