/* Dhi Creations · visual journey
   Black, white and grey ink. Orange (--accent) is the only colour: magic, light, energy. */
.o { color: var(--accent); }

:root {
  --ink: #fff;
  --grey: #8a8a8a;
  --dim: #555;
  --paper: #f2f2f2;
  --bg: #000;
  --brand: #FF6A13;      /* logo */
  --accent: #FF6A00;     /* the one accent colour */
  --brand-back: #B8420A;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
:root { color-scheme: dark; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 11px/1.6 var(--mono);
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 1px dashed var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ stage */
#spacer { width: 1px; pointer-events: none; }          /* height set in JS: about 14 viewports */
#stage {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  overflow: hidden; background: var(--bg);
}
.layer {
  position: absolute; inset: 0;
  will-change: transform;
  pointer-events: none;
}
.item { position: absolute; pointer-events: none; }
.art {
  width: 100%; height: 100%;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), filter .25s;
}
.art > img, .art > video, .art > canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.item.link .art { pointer-events: auto; cursor: pointer; }
.item.link .art:hover, .item.link .art:focus-visible { filter: brightness(1.15); }
.item.link .art:focus-visible { outline: 1px dashed var(--ink); outline-offset: 6px; }

/* reveal on horizontal entry: fade + scale 0.7 → 1 */
.item.rv .art { opacity: 0; transform: scale(.7); }
.item.rv.in .art { opacity: 1; transform: none; }

/* floating props drift a little */
.item.float .art { animation: drift 7s ease-in-out infinite; }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* spotlight / iris reveal */
.item.iris .art::after,
.item.iris .art::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; border-radius: 50%;
}
.item.iris .art { position: relative; }
.item.iris .art::after { background: radial-gradient(circle, transparent 40%, rgba(0,0,0,.25) 70%, rgba(0,0,0,.75) 100%); }
.item.iris .art::before {
  z-index: 1;
  background-image: var(--noise);
  background-size: 96px;
  -webkit-mask-image: radial-gradient(circle, transparent 36%, #000 52%, #000 60%, transparent 74%);
          mask-image: radial-gradient(circle, transparent 36%, #000 52%, #000 60%, transparent 74%);
  opacity: .12;
}

/* ------------------------------------------------------------ hero wordmark */
.wordmark { color: #fff; }
.wordmark svg { display: block; width: 100%; height: auto; overflow: visible; }

/* hero logo: the centrepiece of the first screen */
.herologo { position: relative; width: 100%; aspect-ratio: 970 / 1160; }
.herologo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.herologo .mark { color: var(--brand); --back: var(--brand-back); }

.hint {
  position: fixed; left: 50%; top: 58px; translate: -50% 0;
  margin: 0; text-align: center;
  font-size: 9.5px; line-height: 1.7; letter-spacing: .14em; color: var(--grey);
  white-space: pre; pointer-events: none; z-index: 20;
}

/* ------------------------------------------------------------ chrome */
.home {
  position: fixed; left: 18px; top: 14px; z-index: 40;
  width: 40px; height: 50px; display: grid; place-items: center;
  text-decoration: none;
}
.home svg { width: 34px; height: auto; color: var(--brand); --back: var(--brand-back); animation: nod 5s ease-in-out infinite; transform-origin: 50% 90%; }
.home:hover svg { filter: brightness(1.15); }
@keyframes nod { 0%, 70%, 100% { rotate: 0deg; } 78% { rotate: -6deg; } 86% { rotate: 3deg; } }

.ticker {
  position: fixed; top: 18.5px; left: 76px; right: 18px; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  height: 41px; overflow: hidden;       /* the same height as the corner logo (34 x 41) */
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  background: none; color: #f1f1f1;
  opacity: 0; translate: 40px 0;
  transition: opacity .7s var(--ease-out), translate .9s var(--ease-out);
  pointer-events: none;
}
.ticker.on { opacity: 1; translate: 0 0; pointer-events: auto; }
.ticker-label { flex: none; color: var(--accent); }
/* a strip of movie film in a light shade: sprocket holes along both edges, the words sit in the frames between */
.ticker-view {
  flex: 1; overflow: hidden; position: relative; height: 100%; display: flex; align-items: center;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.6) 0 6px, transparent 6px 14px) 5px 5px / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, rgba(0,0,0,.6) 0 6px, transparent 6px 14px) 5px calc(100% - 5px) / 100% 5px no-repeat,
    rgba(236, 230, 217, .2);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker-track span { padding-right: 3em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

.dock {
  position: fixed; left: 18px; bottom: 18px; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  font-size: 13px;
}
.dock .txt { text-decoration: none; letter-spacing: .06em; }
.dock .txt:hover, .dock .txt:focus-visible { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.audio {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid #fff; display: grid; place-items: center;
}
.audio svg { width: 14px; height: 14px; }
.audio .bar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(.25); }
.audio[aria-pressed="true"] { border-color: var(--accent); }
.audio[aria-pressed="true"] .bar { fill: var(--accent); animation: eq .9s ease-in-out infinite; }
.audio[aria-pressed="true"] .bar:nth-child(2) { animation-delay: -.3s; }
.audio[aria-pressed="true"] .bar:nth-child(3) { animation-delay: -.6s; }
.audio[aria-pressed="false"] .slash { opacity: 1; }
.audio .slash { opacity: 0; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 60;
  width: 200%; height: 200%;
  background-image: var(--noise); background-size: 160px;
  opacity: .05; mix-blend-mode: screen;
  pointer-events: none;
  animation: grain .5s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-7%, 4%); } 40% { transform: translate(5%, -6%); }
  60% { transform: translate(-3%, 8%); } 80% { transform: translate(8%, 2%); } 100% { transform: translate(0, 0); }
}

/* ------------------------------------------------------------ manifesto */
.manifesto {
  width: 360px; max-width: 78vw;
  font-size: 10.5px; line-height: 1.75; letter-spacing: .03em; text-align: left;
  color: #fff; pointer-events: auto;
}
.manifesto p { margin: 0 0 1.2em; }
.manifesto .sig { margin-top: 2em; }
.manifesto ul { list-style: none; margin: .4em 0 0; padding: 0; }

/* ------------------------------------------------------------ modals */
.modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, .82);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease-out), visibility 0s linear .35s;
}
.modal.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease-out); }
.card {
  position: relative; width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--paper); color: #000;
  padding: 44px 36px 36px; text-align: center;
  font-size: 12px; line-height: 1.75;
  transform: translateY(14px) scale(.98); transition: transform .45s var(--ease-out);
}
.modal.open .card { transform: none; }
.card h2 { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; margin: 18px 0 6px; }
.card p { margin: 0 0 10px; }
.card .what { word-spacing: .3em; }
.card a { color: #000; }
.card .creature { width: 64px; height: 64px; image-rendering: pixelated; display: block; margin: 0 auto 6px; }
.x {
  position: absolute; top: 10px; right: 12px;
  width: 30px; height: 30px; font-size: 16px; line-height: 30px; color: #000;
}
.lightbox .x { color: #fff; top: 14px; right: 18px; }
.signup { display: flex; gap: 8px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.signup input {
  font: inherit; width: min(240px, 100%); padding: 8px 10px;
  background: #fff; color: #000; border: 1px solid #000; border-radius: 0;
}
.signup button { padding: 8px 14px; background: #000; color: #fff; }
.signup button:hover { filter: brightness(1.4); }
.fine { font-size: 10px; color: #555; margin-top: 12px; }

.lightbox { background: #000; }
.lightbox .frame { width: min(1100px, 92vw); aspect-ratio: 16 / 9; background: #000; }
.lightbox iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox .reel {
  width: min(560px, 92vw); text-align: center; color: #fff;
  font-size: 12px; line-height: 1.8; padding: 0 8px;
}
.reel .t { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; }
.reel .y { color: var(--accent); letter-spacing: .2em; }
.reel .tag { margin-top: 22px; color: var(--accent); font: inherit; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; background: none; border: 0; cursor: pointer; padding: 6px 0; }
.reel .tag:hover { color: #fff; }
.reel img { width: min(320px, 70vw); height: auto; display: block; margin: 0 auto 18px; }

/* ------------------------------------------------------------ preloader */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, #1b1b1b 0, #080808 22%, #000 42%);
  transition: opacity .9s var(--ease-out), visibility 0s linear .9s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader .inner { display: grid; justify-items: center; gap: 18px; text-align: center; color: var(--grey); font-size: 10px; letter-spacing: .12em; line-height: 1.8; max-width: 260px; }
.preloader svg { width: 54px; height: 54px; transform: rotate(-90deg); }
.preloader circle { fill: none; stroke-width: 1.5; }
.preloader .track { stroke: #333; }
.preloader .ring { stroke: var(--accent); stroke-dasharray: 150.8; stroke-dashoffset: 150.8; transition: stroke-dashoffset .3s; }

/* ------------------------------------------------------------ small screens */
@media (max-width: 640px), (orientation: portrait) {
  .ticker { left: 70px; right: 12px; top: 16.5px; font-size: 10px; }
  .ticker-label { display: none; }
  .hint { top: 64px; }
  .dock { left: 14px; bottom: 14px; gap: 14px; font-size: 12px; }
  .home { left: 12px; top: 12px; }
}

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .item.rv .art { opacity: 1; transform: none; }
  .ticker-track { flex-wrap: wrap; }
}
