/* MR.BONE — Figma "MLK.STUDIO / MR. BONE", MAIN frame 1920×7814 and MOB frame 402 wide. */
@font-face { font-family: 'Anton'; src: url('assets/fonts/anton.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Allison'; src: url('assets/fonts/allison.woff2') format('woff2'); font-display: swap; }

:root {
  --bg: #040404;
  --ink: #eae6d8;
  --orange: #d66120;
  --slate: #191b21;
  /* One pixel of the 1920 frame: on wider screens the whole page grows to fill the width. */
  --u: calc(100vw / 1920);
  /* Body copy, buttons and captions grow with it only a little past 1920, so they stay readable, not huge. */
  --t: min(var(--u), 1.08px);
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: #fff; font: 300 15px/1.4 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Stage: blocks sit at their Figma coordinates. */
.stage { position: relative; width: calc(1920 * var(--u)); height: calc(7814 * var(--u)); margin: 0 auto; overflow: clip; }
html { overflow-x: clip; }
.a {
  position: absolute;
  left: calc(var(--x, 0) * var(--u));
  top: calc(var(--y, 0) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
}
.deco { pointer-events: none; user-select: none; }
img.a, .a > img { object-fit: cover; }
/* Positioned images keep their Figma size even when wider than the page (ropes, the big moon). */
img.a { max-width: none; }
.flip-x { transform: scaleX(-1); }
.flip-xy { transform: rotate(180deg); }

/* Layers follow the Figma order: the background image is the bottom layer, the header the top one.
   .lower (People and everything below it) is one layer above the Hello block; the side lights sit over it. */
.bg { z-index: 1; }
.lower { position: absolute; inset: 0; z-index: 21; pointer-events: none; transform: translate3d(0, var(--lift, 0px), 0); }
.lower > * { pointer-events: auto; }
.lower > .deco { pointer-events: none; }
/* The light images carry their brightness as transparency, so normal blending lightens like "screen" in every browser.
   They are black and white: neutral light, no blue cast. */
.light { z-index: 22; translate: 0 var(--lift, 0px); object-fit: fill; }
.light--right { transform: scaleX(-1); }
.join-bg, .join-bg + .fade-top { z-index: 1; }
.pug--mirror { z-index: 1; }
.join-title, .fight, .tv, .links, .pug:not(.pug--mirror) { z-index: 2; }
/* The footer fog lies over everything in the Join block; only "Design by", the icons and the boy stay above it. */
.footer-blur { z-index: 31; }
.footer, .cap-guy { z-index: 32; }
.tag, .hero-title, .hero-script, .hero-copy { z-index: 12; }
.hero-bone { z-index: 13; }
.fade-up { z-index: 14; background: linear-gradient(0deg, #040404, rgba(4, 4, 4, 0)); }
.cta { z-index: 15; }
.poster, .hello-title, .hello-title + .copy, .lore { z-index: 20; }
.crowd, .crowd-badge { z-index: 21; }
.slate { z-index: 22; background: var(--slate); }
.title-xl, .secure, .card, .skull, .story-script, .story-title, .designs-title, .designs-copy, .sea-card, .moon, .stats, .astro, .astro-2, .supply-title, .supply-title + .copy { z-index: 24; }
.hello-title, .hello-title + .copy { z-index: 20; }
.smoke { z-index: 25; filter: blur(27px); }
.fade-down { z-index: 26; background: linear-gradient(180deg, rgba(4, 4, 4, 0), #040404); }
.fade-top { z-index: 27; background: linear-gradient(180deg, #040404, rgba(4, 4, 4, 0)); }
.join-bg + .fade-top { z-index: 1; }
.strip, .why, .culture, .why-sub, .lead, .lead + .copy, .cta--wide { z-index: 28; }
/* The bone rope sits outside .lower so it can pass over the menu; it follows the People lift itself. */
.bone-rope { z-index: 45; translate: 0 var(--lift, 0px); }
.header, .socials { z-index: 40; }

/* Type ------------------------------------------------------------------- */
.title-xl, .title-md, .hero-title, .join-title, .cta, .sea-card, .links a, .stats dd {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}
.title-xl { color: var(--ink); font-size: calc(88 * var(--u)); line-height: calc(96 * var(--u)); }
.title-md { color: var(--ink); font-size: calc(48 * var(--u)); line-height: calc(55 * var(--u)); }
.copy {
  font-size: max(10px, calc(15 * var(--t)));
  line-height: 1.4;
  letter-spacing: calc(1.5 * var(--t));
  text-transform: uppercase;
  text-align: justify;
}
.copy b { font-weight: 500; }
.lore { opacity: 0.2; }
.lead { font-family: var(--sans); font-weight: 500; font-size: max(12px, calc(18 * var(--t))); line-height: 1.4; letter-spacing: calc(1.8 * var(--t)); text-transform: uppercase; }
.script { font-family: 'Allison', cursive; font-weight: 400; line-height: 1.4; white-space: nowrap; }
.script--md { color: #d66222; font-size: calc(136 * var(--u)); }
.moon { color: var(--ink); }
.tag {
  padding: 0 calc(15 * var(--u));
  font-size: max(10px, calc(15 * var(--t)));
  font-weight: 100;
  letter-spacing: calc(1.5 * var(--t));
  text-transform: uppercase;
  background:
    linear-gradient(#fff, #fff) 0 0 / 2px 2px no-repeat, linear-gradient(#fff, #fff) 100% 0 / 2px 2px no-repeat,
    linear-gradient(#fff, #fff) 0 100% / 2px 2px no-repeat, linear-gradient(#fff, #fff) 100% 100% / 2px 2px no-repeat;
}

/* Header ----------------------------------------------------------------- */
.header, .socials a {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}
.header { display: flex; align-items: center; }
.header__logo { position: absolute; left: calc(24 * var(--u)); top: 50%; width: calc(180 * var(--u)); transform: translateY(-50%); }
.header__nav {
  position: absolute;
  left: calc(315 * var(--u));
  width: calc(407 * var(--u));
  display: flex;
  justify-content: space-between;
  font-size: max(10px, calc(14 * var(--t)));
  letter-spacing: calc(1.96 * var(--t));
  text-transform: uppercase;
}
.header__nav a { transition: color 0.2s; }
.header__nav a:hover { color: var(--orange); }
.burger { display: none; }
/* Socials: a square per network; on hover it widens to the left and shows the network's name. */
.socials { display: flex; justify-content: flex-end; gap: calc(23.33 * var(--u)); }
.socials a {
  display: flex;
  align-items: center;
  width: calc(80 * var(--u));
  height: calc(80 * var(--u));
  overflow: hidden;
  transition: width 0.7s cubic-bezier(0.65, 0, 0.35, 1), background-color 0.4s;
}
.socials img { flex: none; width: calc(34 * var(--u)); height: calc(34 * var(--u)); margin: 0 calc(22 * var(--u)); }
.socials span {
  flex: none;
  padding-right: calc(26 * var(--u));
  font-size: max(10px, calc(14 * var(--t)));
  letter-spacing: calc(1.96 * var(--t));
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  translate: calc(-12 * var(--u)) 0;
  transition: opacity 0.3s, translate 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
/* Opening is quick; closing keeps the slower, smooth pace of the rule above. */
.socials a:hover, .socials a:focus-visible { width: var(--open, calc(200 * var(--u))); background-color: rgba(255, 255, 255, 0.14); transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s; }
.socials a:hover span, .socials a:focus-visible span { opacity: 1; translate: 0 0; transition: opacity 0.3s 0.08s, translate 0.4s 0.04s cubic-bezier(0.22, 1, 0.36, 1); }
/* OpenSea: the orange square with the cut corner from the design, drawn in CSS so hover never shows a box behind it. */
.socials .socials__sea {
  background: #d66222;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20 * var(--u)), calc(100% - 20 * var(--u)) 100%, 0 100%);
}
.socials .socials__sea:hover, .socials .socials__sea:focus-visible { background-color: #e2732f; }
@media (min-width: 1024px) {
  /* The menu stays on screen while the page scrolls. */
  .header, .socials { position: fixed; top: calc(40 * var(--u)); }
  .header { left: calc(50% - 960 * var(--u) + 40 * var(--u)); }
  .socials { left: auto; right: calc(50% - 960 * var(--u) + 40 * var(--u)); width: auto; }
}

/* Hero ------------------------------------------------------------------- */
.hero-title { font-size: calc(176 * var(--u)); line-height: calc(166 * var(--u)); }
.hero-title span {
  display: block;
  width: max-content;
  margin-top: calc(3 * var(--u));
  background: linear-gradient(90deg, var(--ink) 65%, rgba(234, 230, 216, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-script { display: grid; place-items: center; color: var(--orange); font-size: calc(236 * var(--u)); }
.hero-script { transform: rotate(-4.77deg); }
.hero-bone { object-fit: cover; object-position: 50% 0; }

/* Buttons ---------------------------------------------------------------- */
.cta {
  display: flex;
  align-items: center;
  padding-left: calc(30 * var(--u));
  font-size: max(11px, calc(16 * var(--t)));
  letter-spacing: calc(0.8 * var(--t));
  background: url('assets/btn-shape.svg') center / 100% 100% no-repeat;
  transition: filter 0.2s, transform 0.2s, scale 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta--wide { padding-left: calc(52 * var(--u)); background-image: url('assets/btn-shape-wide.svg'); }
.cta:hover, .cta:focus-visible { scale: 1.05; }
.cta img { width: calc(30 * var(--u)); height: calc(30 * var(--u)); transition: rotate 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.cta:hover img, .cta:focus-visible img { rotate: 25deg; }
.cta span { flex: 1; padding-right: calc(30 * var(--u)); text-align: center; white-space: nowrap; }
.cta:hover, .sea-card:hover { filter: brightness(1.12); }
.cta:active { transform: translateY(1px); }

/* Collection ------------------------------------------------------------- */
.secure { text-align: right; }
.card { overflow: hidden; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.3); }
.card img { position: absolute; inset: calc(20 * var(--u)); width: calc(100% - 40 * var(--u)); height: calc(100% - 40 * var(--u)); object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.card:hover img { transform: scale(1.04); }
.card .flip-x, .card:hover .flip-x { transform: scaleX(-1); }
.card:hover .flip-x { transform: scaleX(-1.04) scaleY(1.04); }
.card--light { background: rgba(255, 255, 255, 0.02); border-color: rgba(255, 255, 255, 0.1); }
.card--red img { background: var(--orange); }
.card--blue img { inset: calc(19 * var(--u)) calc(20 * var(--u)); background: #5faed2; }
.card--reaper img { object-position: bottom; }
.skull { mix-blend-mode: overlay; }
.story-title { white-space: nowrap; }
.sea-card {
  display: block;
  background: url('assets/card-shape.svg') center / 100% 100% no-repeat;
  font-size: max(11px, calc(16 * var(--t)));
  line-height: calc(20 * var(--t));
  letter-spacing: calc(0.8 * var(--t));
}
.sea-card img { position: absolute; top: calc(20 * var(--u)); right: calc(20 * var(--u)); width: calc(44 * var(--u)); height: calc(44 * var(--u)); transition: transform 0.25s; }
.sea-card:hover img { transform: translate(3px, -3px); }
.sea-card span { position: absolute; left: calc(15 * var(--u)); top: calc(110 * var(--u)); }

/* Statistic -------------------------------------------------------------- */
.stats {
  display: grid;
  align-content: start;
  gap: calc(48 * var(--u));
  padding: calc(29 * var(--u));
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(7px);
}
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { color: #d66222; font-size: calc(88 * var(--u)); line-height: calc(96 * var(--u)); }
.stats small { font-size: calc(48 * var(--u)); }
.stats dt { margin-top: calc(4 * var(--u)); font-size: max(10px, calc(15 * var(--t))); letter-spacing: calc(1.5 * var(--t)); text-transform: uppercase; }

/* Why own ---------------------------------------------------------------- */
.strip { overflow: hidden; }
/* Endless photo band: the row holds its photos twice and slides by half its width. */
.strip__row { display: flex; width: max-content; animation: marquee 60s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.strip__row > * { flex: none; width: calc(137 * var(--u)); height: calc(137 * var(--u)); object-fit: cover; }
.strip__cell { position: relative; }
.strip__cell img { width: 100%; height: 100%; object-fit: cover; }
.strip__cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/selected.svg') center / 100% 100% no-repeat;
  opacity: 0;
  transition: opacity 0.6s;
}
.strip__cell:hover::after { opacity: 1; transition-duration: 0.25s; }
.culture img { width: 100%; height: 100%; }
/* Figma "bone rope" frame: children are placed relative to its top (y 5027). */
.bone-rope { position: absolute; left: 0; top: calc(5027 * var(--u)); width: 100%; height: calc(1637 * var(--u)); pointer-events: none; }
.rope { object-fit: cover; object-position: 0 50%; height: calc(88 * var(--u)); }
.rope--a { left: calc(-1090.7 * var(--u)); top: calc(620.5 * var(--u)); width: calc(2426.6 * var(--u)); transform: rotate(31.1deg); }
.rope--b { left: calc(1120.6 * var(--u)); top: calc(942 * var(--u)); width: calc(1480.5 * var(--u)); transform: rotate(154.24deg) scaleY(-1); }
.bone-white { left: calc(883.1 * var(--u)); top: calc(592.1 * var(--u)); width: calc(620.1 * var(--u)); height: calc(964.4 * var(--u)); transform: rotate(-21.65deg); object-fit: contain; }

/* Join us ---------------------------------------------------------------- */
.join-bg { overflow: hidden; }
.join-bg img { width: 100%; height: 105.26%; margin-top: -5.26%; }
.join-title { display: flex; flex-direction: column; color: var(--ink); font-size: calc(73 * var(--u)); line-height: calc(72 * var(--u)); white-space: nowrap; }
.join-title span:first-child { font-size: calc(88 * var(--u)); line-height: calc(88 * var(--u)); }
.join-title__gap { height: calc(88 * var(--u)); }
/* TV: the screen shows the MR.BONE skull drawn in changing symbols (main.js). */
.tv > img { width: 100%; height: 100%; }
.tv__screen {
  position: absolute;
  left: 27%;
  top: 9.8%;
  width: 47.8%;
  height: 26.2%;
  border-radius: 9% / 12%;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 calc(4 * var(--u)) rgba(234, 230, 216, 0.5));
}
.tv::after {
  content: '';
  position: absolute;
  left: 27%;
  top: 9.8%;
  width: 47.8%;
  height: 26.2%;
  border-radius: 9% / 12%;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 calc(30 * var(--u)) rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.links {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--u));
  padding: calc(20 * var(--u));
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top: 0;
  backdrop-filter: blur(5px);
}
.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(100 * var(--u));
  padding: 0 calc(19 * var(--u));
  font-size: max(11px, calc(16 * var(--t)));
  line-height: calc(20 * var(--t));
  letter-spacing: calc(0.8 * var(--t));
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color 0.2s, border-color 0.2s;
}
.links a:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.6); }
.links img { width: calc(44 * var(--u)); height: calc(44 * var(--u)); }
.links .links__sea { background: #d66222; border-color: #d66222; }
.links .links__sea:hover { background: #e2732f; }
.pug--mirror { transform: scaleY(-1); opacity: 0.3; -webkit-mask-image: linear-gradient(0deg, #000, transparent 70%); mask-image: linear-gradient(0deg, #000, transparent 70%); }
.footer-blur { object-fit: fill; }
.footer p {
  position: absolute;
  right: calc(1662 * var(--u));
  top: 50%;
  transform: translateY(-50%);
  font-size: max(10px, calc(15 * var(--t)));
  letter-spacing: calc(1.5 * var(--t));
  text-transform: uppercase;
  white-space: nowrap;
}
.footer p a { margin-left: calc(14 * var(--u)); }
.footer p a:hover { color: var(--orange); }
.footer__icons { position: absolute; left: calc(943 * var(--u)); top: 50%; width: calc(177 * var(--u)); height: calc(30 * var(--u)); overflow: visible; fill: var(--ink); transform: translateY(-50%); }
.footer__slot > g { visibility: hidden; }
.footer__slot > g.is-on { visibility: visible; }

/* Loading screen ---------------------------------------------------------- */
.loader { display: none; }
.js .loader {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}
.loader__icons { position: relative; width: 120px; height: 91px; }
.loader__icons svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--ink); visibility: hidden; }
.loader__icons svg.is-on { visibility: visible; }
.js.is-loaded .loader { transform: translateY(-100%); }
html.js:not(.is-loaded) { overflow: hidden; }
/* The landing waits under the loading screen and rises with it; the hero plays once it is uncovered. */
.js:not(.is-ready) .stage { transform: translateY(14vh); }
.js.is-ready .stage { animation: stage-in 1.3s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes stage-in { from { transform: translateY(14vh); } }
.js:not(.is-ready) :is(.hero-title span, .hero-copy, .tag, .hero-script, .cta:first-of-type, .hero-bone) { animation-play-state: paused; }

/* Top blur: the main site's frosted strip under the menu, reaching just past the header (above the page, under the menu). */
.top-blur {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: max(90px, calc(150 * var(--u)));
  z-index: 39;
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  /* Progressive frosted glass: full blur at the top, none at the bottom edge */
  mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 100%);
  /* Slight tint of the page bg so content dissolves rather than just blurs */
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.55), rgba(5, 5, 5, 0));
}
@media (max-width: 1023px) {
  .top-blur {
    height: calc(110 * var(--u));
    z-index: 59;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(11, 11, 11, 0.68), rgba(11, 11, 11, 0));
  }
}

/* Cursor light: a soft 200px glow around the mouse, lighter where it passes but never bright. */
.cursor-light {
  position: fixed;
  z-index: 150;
  left: 0;
  top: 0;
  width: 400px;
  height: 400px;
  margin: -200px 0 0 -200px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.012) 75%, rgba(255, 255, 255, 0));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
  will-change: transform;
}
.cursor-light.is-on { opacity: 1; }

/* Noise ------------------------------------------------------------------ */
/* Figma "Noise pattern": the texture tile with its mirrored copies at 20%, kept 1:1 (1280 × 685.33 px) at every width.
   Its light specks are stored as transparency, so it lightens like "screen" and never dims the photos. */
.noise {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: url('assets/noise.webp') 0 0 / 1280px 685.333px repeat;
  pointer-events: none;
}

/* Entrance --------------------------------------------------------------- */
.js .hero-title span, .js .hero-copy, .js .tag, .js .hero-script, .js .cta:first-of-type { animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.js .hero-title span:nth-child(2) { animation-delay: 0.1s; }
.js .hero-script { animation-name: rise-script; animation-delay: 0.35s; }
.js .hero-bone { animation: bone-in 1.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes rise { from { opacity: 0; translate: 0 30px; } }
@keyframes rise-script { from { opacity: 0; translate: -20px 10px; } }
@keyframes bone-in { from { opacity: 0; translate: 40px 0; } }
.js .reveal { opacity: 0; translate: 0 30px; transition: opacity 0.9s, translate 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* Script lines (Allison) are written by hand: each line is the font's own outlines (shaped with its kerning),
   and every contour is drawn in turn, left to right, by a wide stroke clipped to the letters. */
.script__svg { display: inline-block; vertical-align: top; height: 1.4em; overflow: visible; }
.script__ink path { fill: none; stroke: currentColor; stroke-width: 130; stroke-linecap: butt; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.js .script .script__ink path { stroke-dashoffset: 1; }
.js .script.is-written .script__ink path { stroke-dashoffset: 0; transition: stroke-dashoffset var(--t) cubic-bezier(0.45, 0.05, 0.55, 0.95) var(--d); }

/* Side lights flicker like a faulty lamp; each on its own rhythm. */
.light { animation: flicker 5.3s linear infinite; }
.light--left { animation-duration: 7.1s; animation-delay: -2.4s; }
/* Inside .lower already, so it rides the lift with the block; it sits over the boy to light him. */
.light--foot { z-index: 33; translate: none; animation-duration: 6.2s; animation-delay: -1.1s; }
/* Half as bright as the side lights: filter opacity stacks with the flicker, which animates opacity. */
.light--foot { filter: opacity(0.5); }
@keyframes flicker {
  0%, 100% { opacity: 1; }
  2% { opacity: 0.25; }
  3% { opacity: 0.95; }
  5% { opacity: 0.15; }
  7% { opacity: 1; }
  38% { opacity: 1; }
  39% { opacity: 0.4; }
  40.5% { opacity: 1; }
  64% { opacity: 0.925; }
  65% { opacity: 0.075; }
  66% { opacity: 0.8; }
  67% { opacity: 0.125; }
  69% { opacity: 1; }
  86% { opacity: 1; }
  87% { opacity: 0.55; }
  88% { opacity: 1; }
}

/* Scroll and cursor parallax are applied from main.js. */
.astro, .astro-2, .smoke, .cap-guy, .bone-rope { will-change: transform; }
.strip__row { will-change: transform; }

/* Phones: the MOB frame (402 wide), scaled to the screen width. ------------------------------------------
   Blocks with --mx/--my/--mw/--mh sit at their MOB coordinates; .a blocks without them are desktop-only.
   No parallax and no cursor light here; the lights keep flickering. */
.m-only, .m-br { display: none; }
.flip-y { transform: scaleY(-1); }
@media (max-width: 1023px) {
  :root { --u: min(calc(100vw / 402), 1.6px); --t: var(--u); }
  .stage { width: calc(402 * var(--u)); height: calc(8382 * var(--u)); }
  .a {
    left: calc(var(--mx) * var(--u));
    top: calc(var(--my) * var(--u));
    width: calc(var(--mw) * var(--u));
    height: calc(var(--mh) * var(--u));
  }
  .a:not([style*="--mx"]):not(.header):not(.socials), .bone-rope, .cursor-light, .tag { display: none; }
  .m-only { display: block; }
  .m-br { display: inline; }
  /* One stacking order for the whole frame, as in the MOB layer list. */
  .lower { transform: none; z-index: auto; }
  .m-bg { z-index: 1; }
  .m-bg + .m-bg { z-index: 2; }
  .m-tile { z-index: 3; }
  .hero-title { z-index: 4; }
  .hero-script { z-index: 5; }
  .hero-bone { z-index: 6; }
  .m-light--hero { z-index: 7; }
  .hero-copy, .cta { z-index: 8; }
  .m-fade { z-index: 9; background: linear-gradient(0deg, #040404, rgba(4, 4, 4, 0)); }
  .hello-title, .hello-title + .copy { z-index: 10; }
  .m-lore { z-index: 11; }
  .poster { z-index: 12; }
  .m-glow { z-index: 13; mix-blend-mode: screen; }
  .m-crowd { z-index: 14; }
  .m-light--crowd { z-index: 15; }
  .crowd-badge { z-index: 16; }
  .slate { z-index: 17; }
  .title-xl, .secure, .card, .skull, .story-script, .story-title, .designs-title, .designs-copy, .sea-card, .moon, .stats { z-index: 18; }
  .astro, .astro-2 { z-index: 19; }
  .m-light--stat { z-index: 20; }
  .smoke { z-index: 21; filter: blur(calc(12 * var(--u))); }
  .fade-down { z-index: 22; }
  .supply-title, .supply-title + .copy { z-index: 23; }
  .join-bg, .join-bg + .fade-top { z-index: 1; }
  /* The fog layers above it are screen-blended, so its lower edge fades out on its own. */
  .join-bg { -webkit-mask-image: linear-gradient(#000 80%, transparent 97%); mask-image: linear-gradient(#000 80%, transparent 97%); }
  .strip { z-index: 2; }
  .why, .culture, .why-sub { z-index: 24; }
  .m-rope, .m-bone { z-index: 25; }
  .lead, .lead + .copy, .cta--wide { z-index: 26; }
  .links { z-index: 27; }
  .tv { z-index: 28; }
  .join-title, .fight { z-index: 29; }
  .pug { z-index: 30; }
  .m-fog { z-index: 32; mix-blend-mode: screen; pointer-events: none; }
  .m-fog--low { z-index: 31; }
  .cap-guy { z-index: 33; }
  .footer { z-index: 34; }

  /* Header: fixed at the top; the burger opens the menu over the page. */
  .header {
    position: fixed;
    z-index: 60;
    left: calc(50% - 185 * var(--u));
    top: calc(20 * var(--u));
    width: calc(370 * var(--u));
    height: calc(60 * var(--u));
    overflow: hidden;
    transition: height 0.55s cubic-bezier(0.65, 0, 0.35, 1), background-color 0.4s;
  }
  .header__logo { left: calc(20 * var(--u)); top: calc(20 * var(--u)); width: calc(116 * var(--u)); transform: none; }
  .burger { display: grid; align-content: space-between; position: absolute; right: calc(8 * var(--u)); top: calc(11.5 * var(--u)); width: calc(40 * var(--u)); height: calc(37 * var(--u)); padding: calc(12 * var(--u)) calc(12 * var(--u)); }
  .burger span { width: calc(16 * var(--u)); height: 1px; background: #fff; transition: transform 0.3s, opacity 0.3s; }
  .header__nav {
    left: calc(20 * var(--u));
    top: calc(84 * var(--u));
    width: auto;
    flex-direction: column;
    justify-content: flex-start;
    gap: calc(6 * var(--u));
    font: 400 calc(40 * var(--u)) / calc(48 * var(--u)) 'Anton', Impact, sans-serif;
    letter-spacing: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s 0.3s;
  }
  .header.is-open { height: calc(390 * var(--u)); background-color: rgba(4, 4, 4, 0.82); }
  .header.is-open .header__nav { opacity: 1; visibility: visible; transition: opacity 0.4s 0.15s; }
  .header.is-open .burger span:nth-child(1) { transform: translateY(calc(6 * var(--u))) rotate(45deg); }
  .header.is-open .burger span:nth-child(2) { opacity: 0; }
  .header.is-open .burger span:nth-child(3) { transform: translateY(calc(-6 * var(--u))) rotate(-45deg); }
  /* The socials sit in the open menu, under the links. */
  .socials {
    display: flex;
    position: fixed;
    z-index: 61;
    left: calc(50% - 165 * var(--u));
    top: calc(330 * var(--u));
    width: auto;
    height: calc(56 * var(--u));
    gap: calc(10 * var(--u));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s 0.3s;
  }
  .header.is-open ~ .socials { opacity: 1; visibility: visible; transition: opacity 0.4s 0.25s; }
  .socials a, .socials a:hover, .socials a:focus-visible { width: calc(56 * var(--u)); height: calc(56 * var(--u)); justify-content: center; }
  .socials img { width: calc(26 * var(--u)); height: calc(26 * var(--u)); margin: 0; }
  .socials span { display: none; }

  /* Type */
  .title-xl { font-size: calc(64 * var(--u)); line-height: calc(70 * var(--u)); }
  .copy { font-size: calc(13 * var(--u)); letter-spacing: calc(1.3 * var(--u)); }
  .lead { font-size: calc(18 * var(--u)); }

  /* Hero */
  .hero-title { font-size: calc(64 * var(--u)); line-height: calc(70 * var(--u)); text-align: center; }
  .hero-title span { margin: 0 auto; background: none; color: var(--ink); }
  .hero-script { font-size: calc(96 * var(--u)); }
  .hero-bone { object-position: 50% 50%; }
  .hero-copy { line-height: 1.5; }
  .m-light { opacity: 0.4; pointer-events: none; }
  .m-light img { width: 100%; height: 100%; object-fit: fill; }
  .m-light--hero img { transform: rotate(-12.31deg) scaleX(-1); }
  .m-light--crowd img { transform: scaleX(-1); }
  .m-light--crowd img, .m-light--stat img { animation-duration: 6.2s; animation-delay: -3.1s; }

  /* Hello */
  .poster { transform: rotate(-1.22deg); }
  .m-lore { overflow: hidden; }
  .m-lore p {
    position: absolute;
    left: calc(-6.02 * var(--u));
    top: calc(-9.03 * var(--u));
    width: calc(379.79 * var(--u));
    color: var(--ink);
    font: 400 calc(33.12 * var(--u)) / calc(36.13 * var(--u)) 'Anton', Impact, sans-serif;
    text-align: justify;
    text-transform: uppercase;
    opacity: 0.1;
  }

  /* Collection */
  .card img { inset: calc(9.6 * var(--u)); width: calc(100% - 19.2 * var(--u)); height: calc(100% - 19.2 * var(--u)); }
  .card--blue img { inset: calc(11.4 * var(--u)) calc(12 * var(--u)); width: calc(100% - 24 * var(--u)); height: calc(100% - 22.8 * var(--u)); }
  .card--red { border-width: 0.5px; }
  .secure { font-size: calc(13 * var(--u)); letter-spacing: calc(1.3 * var(--u)); }
  .story-script { font-size: calc(94 * var(--u)); }
  .story-title { font-size: calc(40 * var(--u)); line-height: calc(42 * var(--u)); }
  .designs-title, .supply-title { font-family: 'Anton', Impact, sans-serif; font-size: calc(48 * var(--u)); line-height: calc(55 * var(--u)); }
  .sea-card { background: #d66222; line-height: calc(20 * var(--u)); }
  .sea-card span { left: calc(15 * var(--u)); top: 50%; transform: translateY(-50%); }
  .sea-card span br:first-child { display: none; }
  .sea-card img { top: 50%; right: calc(27 * var(--u)); width: calc(30 * var(--u)); height: calc(30 * var(--u)); margin-top: calc(-15 * var(--u)); }

  /* Statistic */
  .moon { font-size: calc(80 * var(--u)); }
  .stats { gap: calc(10 * var(--u)); padding: calc(28 * var(--u)) calc(8 * var(--u)); }
  .stats dd { font-size: calc(48 * var(--u)); line-height: calc(96 * var(--u)); margin-bottom: calc(-15 * var(--u)); }
  .stats small { font-size: calc(32 * var(--u)); }
  .stats dt { margin-top: 0; }
  .fade-down { background: linear-gradient(180deg, rgba(4, 4, 4, 0), #040404); }

  /* Why own */
  .why, .why-sub { font-size: calc(41 * var(--u)); line-height: calc(55 * var(--u)); }
  .strip__row > * { width: calc(98 * var(--u)); height: calc(98 * var(--u)); }
  .m-rope { object-fit: cover; object-position: 0 50%; transform: rotate(var(--r)); }
  .m-rope--b { transform: rotate(var(--r)) scaleY(-1); }
  .m-bone { object-fit: contain; transform: rotate(-21.65deg); }
  .cta--wide { padding-left: calc(30 * var(--u)); background-image: url('assets/btn-shape.svg'); }

  /* Join us */
  .join-title { font-size: calc(48 * var(--u)); line-height: calc(50 * var(--u)); }
  .join-title span:first-child { font-size: calc(64 * var(--u)); line-height: calc(88 * var(--u)); }
  .join-title__gap { height: calc(88 * var(--u)); }
  .fight { font-size: calc(116 * var(--u)); pointer-events: none; }
  .pug--mirror { opacity: 0.3; }
  .footer { border-top: 1px solid rgba(255, 255, 255, 0.3); }
  .footer p { left: 0; right: 0; top: calc(75 * var(--u)); transform: none; text-align: center; font-size: calc(15 * var(--u)); letter-spacing: calc(1.5 * var(--u)); }
  .footer p a { margin-left: calc(14 * var(--u)); }
  .footer__icons { left: calc(111 * var(--u)); top: calc(156 * var(--u)); transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
  .js .script .script__ink path { stroke-dashoffset: 0; }
}

/* WD Awards nominee badge: a white tab on the right edge, 50px under the menu; on hover it slides out and back. */
@font-face {
  font-family: 'WD Oswald';
  src: url('assets/fonts/wd-oswald.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

.wd-badge {
  position: fixed;
  right: 0;
  /* The menu bar ends 120 frame px from the top (80 on phones). */
  top: calc(120 * var(--u) + 50px);
  /* Above the page and its lights, under the menu, the loading screen and the grain. */
  z-index: 55;
  display: flex;
  width: 220px;
  height: 150px;
  color: #59394a;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  /* Only the 70px tab shows until hover; the text panel waits off the right edge. */
  transform: translateX(150px);
  /* The same gentle ease both ways: it slides out on hover and glides back when the cursor leaves. */
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Mouse: open on hover. Touch screens open and close it with taps instead (the site script adds is-open),
   so a sticky touch "hover" never keeps it out. */
@media (hover: hover) {
  .wd-badge:hover {
    transform: none;
  }
}

.wd-badge:focus-visible,
.wd-badge.is-open {
  transform: none;
}

.wd-badge:focus-visible {
  outline: 2px solid #59394a;
  outline-offset: -4px;
}

.wd-badge__tab {
  flex: 0 0 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 14px;
}

.wd-badge__logo {
  display: block;
  width: 38px;
  height: auto;
  fill: currentColor;
}

.wd-badge__vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 600 17px/1 'WD Oswald', 'Oswald', 'Arial Narrow', sans-serif;
  letter-spacing: 0.14em;
}

.wd-badge__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 0 16px 0 6px;
}

.wd-badge__title {
  font: 600 29px/0.98 'WD Oswald', 'Oswald', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
}

.wd-badge__title span {
  display: block;
}

.wd-badge__date {
  font: 600 11px/1 'WD Oswald', 'Oswald', 'Arial Narrow', sans-serif;
  letter-spacing: 0.06em;
}

@media (max-width: 1023px) {
  /* Phones: 30% smaller, still pinned to the right edge under the menu. */
  .wd-badge {
    top: calc(80 * var(--u) + 50px);
    transform-origin: 100% 0;
    scale: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wd-badge {
    transition: none;
  }
}
