/* Shiftly. Poster colour-blocking, one giant variable-width face, coins that pile up. */
:root {
  --red: #e5001c;
  --red-hi: #ff4a5e;
  --red-dk: #7a0010;
  --ink: #0b0b0b;
  --white: #ffffff;
  --grey: #bdbdbd;

  --display: "Anybody", Impact, "Arial Narrow", sans-serif;
  --body: "Red Hat Text", system-ui, "Helvetica Neue", Arial, sans-serif;

  --gut: clamp(16px, 3.2vw, 44px);
  --hd: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bg: var(--red);
  --fg: var(--white);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
html, body { margin: 0; overflow-x: clip; }
body { min-height: 100vh; background: var(--ink); color: var(--white); font: 500 18px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.disp { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.01em; }
.wide { font-stretch: 150%; }
.slim { font-stretch: 50%; }

/* ───────── buttons: flat blocks ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 14px; height: 58px; padding: 0 26px; border: 3px solid currentColor; border-radius: 0;
  background: transparent; color: inherit; cursor: pointer; white-space: nowrap;
  font: 800 15px/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .03em;
  transition: background-color .15s, color .15s, transform .15s var(--ease);
}
.btn::after { content: "→"; font-stretch: 100%; transition: transform .2s var(--ease); }
.btn:hover::after { transform: translateX(5px); }
.btn:hover { background: currentColor; }
.btn:hover > span, .btn:hover { color: var(--bg); }
.btn--solid { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--solid:hover { background: transparent; color: var(--white); }
.btn--solid:hover > span { color: var(--white); }
.btn--plain::after { content: none; }
.btn--main { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--card { }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ───────── header: two corners and a big menu ───────── */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; justify-content: flex-end; height: var(--hd); padding: 0 var(--gut); color: #fff; pointer-events: none; }
.hd > * { pointer-events: auto; }
/* the logo lives on its own black plate so its red pill is never colour-inverted by the header blend */
.brand { position: fixed; left: var(--gut); top: 14px; z-index: 61; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 10px; border-radius: 10px; background: #0b0b0b; color: #fff; font: 900 20px/1 var(--display); font-stretch: 110%; text-transform: uppercase; letter-spacing: -.02em; transition: transform .2s var(--ease); }
.brand:hover { transform: translateY(-1px); }
.brand svg { width: 30px; height: 30px; flex: none; }
.hd__right { display: flex; align-items: center; gap: 22px; height: 44px; padding: 0 20px; border-radius: 10px; background: var(--ink); color: var(--white); }
.hd__link, .hd__menu { padding: 8px 0; border: 0; background: none; font: 800 15px/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.hd__link:hover, .hd__menu:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

.menu { position: fixed; inset: 0; z-index: 55; display: grid; align-content: center; gap: 12px; padding: calc(var(--hd) + 16px) var(--gut) 40px; background: var(--ink); color: var(--white); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .55s var(--ease), visibility 0s .55s; }
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .55s var(--ease); }
.menu a { display: block; width: max-content; max-width: 100%; font: 900 clamp(44px, 11vw, 150px)/.95 var(--display); font-stretch: 150%; text-transform: uppercase; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 2px var(--white); transition: color .15s, -webkit-text-stroke-color .15s, transform .25s var(--ease); }
.menu a:hover, .menu a[aria-current="page"] { color: var(--red-hi); -webkit-text-stroke-color: var(--red-hi); transform: translateX(16px); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 28px; }
.menu__foot .btn { color: var(--white); }

/* ───────── hero: a pile of coins on the headline ───────── */
.hero { --bg: var(--red); --fg: var(--white); position: relative; display: flex; flex-direction: column; min-height: 100svh; background: var(--red); color: var(--white); overflow: hidden; }
.hero__top { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 48px; padding: calc(var(--hd) + 20px) var(--gut) 0; pointer-events: none; }
.hero__top > * { pointer-events: auto; }
.hero__p { max-width: 31ch; margin: 0; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.3; font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ───────── cycle ───────── */
.cyc { --bg: var(--white); --fg: var(--ink); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--white); color: var(--ink); }
.cyc__side { position: relative; padding: clamp(64px, 9vw, 120px) var(--gut); }
.cyc__side > div { position: sticky; top: calc(var(--hd) + 20px); }
.cyc__side h2 { margin: 0; font: 900 clamp(30px, 3.5vw, 78px)/.92 var(--display); font-stretch: 150%; text-transform: uppercase; letter-spacing: -.03em; }
.cyc__side p { max-width: 30ch; margin: 28px 0 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; line-height: 1.3; }
.cyc__list { margin: 0; padding: 0; list-style: none; border-left: 3px solid var(--ink); }
.cyc__list li { display: grid; grid-template-columns: clamp(80px, 12vw, 190px) 1fr; gap: 0 clamp(16px, 3vw, 40px); align-items: start; padding: clamp(28px, 4vw, 56px) var(--gut) clamp(28px, 4vw, 56px) clamp(16px, 3vw, 40px); border-bottom: 3px solid var(--ink); transition: background-color .2s, color .2s; }
.cyc__list li:first-child { border-top: 0; }
.cyc__list li:last-child { border-bottom: 0; }
.cyc__list li:hover { background: var(--red); color: var(--white); }
.cyc__n { font: 900 clamp(80px, 13vw, 210px)/.8 var(--display); font-stretch: 50%; }
.cyc__list h3 { margin: 0 0 12px; font: 900 clamp(34px, 5vw, 76px)/.9 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; }
.cyc__list p { max-width: 34ch; margin: 0; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; }

/* ───────── jobs: four colour strips ───────── */
.jobs { background: var(--ink); color: var(--white); }
.jobs__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; padding: clamp(64px, 9vw, 120px) var(--gut) clamp(32px, 4vw, 56px); }
.jobs__head h2 { margin: 0; font: 900 clamp(52px, 9vw, 150px)/.86 var(--display); font-stretch: 150%; text-transform: uppercase; letter-spacing: -.03em; }
.jobs__head h2 span { color: var(--red-hi); }
.jobs__head p { max-width: 34ch; margin: 0; font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; color: rgba(246, 244, 255, .8); }
.strips { display: flex; height: min(82vh, 780px); min-height: 540px; border-block: 3px solid var(--ink); }
.strip { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: var(--bg); color: var(--fg); border-right: 3px solid var(--ink); transition: flex-grow .65s var(--ease), height .5s var(--ease); }
.strip:last-child { border-right: 0; }
.strip.is-on { flex-grow: 7; }
.strip__tab { all: unset; box-sizing: border-box; position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 22px 20px; cursor: pointer; transition: opacity .3s; }
.strip.is-on .strip__tab { opacity: 0; pointer-events: none; }
.strip__k { font: 800 16px/1 var(--display); font-stretch: 125%; letter-spacing: .04em; }
.strip__v { writing-mode: vertical-rl; transform: rotate(180deg); font: 900 clamp(44px, 6.4vw, 104px)/.9 var(--display); font-stretch: 150%; text-transform: uppercase; letter-spacing: -.02em; }
.strip__body { position: absolute; left: 0; top: 0; bottom: 0; width: min(560px, 50%); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 26px clamp(18px, 2.4vw, 36px) 30px; opacity: 0; transform: translateX(-16px); transition: opacity .35s var(--ease), transform .5s var(--ease); pointer-events: none; z-index: 2; }
.strip.is-on .strip__body { opacity: 1; transform: none; transition-delay: .22s; pointer-events: auto; }
.strip__name { margin: 0; font: 900 clamp(46px, 6.4vw, 108px)/.86 var(--display); font-stretch: 150%; text-transform: uppercase; letter-spacing: -.03em; }
.strip__txt { margin: 16px 0 0; max-width: 34ch; font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; line-height: 1.38; }
.strip__facts { display: grid; gap: 0; margin: 0; border-top: 3px solid currentColor; }
.strip__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 2px solid currentColor; font-size: 15px; }
.strip__facts dt { font: 800 12px/1.6 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.strip__facts dd { margin: 0; font-weight: 700; text-align: right; }
.strip__art { position: absolute; right: 0; top: 0; bottom: 0; width: 50%; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .4s .25s; }
.strip.is-on .strip__art { opacity: 1; }
/* art: deepen */
.art-deepen svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 70%; animation: wave 7s linear infinite; }
.art-deepen svg:nth-child(2) { height: 55%; animation-duration: 11s; animation-direction: reverse; }
.art-deepen svg:nth-child(3) { height: 40%; animation-duration: 15s; }
@keyframes wave { to { transform: translateX(-50%); } }
/* art: burn */
.art-burn { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 4%; }
.art-burn i { flex: 1; margin: 0 -3%; background: var(--fg); clip-path: polygon(50% 0, 100% 100%, 0 100%); transform-origin: bottom; animation: flame 1.6s ease-in-out infinite; }
.art-burn i:nth-child(odd) { background: var(--ac, #e5001c); }
@keyframes flame { 0%, 100% { transform: scaleY(.7); } 50% { transform: scaleY(1.05); } }
/* art: stake */
.art-stake { display: flex; align-items: flex-end; gap: 4%; padding: 0 6%; }
.art-stake i { flex: 1; background: var(--fg); height: calc(var(--h) * 1%); transform-origin: bottom; animation: climb 3.2s var(--ease) infinite; animation-delay: calc(var(--n) * 120ms); }
@keyframes climb { 0% { transform: scaleY(.08); } 45%, 80% { transform: scaleY(1); } 100% { transform: scaleY(.08); } }
/* art: share */
.art-share { display: grid; grid-template-columns: repeat(7, 1fr); align-content: center; gap: 4px; padding: 6%; }
.art-share i { aspect-ratio: 1; border-radius: 50%; background: var(--fg); animation: pulse 2.4s ease-in-out infinite; animation-delay: calc(var(--d) * 90ms); }
@keyframes pulse { 0%, 100% { transform: scale(.25); } 50% { transform: scale(.95); } }

/* ───────── departures board ───────── */
.board { --bg: var(--ink); --fg: var(--white); background: var(--ink); color: var(--white); padding: clamp(64px, 9vw, 120px) var(--gut); }
.board__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; margin-bottom: clamp(32px, 4vw, 56px); }
.board__head h2 { margin: 0; font: 900 clamp(52px, 9vw, 150px)/.86 var(--display); font-stretch: 150%; text-transform: uppercase; letter-spacing: -.03em; }
.board__head p { max-width: 34ch; margin: 0; color: rgba(246, 244, 255, .8); font-size: clamp(17px, 1.5vw, 21px); }
.board__rows { display: grid; gap: 6px; }
.brow { display: grid; grid-template-columns: 1.1fr 1.4fr 2.2fr 1.6fr; gap: clamp(14px, 3.4vw, 56px); }
.brow--h { font: 800 12px/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .08em; color: rgba(246, 244, 255, .55); padding-bottom: 6px; }
.bcell { display: flex; gap: 3px; min-width: 0; }
.fl { display: grid; place-items: center; flex: 1 1 0; min-width: 0; max-width: 1.1em; height: 1.35em; background: #1d1d1d; border-radius: 4px; font: 800 clamp(22px, 4.6vw, 72px)/1 var(--display); font-stretch: 60%; text-transform: uppercase; color: var(--white); position: relative; overflow: hidden; }
.fl::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--ink); }
.fl.is-sp { background: transparent; }
.fl.is-sp::after { display: none; }
.brow.is-retry .fl { color: var(--red-hi); }
.brow.is-idle .fl { color: rgba(246, 244, 255, .4); }
.board__note { margin: 20px 0 0; font: 700 12px/1.3 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .06em; color: rgba(246, 244, 255, .5); }

/* ───────── terms ───────── */
.terms { --bg: var(--white); --fg: var(--ink); background: var(--white); color: var(--ink); }
.term { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; padding: clamp(28px, 4vw, 56px) var(--gut); border-bottom: 3px solid var(--ink); }
.term:first-child { border-top: 0; }
.term h2 { margin: 0; font: 900 clamp(44px, 8.4vw, 150px)/.86 var(--display); font-stretch: 150%; text-transform: uppercase; letter-spacing: -.04em; }
.term:nth-child(2) h2 { color: var(--red); }
.term:nth-child(3) h2 { color: var(--red-dk); }
.term__t { display: grid; gap: 14px; padding-bottom: 6px; }
.term__t p { margin: 0; max-width: 40ch; font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; }
.term__t ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 16px; font-weight: 500; }
.term__t li { padding-left: 22px; position: relative; }
.term__t li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--ink); }

/* ───────── finale ───────── */
.mega { --bg: var(--red); display: grid; align-content: space-between; min-height: 82svh; padding: clamp(24px, 4vw, 56px) var(--gut); background: var(--red); color: var(--white); transition: background-color .25s, color .25s; }
.mega:hover { background: var(--ink); color: var(--white); }
.mega span { display: block; font: 900 clamp(44px, 10vw, 190px)/.84 var(--display); font-stretch: 150%; text-transform: uppercase; letter-spacing: -.045em; }
.mega span:nth-child(2) { font-stretch: 50%; font-size: clamp(80px, 21vw, 380px); letter-spacing: .015em; }
.mega b { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 3px solid currentColor; font: 800 clamp(16px, 2vw, 26px)/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .03em; }
.mega b i { font-style: normal; display: inline-block; transition: transform .3s var(--ease); font-size: 1.6em; }
.mega:hover b i { transform: translateX(14px); }

.ft { position: relative; z-index: 2; background: var(--ink); color: var(--white); }
.ft__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 40px; padding: 26px var(--gut); font: 700 13px/1.4 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .05em; color: rgba(246, 244, 255, .7); }
.ft__bar p { margin: 0; }
.ft a { color: var(--white); }
.ft a:hover { color: var(--red-hi); }

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 16px 22px; background: var(--ink); color: var(--white); border-left: 6px solid var(--red); font: 700 15px/1.3 var(--body); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .art-deepen svg, .art-burn i, .art-stake i, .art-share i { animation: none; }
}

@media (max-width: 1100px) {
  .cyc { grid-template-columns: 1fr; }
  .cyc__side > div { position: static; }
}
@media (max-width: 900px) {
  .cyc__list { border-left: 0; border-top: 3px solid var(--ink); }
  .cyc__list li { padding-left: var(--gut); }
  .term { grid-template-columns: 1fr; }
  .strips { flex-direction: column; height: auto; min-height: 0; }
  .strip { flex: none; height: 92px; border-right: 0; border-bottom: 3px solid var(--ink); }
  .strip.is-on { height: 520px; flex-grow: 0; }
  .strip__tab { flex-direction: row; align-items: center; padding: 0 var(--gut); }
  .strip__v { writing-mode: horizontal-tb; transform: none; font-size: 44px; }
  .strip__body { width: 100%; }
  .strip__art { width: 100%; opacity: 0; top: auto; height: 38%; }
  .strip.is-on .strip__art { opacity: .9; }
  .brow { grid-template-columns: 1fr 1.2fr 2fr 1.6fr; }
}
@media (max-width: 560px) {
  .hd__link { display: none; }
  .hero__top { flex-direction: column; }
  .fl { height: 1.25em; }
  .brow--h span:nth-child(2), .brow > .bcell:nth-child(2) { display: none; }
  .brow { grid-template-columns: 1fr 2fr 1.6fr; }
}

/* ───────── intro: the two pills slide in, the short one shifts, then the red pill floods the screen ───────── */
.intro { display: none; }
html.is-intro { overflow: hidden; }
.is-intro .intro { display: block; position: fixed; inset: 0; z-index: 100; background: var(--ink); cursor: pointer; }
.intro__logo { position: absolute; left: 50%; top: 50%; width: min(56vw, 400px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.intro__long, .intro__short { position: absolute; height: 24%; border-radius: 999px; }
.intro__long { left: 8%; top: 24%; width: 84%; background: #fff; }
.intro__short { left: 40%; top: 54%; width: 52%; background: var(--red); }
.intro__word { position: absolute; left: 0; right: 0; top: calc(50% + min(28vw, 200px) + 10px); margin: 0; text-align: center; font: 900 clamp(18px, 3vw, 28px)/1 var(--display); font-stretch: 125%; letter-spacing: .02em; text-transform: uppercase; color: #fff; animation: introFade .5s .55s both; }
.intro__wipe { display: none; position: fixed; border-radius: 999px; background: var(--red); will-change: transform; }
@keyframes introFade { from { opacity: 0; transform: translateY(8px); } }
.is-intro .hero__top, .is-intro .hd, .is-intro .brand { opacity: 0; }
/* the hand-over: the red settles, then the headline lifts into place line by line, then the rest fades in */
.intro-reveal .hero__top { animation: introRise 1.1s .35s var(--ease) both; }
.intro-reveal .hd, .intro-reveal .brand { animation: introFade 1s .9s both; }
@keyframes introRise { from { opacity: 0; transform: translateY(26px); } }

/* ───────── hero headline: two lines fitted edge to edge by main.js ───────── */
.hero__h { position: relative; z-index: 1; margin: auto 0 0; padding: 0 var(--margin, 24px) clamp(8px, 1.6vw, 24px); }
.hl { display: block; padding: .06em 0 .02em; overflow: hidden; font: 900 100px/.86 var(--display); text-transform: uppercase; letter-spacing: 0; white-space: nowrap; color: var(--white); }
.hl:nth-child(1) { font-stretch: 150%; }
.hl:nth-child(2) { font-stretch: 50%; margin-top: .04em; }
.hl > span { display: inline-block; transform: translateY(112%); transition: transform 1.3s var(--ease); }
.hl:nth-child(2) > span { transition-delay: .16s; }
.hero-in .hl > span { transform: none; }
html.reduced .hl > span { transition: none; }
