/* PT Entertainment - entertainment.techatpt.com
   Cybercard design: red / black / paper, folder-tab cards, chips, barcodes,
   pixel microtext. Fonts: Tektur (display), Chakra Petch (text),
   Share Tech Mono (codes), Silkscreen (pixel labels). */

:root {
  --red: #e3241e;
  --red-hot: #ff3b30;
  --red-deep: #a8150f;
  --ink: #0b0b0b;
  --card: #141414;
  --card-2: #1b1b1b;
  --line: #262626;
  --line-2: #333;
  --mute: #8d8d8d;
  --text: #d9d9d9;
  --paper: #ededed;
  --paper-2: #f6f6f6;
  --white: #fafafa;
  --display: 'Tektur', 'Arial Black', Impact, sans-serif;
  --body: 'Chakra Petch', 'Segoe UI', Arial, sans-serif;
  --mono: 'Share Tech Mono', Consolas, 'Courier New', monospace;
  --pixel: 'Silkscreen', 'Share Tech Mono', monospace;
  --max: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --tab: 36%;
  --notch: 14px;
  /* the site's own pointer: a red pixel arrow, a gloved hand over anything clickable, the hand pressed on click */
  --cur: url('/assets/px-arrow.svg') 1 1, url('/assets/px-arrow.png') 1 1, auto;
  --cur-hot: url('/assets/px-hand.svg') 11 1, url('/assets/px-hand.png') 11 1, pointer;
  --cur-down: url('/assets/px-press.svg') 11 1, url('/assets/px-press.png') 11 1, pointer;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
body::before {
  /* fade the grid so it reads as texture, not as a table */
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(11, 11, 11, 0.55), rgba(11, 11, 11, 0.92) 70%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--red); color: var(--white); padding: 8px 14px; font: 600 14px var(--mono); }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------ type */

.kicker { font: 400 13px/1.3 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); }
.h2 { font: 800 clamp(30px, 4.4vw, 54px)/1 var(--display); text-transform: uppercase; color: var(--white); letter-spacing: 0.01em; margin-top: 10px; }
.h2--xl { font-size: clamp(46px, 8vw, 104px); }
.h3 { font: 800 clamp(26px, 3vw, 38px)/1.05 var(--display); color: var(--white); margin: 10px 0 14px; }
.hl { color: var(--red-hot); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text); max-width: 620px; }
.lede a { color: var(--white); text-decoration-color: var(--red); text-underline-offset: 4px; }
.muted { color: var(--mute); font-size: 15px; }
.pixel { font: 400 11px/1.5 var(--pixel); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.pixel--ink { color: var(--ink); }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  font: 700 15px/1 var(--mono);
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-hot); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--white); }
.btn-round {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  border: 2px solid var(--paper);
  transition: transform 0.15s, background 0.15s;
}
.btn-round:hover { transform: scale(1.08); background: var(--red-deep); }
.btn-round svg { width: 20px; height: 20px; margin-left: 3px; }

.tag { font: 400 12px/1 var(--pixel); letter-spacing: 0.08em; padding: 9px 12px; text-transform: uppercase; }
.tag--outline { border: 1px solid var(--red); color: var(--red-hot); }

/* ------------------------------------------------------------ rails */

.rail { position: fixed; top: 0; bottom: 0; width: 56px; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 26px; z-index: 5; pointer-events: none; }
.rail--left { left: 0; border-right: 1px solid var(--line); }
.rail--right { right: 0; border-left: 1px solid var(--line); }
.rail__text { writing-mode: vertical-rl; transform: rotate(180deg); font: 400 11px var(--mono); letter-spacing: 0.3em; color: #555; }
.rail__text--big { font: 700 22px var(--mono); letter-spacing: 0.15em; color: transparent; -webkit-text-stroke: 1px #3a3a3a; transform: none; }
.rail__dots { display: flex; flex-direction: column; gap: 12px; pointer-events: auto; }
.rail__dots a { display: block; width: 9px; height: 9px; border: 1px solid #666; border-radius: 50%; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.rail__dots a:hover { border-color: var(--white); }
.rail__dots a.is-on { background: var(--red); border-color: var(--red); transform: scale(1.25); }
@media (min-width: 1400px) { .rail { display: flex; } }

/* ------------------------------------------------------------ nav */

.nav { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 11, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav__side { display: flex; align-items: center; gap: 26px; }
.nav__side--right { justify-content: flex-end; }
.nav__side a { font: 400 13px var(--mono); letter-spacing: 0.18em; text-decoration: none; color: #bdbdbd; transition: color 0.15s; }
.nav__side a:hover { color: var(--white); }
.nav__brand { color: var(--white) !important; }
.nav__mark { display: grid; place-items: center; width: 66px; height: 66px; background: var(--ink); border: 1px solid var(--line-2); border-radius: 50%; margin-bottom: -26px; transition: transform 0.2s; }
.nav__mark:hover { transform: rotate(-8deg) scale(1.05); }
.nav__mark img { width: 52px; height: 52px; }
.nav__cta { border: 1px solid var(--red); color: var(--red-hot) !important; padding: 8px 14px; }
.nav__cta:hover { background: var(--red); color: var(--white) !important; }
.nav__burger { display: none; justify-self: end; width: 46px; height: 46px; background: none; border: 1px solid var(--line-2); cursor: var(--cur-hot); padding: 0; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); transition: transform 0.2s, top 0.2s; }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 26px; }
.nav__burger[aria-expanded='true'] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__burger[aria-expanded='true'] span:last-child { top: 22px; transform: rotate(-45deg); }
.menu { border-top: 1px solid var(--line); padding: 10px var(--gut) 22px; display: grid; }
.menu[hidden] { display: none; }
.menu a { font: 700 22px/1 var(--display); color: var(--white); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu a:hover { color: var(--red-hot); }

@media (max-width: 900px) {
  .nav__inner { grid-template-columns: auto 1fr auto; gap: 14px; height: 62px; }
  .nav__side { display: none; }
  .nav__side:first-child { display: flex; grid-column: 2; }
  .nav__side:first-child a:not(.nav__brand) { display: none; }
  .nav__mark { grid-column: 1; grid-row: 1; margin: 0; width: 48px; height: 48px; }
  .nav__mark img { width: 38px; height: 38px; }
  .nav__burger { display: block; grid-column: 3; }
}

/* ------------------------------------------------------------ layout */

main { overflow: hidden; }
.section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gut) 0; }
.section__head { margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section__aside { max-width: 380px; color: var(--mute); font-size: 15px; }

/* corner-bracket frame (thin HUD box) */
.frame { position: relative; border: 1px solid var(--line-2); background: rgba(20, 20, 20, 0.72); }
.frame__c { position: absolute; width: 14px; height: 14px; border-color: var(--red); border-style: solid; border-width: 0; }
.frame__c--tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.frame__c--tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.frame__c--bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.frame__c--br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* ------------------------------------------------------------ cybercards */

.card {
  position: relative;
  isolation: isolate;
  padding: calc(var(--notch) + 22px) clamp(20px, 2.6vw, 34px) clamp(22px, 2.6vw, 30px);
  clip-path: polygon(0 var(--notch), calc(100% - var(--tab) - var(--notch)) var(--notch), calc(100% - var(--tab)) 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.card--dark { background: linear-gradient(160deg, #1d1d1d, var(--card) 55%); color: var(--text); }
.card--paper { background: linear-gradient(160deg, var(--paper-2), var(--paper)); color: var(--ink); }
/* the red card peeking out behind, tab on the left */
.card--stack { clip-path: none; overflow: visible; padding: 0; background: none; }
.card--stack > * { position: relative; }
.card--stack::before,
.card--stack::after { content: ''; position: absolute; z-index: -1; }
.card--stack::before {
  inset: -14px 14px 14px -14px;
  background: var(--red);
  clip-path: polygon(0 var(--notch), 8px 0, 30% 0, calc(30% + var(--notch)) var(--notch), 100% var(--notch), 100% 100%, 0 100%);
}
.card--stack::after {
  inset: 0;
  background: linear-gradient(160deg, #1f1f1f, var(--card) 55%);
  clip-path: polygon(0 var(--notch), calc(100% - var(--tab) - var(--notch)) var(--notch), calc(100% - var(--tab)) 0, 100% 0, 100% 100%, 0 100%);
}

.card__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.card__icon { width: 46px; height: 46px; color: var(--paper); --folder-line: var(--card); }
.card__icon--red { color: var(--red); }
.card__label { font: 400 11px/1.25 var(--pixel); text-align: right; color: var(--mute); letter-spacing: 0.06em; }
.card__label--red { color: var(--red); }
.card__pre { font: 700 clamp(15px, 1.6vw, 20px)/1 var(--display); letter-spacing: 0.02em; color: var(--white); }
.card__title { font: 900 clamp(34px, 4.4vw, 60px)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.01em; color: var(--white); margin: 6px 0 16px; }
.card__title--xl { font-size: clamp(48px, 6.4vw, 96px); }
.card__title--ink { color: var(--ink); }
.card__text { color: #bdbdbd; max-width: 520px; font-size: 16px; }
.card__text--ink { color: #2b2b2b; }
.card__stripe { height: 10px; margin: 6px 0 18px; background: linear-gradient(90deg, var(--red) 0 58%, transparent 58% 62%, var(--red) 62% 64%, transparent 64%), transparent; max-width: 560px; }
.card__foot { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }

.chip { width: 54px; height: 42px; color: var(--paper); --chip-line: var(--card); flex: none; }
.chip--red { color: var(--red); --chip-line: var(--paper); }
.cogs { display: flex; gap: 10px; margin-left: auto; color: var(--paper); }
.cogs svg { width: 34px; height: 34px; animation: spin 9s linear infinite; }
.cogs svg:last-child { animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* vertical "PROTOTYPE!" stamp and codes */
.vstamp { position: absolute; right: clamp(14px, 2vw, 22px); bottom: 24px; writing-mode: vertical-rl; font: 700 13px/1 var(--pixel); letter-spacing: 0.14em; color: var(--red); }
.vstamp--red { color: var(--red); }
.vstamp--inline { position: static; writing-mode: horizontal-tb; margin: -6px 0 18px; }
.vcode { position: absolute; left: 10px; top: 46%; writing-mode: vertical-rl; transform: rotate(180deg); font: 400 10px/1 var(--mono); letter-spacing: 0.18em; color: #4a4a4a; }

/* barcode, hazard stripes, red sun, pixel dust */
.barcode {
  position: absolute;
  right: 0;
  top: 22%;
  width: 26px;
  height: 46%;
  background: repeating-linear-gradient(180deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 17px);
  border-left: 6px solid var(--ink);
}
.hazard { display: block; width: 92px; height: 14px; background: repeating-linear-gradient(-55deg, var(--red) 0 7px, transparent 7px 13px); }
.hazard--wide { width: auto; height: 22px; margin-top: 28px; background: repeating-linear-gradient(-55deg, var(--ink) 0 14px, transparent 14px 24px); max-width: 360px; }
.sun { position: absolute; z-index: -1; width: clamp(240px, 32vw, 420px); aspect-ratio: 1; border-radius: 50%; background: var(--red); right: -8%; bottom: -26%; }
.sun--right { right: -6%; bottom: -40%; width: clamp(220px, 26vw, 360px); }
.dust { position: absolute; z-index: -1; width: 180px; height: 150px; right: 10%; top: 28%; background-image: url('/assets/dust-red.svg'); background-size: contain; background-repeat: no-repeat; opacity: 0.9; }

/* ------------------------------------------------------------ hero */

/* A framed console around the hero: a rounded dark frame with red corner
   brackets, a notch under the logo, slots on both sides and a status strip.
   The homepage puts the tiger artwork in it; /logic-runner puts Inky on red. */
.hero { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 28px var(--gut) 0; }
.hero__frame { position: relative; padding: 10px 10px 0; border: 1px solid var(--line-2); border-radius: 26px; background: linear-gradient(180deg, #171717, #0e0e0e); }
.hero__frame > .frame__c { width: 26px; height: 26px; z-index: 5; }
.hero__frame > .frame__c--tl { border-top-left-radius: 26px; }
.hero__frame > .frame__c--tr { border-top-right-radius: 26px; }
.hero__frame > .frame__c--bl { border-bottom-left-radius: 26px; }
.hero__frame > .frame__c--br { border-bottom-right-radius: 26px; }
.hero__notch {
  position: absolute;
  z-index: 4;
  top: -1px;
  left: 50%;
  width: 180px;
  height: 44px;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 44'%3E%3Cpath d='M0 0H180L152 43H28Z' fill='%23111'/%3E%3Cpath d='M.5 .5L28.3 43.5H151.7L179.5 .5' fill='none' stroke='%23333'/%3E%3Cpath d='M70 36H110' stroke='%23e3241e' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero__slot { position: absolute; z-index: 4; top: 40%; width: 12px; height: 84px; background: #111; border: 1px solid #333; }
.hero__slot::after { content: ''; position: absolute; left: 3px; right: 3px; top: 10px; bottom: 10px; background: repeating-linear-gradient(180deg, var(--red) 0 4px, transparent 4px 9px); }
.hero__slot--l { left: 4px; border-radius: 0 6px 6px 0; }
.hero__slot--r { right: 4px; border-radius: 6px 0 0 6px; }
.hero__status { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 18px 14px; font: 400 11px var(--mono); letter-spacing: 0.22em; color: #6a6a6a; }
.hero__bars { display: flex; gap: 5px; }
.hero__bars i { width: 18px; height: 6px; background: var(--red); }
.hero__bars i:nth-child(n + 6) { background: transparent; border: 1px solid #444; }

/* the artwork panel (homepage) */
.hero__art { position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; aspect-ratio: 1672 / 940; min-height: 520px; max-height: 760px; width: 100%; background: #4a0b08; }
.hero__img { position: absolute; z-index: -2; left: -20%; top: -9%; width: 118%; height: 118%; max-width: none; object-fit: cover; object-position: 50% 50%; animation: settle 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes settle { from { transform: scale(1.08); filter: brightness(0.55) saturate(0.7); } to { transform: none; filter: none; } }
.hero__art::after {
  /* darken the city side so the title reads; the tiger stays untouched */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 40%, rgba(12, 3, 3, 0.35) 58%, rgba(12, 3, 3, 0.72) 86%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 28%);
}
.hero__hud { position: absolute; left: 34px; top: 30px; right: 34px; display: flex; align-items: center; gap: 16px; z-index: 2; }
.hero__hud span { height: 1px; flex: 1; background: rgba(255, 255, 255, 0.28); }
.hero__hud span:first-child { flex: 0 0 120px; }
.hero__hud i { font: normal 400 11px var(--mono); letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.6); }
.hero__art .hero__copy { position: absolute; z-index: 2; right: 4%; top: 52%; transform: translateY(-50%); width: min(41%, 520px); }
.hero__kicker { display: flex; align-items: center; gap: 10px; font: 400 13px var(--mono); letter-spacing: 0.22em; color: var(--paper); }
.sq { width: 12px; height: 12px; background: var(--red); display: inline-block; flex: none; }
.hero__title { margin: 14px 0 18px; color: var(--white); text-transform: uppercase; line-height: 0.86; text-shadow: 6px 6px 0 var(--ink); }
.hero__pt { display: block; font: 900 clamp(84px, 12.5vw, 184px)/0.8 var(--display); letter-spacing: -0.02em; }
.hero__ent { position: relative; display: block; font: 800 clamp(26px, 3.7vw, 52px)/1 var(--display); letter-spacing: 0.02em; }
.hero__ent::after {
  /* glitch slice */
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--red);
  text-shadow: none;
  clip-path: inset(48% 0 38% 0);
  transform: translateX(6px);
  animation: glitch 5s steps(1) infinite;
}
@keyframes glitch {
  0%, 86%, 100% { opacity: 0; }
  87% { opacity: 1; transform: translateX(8px); clip-path: inset(30% 0 52% 0); }
  90% { opacity: 1; transform: translateX(-6px); clip-path: inset(62% 0 18% 0); }
  93% { opacity: 0; }
}
.hero__sub { font: 400 14px var(--mono); letter-spacing: 0.22em; color: #e6e6e6; }
.hero__sub b { color: var(--red-hot); }
.hero__motto { display: inline-block; margin-top: 16px; padding: 6px 12px; font: 800 clamp(16px, 1.7vw, 22px)/1.1 var(--display); letter-spacing: 0.02em; color: var(--white); background: var(--red); }
.hero__cta { display: flex; align-items: center; gap: 14px; margin-top: 26px; }

/* the red panel (/logic-runner) */
.hero__red {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: clamp(560px, 60vw, 700px);
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1), transparent 60%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 4px),
    var(--red);
}
.hero__red .hero__hud span { background: rgba(11, 11, 11, 0.4); }
.hero__red .hero__hud i { color: rgba(11, 11, 11, 0.6); }
.hero__red .hero__copy { position: relative; z-index: 2; margin-left: auto; width: min(58%, 680px); padding: clamp(80px, 9vw, 120px) 6% 230px 0; }
.hero__red .hero__kicker { color: var(--ink); }
.hero__red .sq { background: var(--ink); }
.hero__red .hero__sub { color: var(--ink); }
.hero__red .hero__sub b { color: var(--white); }
.hero__red .hero__motto { background: var(--ink); }
.hero__red .hero__ent::after { color: var(--ink); }
.hero__inky { position: absolute; left: -2%; bottom: 6%; height: 86%; width: auto; max-width: none; z-index: 1; animation: bob 2.6s ease-in-out infinite; filter: drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.14)); }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1deg); } }
.hero__skyline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(150px, 20vw, 250px); object-fit: cover; object-position: center bottom; z-index: 3; pointer-events: none; }
.hero__title--game span { display: block; font: 900 clamp(58px, 9.6vw, 140px)/0.86 var(--display); letter-spacing: -0.01em; }

@media (max-width: 900px) {
  .hero { padding-top: 18px; }
  .hero__frame { padding: 8px 8px 0; border-radius: 20px; }
  .hero__frame > .frame__c { width: 18px; height: 18px; }
  .hero__notch, .hero__slot, .hero__hud { display: none; }
  .hero__art { aspect-ratio: auto; min-height: 0; max-height: none; overflow: visible; background: none; border-radius: 0; }
  .hero__art::after { display: none; }
  .hero__img { position: relative; left: auto; top: auto; z-index: 0; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 14px; object-position: 44% 50%; }
  .hero__art .hero__copy { position: static; transform: none; width: auto; padding: 22px 10px 8px; }
  .hero__pt { font-size: clamp(76px, 24vw, 130px); }
  .hero__ent { font-size: clamp(26px, 8.8vw, 48px); }
  .hero__status { padding: 10px 10px 12px; font-size: 9.5px; letter-spacing: 0.14em; }
  .hero__bars i { width: 10px; }
  .hero__red { display: flex; flex-direction: column; min-height: 0; border-radius: 14px; }
  .hero__red .hero__copy { order: -1; width: auto; margin: 0; padding: 56px 10% 0 20px; }
  .hero__inky { position: relative; left: auto; bottom: auto; height: auto; width: 74%; margin: -10px 0 0 -4%; }
  .hero__skyline { height: 120px; }
}

/* ------------------------------------------------------------ intro */

.intro { max-width: var(--max); margin: 0 auto; padding: 46px var(--gut) 0; display: grid; grid-template-columns: 1fr 300px; gap: 26px; }
.intro__box { padding: clamp(24px, 3.4vw, 44px); }
.intro__row { display: flex; gap: 28px; align-items: flex-end; justify-content: space-between; margin-top: 18px; flex-wrap: wrap; }
.intro__side { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.hud-tile { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--mute); }
.hud-tile svg { width: 24px; height: 24px; animation: spin 12s linear infinite; }
.watch { display: flex; align-items: center; gap: 14px; font: 400 13px var(--mono); letter-spacing: 0.2em; text-decoration: none; color: var(--white); }
.watch__btn { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--red); display: grid; place-items: center; color: var(--red-hot); transition: background 0.15s; }
.watch:hover .watch__btn { background: var(--red); color: var(--white); }
.watch__btn svg { width: 16px; height: 16px; margin-left: 2px; }
.intro__stat { font: 600 16px/1.5 var(--body); color: var(--white); text-transform: uppercase; }
.intro__stat b { font-family: var(--display); color: var(--red-hot); margin-right: 6px; }
.intro__code { font: 400 11px var(--mono); letter-spacing: 0.2em; color: #555; border-top: 1px solid var(--line-2); padding-top: 12px; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } .intro__side { flex-direction: row; flex-wrap: wrap; align-items: center; } }

/* ------------------------------------------------------------ what we make */

.make { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(26px, 3vw, 40px); align-items: start; }
.make__list { display: grid; gap: 14px; }
.row-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  background: linear-gradient(90deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: border-color 0.2s, transform 0.2s;
}
.row-card:hover { border-color: var(--red); transform: translateX(4px); }
.row-card__icon { width: 40px; height: 40px; color: var(--paper); }
.row-card h3 { font: 700 18px/1.1 var(--display); color: var(--white); letter-spacing: 0.02em; }
.row-card p { font-size: 14.5px; color: var(--mute); margin-top: 4px; line-height: 1.45; }
.status { font: 400 10px/1 var(--pixel); letter-spacing: 0.08em; padding: 7px 9px; border: 1px solid #555; color: #9a9a9a; white-space: nowrap; }
.status--on { background: var(--red); border-color: var(--red); color: var(--white); }
@media (max-width: 980px) { .make { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row-card { grid-template-columns: 36px 1fr; } .row-card__icon { width: 32px; height: 32px; } .status { grid-column: 2; justify-self: start; } }

/* ------------------------------------------------------------ logic runner */

.game__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(26px, 4vw, 60px); align-items: center; }
.game__card { padding-right: clamp(54px, 6vw, 80px); }
.game__card .card__title { margin-top: 2px; }
.game__card .pixel { margin-bottom: 16px; }
.ticks { margin: 20px 0 24px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 24px; font: 500 15.5px/1.4 var(--body); color: var(--ink); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; background: var(--red); }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; background: var(--ink); color: var(--paper); opacity: 0.92; cursor: var(--cur); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.store svg { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; font: 700 15px/1.1 var(--display); letter-spacing: 0.02em; }
.store small { font: 400 9px var(--pixel); letter-spacing: 0.08em; color: var(--mute); }
.game__card .chip { position: absolute; right: clamp(48px, 5vw, 64px); top: calc(var(--notch) + 22px); }
.game__card .card__row { padding-right: 70px; }

.phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.phone {
  width: min(31%, 230px);
  flex: none;
  aspect-ratio: 750 / 1624;
  border-radius: 30px;
  padding: 8px;
  background: #050505;
  border: 2px solid #2e2e2e;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 2px #121212;
  position: relative;
  transition: transform 0.3s;
}
.phone::before { content: ''; position: absolute; top: 14px; left: 50%; width: 30%; height: 14px; transform: translateX(-50%); background: #050505; border-radius: 10px; z-index: 1; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.phone--l { transform: rotate(-8deg) translate(30px, 26px); z-index: 1; }
.phone--c { z-index: 2; width: min(36%, 270px); }
.phone--r { transform: rotate(8deg) translate(-30px, 26px); z-index: 1; }
.phones:hover .phone--l { transform: rotate(-11deg) translate(4px, 22px); }
.phones:hover .phone--r { transform: rotate(11deg) translate(-4px, 22px); }

.stats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.stat { border: 1px solid var(--line-2); background: rgba(20, 20, 20, 0.8); padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.stat b { font: 800 clamp(30px, 3vw, 42px)/1 var(--display); color: var(--white); }
.stat span { font: 400 10.5px var(--pixel); letter-spacing: 0.06em; color: var(--mute); }
.stat--red { background: var(--red); border-color: var(--red); }
.stat--red span { color: var(--ink); }

@media (max-width: 980px) {
  .game__grid { grid-template-columns: 1fr; }
  .phones { min-height: 0; padding: 20px 0 10px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .phone { border-radius: 22px; padding: 6px; }
  .phone img { border-radius: 17px; }
  .phone--l { transform: rotate(-8deg) translate(22px, 18px); }
  .phone--r { transform: rotate(8deg) translate(-22px, 18px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat--red { grid-column: span 2; }
  .game__card .chip { display: none; }
}

/* ------------------------------------------------------------ logic lab */

.lab { display: grid; grid-template-columns: 1fr 250px; gap: 22px; align-items: start; }
.lab__panel { padding: clamp(22px, 3.2vw, 40px); min-height: 520px; }
.lab__top { display: grid; grid-template-columns: auto 1fr; gap: 22px 26px; align-items: center; }
.lab__emblem { width: clamp(96px, 11vw, 132px); aspect-ratio: 1; border: 1px solid var(--line-2); background: var(--paper); display: grid; place-items: center; clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
.lab__emblem svg { width: 82%; height: 82%; }
.lab__name { font: 900 clamp(40px, 6vw, 76px)/0.95 var(--display); color: var(--red-hot); text-transform: uppercase; margin-top: 6px; }
.lab__desc { grid-column: 1 / -1; color: var(--text); max-width: 640px; }
.lab__rows { margin-top: 28px; border-top: 1px solid var(--line-2); }
.lab__row { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font: 400 14px var(--mono); letter-spacing: 0.1em; color: #a9a9a9; }
.lab__row .n { color: #5a5a5a; }
.lab__row .in { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.lab__row .in span { display: inline-flex; align-items: center; gap: 6px; }
.lab__row .out { font: 400 11px var(--pixel); padding: 6px 9px; border: 1px solid #4a4a4a; color: #8d8d8d; letter-spacing: 0.06em; }
.lab__row .out--on { background: var(--red); border-color: var(--red); color: var(--white); }
.lab__row--text { grid-template-columns: 54px 1fr; font-family: var(--body); letter-spacing: 0; font-size: 15.5px; color: var(--text); }
.sym { width: 18px; height: 18px; flex: none; }
.lab__note { margin-top: 18px; font: 400 12px/1.6 var(--mono); letter-spacing: 0.1em; color: var(--mute); }
.lab__tabs { display: grid; border: 1px solid var(--line-2); background: rgba(20, 20, 20, 0.8); }
.lab__tabs .group { font: 400 10px var(--pixel); letter-spacing: 0.1em; color: #666; padding: 14px 16px 6px; }
.lab__tab { display: flex; justify-content: space-between; align-items: center; background: none; border: 0; border-bottom: 1px solid var(--line); color: #a9a9a9; font: 400 13px var(--mono); letter-spacing: 0.18em; padding: 12px 16px; text-align: left; cursor: var(--cur-hot); transition: background 0.15s, color 0.15s; }
.lab__tab:hover { color: var(--white); background: #1e1e1e; }
.lab__tab[aria-selected='true'] { color: var(--white); background: linear-gradient(90deg, rgba(227, 36, 30, 0.28), transparent); box-shadow: inset 3px 0 0 var(--red); }
.lab__tab i { font-style: normal; color: #555; font-size: 11px; }
@media (max-width: 900px) {
  .lab { grid-template-columns: 1fr; }
  .lab__tabs { order: -1; display: flex; overflow-x: auto; scrollbar-width: none; }
  .lab__tabs::-webkit-scrollbar { display: none; }
  .lab__tabs .group { display: none; }
  .lab__tab { flex: none; border-bottom: 0; border-right: 1px solid var(--line); }
  .lab__tab i { display: none; }
  .lab__tab[aria-selected='true'] { box-shadow: inset 0 -3px 0 var(--red); }
  .lab__panel { min-height: 0; }
}
@media (max-width: 520px) { .lab__top { grid-template-columns: 1fr; } .lab__row { grid-template-columns: 40px 1fr auto; font-size: 13px; } }

/* ------------------------------------------------------------ worlds */

.worlds { margin-top: clamp(70px, 10vw, 130px); }
.worlds__band { position: relative; overflow: hidden; background: var(--red); padding: clamp(36px, 5vw, 64px) max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut))); display: grid; grid-template-columns: auto 1fr; gap: 16px 48px; align-items: center; }
.worlds__sky { position: absolute; inset: auto 0 -70px 0; width: 100%; height: 210px; object-fit: cover; opacity: 0.4; pointer-events: none; }
.worlds__title { position: relative; font: 900 clamp(40px, 7vw, 92px)/0.9 var(--display); color: var(--white); text-shadow: 5px 5px 0 var(--ink); }
.worlds__text { position: relative; max-width: 470px; color: var(--ink); font-weight: 500; }
.worlds__tabs { display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line-2); background: var(--ink); padding: 0 max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut))); }
.worlds__tabs::-webkit-scrollbar { display: none; }
.worlds__tab { flex: none; background: none; border: 0; border-right: 1px solid var(--line); color: #9a9a9a; font: 400 13px var(--mono); letter-spacing: 0.2em; padding: 18px 22px; cursor: var(--cur-hot); transition: color 0.15s, background 0.15s; }
.worlds__tab:first-child { border-left: 1px solid var(--line); }
.worlds__tab:hover { color: var(--white); }
.worlds__tab[aria-selected='true'] { color: var(--white); background: #1a1a1a; box-shadow: inset 0 3px 0 var(--red); }
.worlds__view { max-width: var(--max); margin: 0 auto; padding: clamp(32px, 4vw, 56px) var(--gut) 0; display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 54px); align-items: center; }
.worlds__shot { padding: calc(var(--notch) + 10px) 10px 10px; --tab: 30%; }
.worlds__shot img { width: 100%; height: auto; transition: opacity 0.25s; }
.worlds__shot img.is-swapping { opacity: 0.15; }
.worlds__name { font: 900 clamp(32px, 4vw, 52px)/0.95 var(--display); color: var(--white); margin: 10px 0 22px; }
.worlds__dl { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--line-2); }
.worlds__dl dt, .worlds__dl dd { padding: 11px 0; border-bottom: 1px solid var(--line); }
.worlds__dl dt { font: 400 11px/1.9 var(--pixel); letter-spacing: 0.06em; color: var(--mute); padding-right: 22px; }
.worlds__dl dd { font-size: 15.5px; color: var(--text); }
.worlds__dl dd.say { font: 700 22px var(--display); color: var(--red-hot); }
@media (max-width: 900px) { .worlds__band, .worlds__view { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ cast */

.cast { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.cast li { position: relative; }
.cast__card {
  --tab: 40%;
  --notch: 10px;
  padding: calc(var(--notch) + 4px) 10px 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}
.cast__card:hover { transform: translateY(-6px); }
.cast__card img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; object-position: center bottom; }
.cast__no { position: absolute; left: 10px; top: calc(var(--notch) + 6px); font: 400 10px var(--mono); letter-spacing: 0.12em; color: #8a8a8a; }
.cast__name { font: 800 15px/1.1 var(--display); letter-spacing: 0.02em; color: var(--ink); margin-top: 8px; transition: color 0.2s; }
.cast__card:hover .cast__name { color: var(--red); }
.cast__line { font-size: 12.5px; line-height: 1.35; color: #555; margin-top: 4px; }
.cast__fits { margin-top: auto; padding-top: 8px; font: 400 9px var(--pixel); letter-spacing: 0.06em; color: var(--red); }
.cast__card--star .cast__name { color: var(--red); }
@media (max-width: 1100px) { .cast { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 760px) { .cast { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 440px) { .cast { grid-template-columns: repeat(2, 1fr); } }

.style { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 60px); align-items: center; margin-top: clamp(50px, 7vw, 90px); }
.style__copy p { color: var(--text); max-width: 520px; }
.style__copy p + p { margin-top: 14px; }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0; max-width: 520px; }
.tiers li { border: 1px solid var(--line-2); padding: 12px 14px; font: 400 11px var(--pixel); letter-spacing: 0.06em; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.tiers b { font: 800 22px/1 var(--display); color: var(--white); letter-spacing: 0.08em; }
.tiers__top { background: var(--red); border-color: var(--red) !important; }
.tiers__top b { color: var(--ink); }
.phones--two { min-height: 520px; }
.phones--two .phone { width: min(42%, 250px); }
.phones--two .phone--l { transform: rotate(-6deg) translateX(18px); }
.phones--two .phone--r { transform: rotate(6deg) translate(-18px, 30px); }
@media (max-width: 980px) { .style { grid-template-columns: 1fr; } .phones--two { min-height: 0; } }

/* ------------------------------------------------------------ dev log */

.log { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: log; }
.log__item { position: relative; padding: 22px 20px 24px; border: 1px solid var(--line-2); background: rgba(20, 20, 20, 0.85); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.log__item h3 { font: 800 20px/1.1 var(--display); color: var(--white); margin: 14px 0 8px; }
.log__item p { font-size: 14.5px; color: var(--mute); line-height: 1.5; }
.log__n { font: 800 13px var(--display); color: #555; }
.log__state { float: right; display: inline-flex; align-items: center; gap: 6px; font: 400 10px var(--pixel); letter-spacing: 0.08em; padding: 6px 8px; border: 1px solid #555; color: #9a9a9a; }
.log__state svg { width: 12px; height: 12px; }
.log__item--done .log__state { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.log__item--done::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--paper); }
.log__item--next { border-color: var(--red); }
.log__item--next .log__state { background: var(--red); border-color: var(--red); color: var(--white); }
.log__item--locked { background: repeating-linear-gradient(-55deg, rgba(227, 36, 30, 0.08) 0 10px, transparent 10px 20px), rgba(20, 20, 20, 0.85); }
.log__item--locked h3 { color: var(--red-hot); }
@media (max-width: 980px) { .log { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .log { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ divisions */

.doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.door { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px 22px 26px; text-decoration: none; border: 1px solid var(--line-2); background: rgba(20, 20, 20, 0.85); transition: border-color 0.2s, transform 0.2s; }
a.door:hover { border-color: var(--red); transform: translateY(-4px); }
.door__logo { width: 64px; height: 64px; object-fit: contain; margin-bottom: 8px; background: var(--paper); border-radius: 50%; padding: 4px; }
.door__logo--invert { background: var(--paper); }
.door--here .door__logo { background: none; border-radius: 0; padding: 0; }
.door__host { font: 400 11px var(--mono); letter-spacing: 0.16em; color: var(--mute); word-break: break-all; }
.door__name { font: 800 21px/1.1 var(--display); color: var(--white); }
.door__text { font-size: 14.5px; color: var(--mute); line-height: 1.5; }
.door__go { position: absolute; right: 18px; top: 22px; width: 20px; height: 20px; color: var(--mute); transition: color 0.2s; }
a.door:hover .door__go { color: var(--red-hot); }
.door--here { border-color: var(--red); background: linear-gradient(160deg, rgba(227, 36, 30, 0.2), rgba(20, 20, 20, 0.9) 60%); }
.door__you { margin-top: auto; font: 400 10px var(--pixel); letter-spacing: 0.08em; color: var(--red-hot); }
@media (max-width: 980px) { .doors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .doors { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ contact */

.contact__card { --tab: 30%; padding-top: calc(var(--notch) + 30px); }
.contact__title { font: 900 clamp(44px, 8vw, 110px)/0.9 var(--display); color: var(--ink); margin-top: 6px; }
.contact__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 760px; }
.contact__mail { display: inline-block; margin-top: 8px; font: 700 clamp(18px, 2.2vw, 26px) var(--display); color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--red); word-break: break-all; }
.contact__mail:hover { color: var(--red); }
@media (max-width: 640px) { .contact__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ footer */

.foot { margin-top: clamp(80px, 10vw, 130px); border-top: 1px solid var(--line-2); background: rgba(8, 8, 8, 0.92); }
.foot__grid { max-width: var(--max); margin: 0 auto; padding: 54px var(--gut) 40px; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; }
.foot__brand img { margin-bottom: 14px; }
.foot__name { font: 800 20px var(--display); color: var(--white); }
.foot__sub { font: 400 11px var(--mono); letter-spacing: 0.18em; color: var(--mute); margin-top: 4px; }
.foot__h { font: 400 10px var(--pixel); letter-spacing: 0.1em; color: var(--red-hot); margin-bottom: 12px; }
.foot__grid a { display: block; text-decoration: none; color: #b5b5b5; font-size: 15px; padding: 3px 0; transition: color 0.15s; word-break: break-word; }
.foot__grid a:hover { color: var(--white); }
.foot__legal { border-top: 1px solid var(--line); text-align: center; padding: 18px var(--gut) 26px; font: 400 11px var(--mono); letter-spacing: 0.16em; color: #6a6a6a; }
.foot__legal a { color: #9a9a9a; text-decoration: none; }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* ------------------------------------------------------------ reveal on scroll */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__inky, .hero__img, .cogs svg, .hud-tile svg, .hero__ent::after { animation: none; }
}

/* ============================================================ studio homepage */

/* who we are */
.intro__text { display: grid; gap: 14px; margin: 18px 0 26px; max-width: 760px; }
.intro__text p:not(.lede) { color: #b5b5b5; }
.intro__text b { color: var(--white); }
.facts { display: grid; border-top: 1px solid var(--line-2); width: 100%; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 400 10px/1.8 var(--pixel); letter-spacing: 0.08em; color: var(--mute); }
.facts dd { font: 700 14px/1.4 var(--display); color: var(--white); text-align: right; }
.facts a { text-decoration: none; color: var(--red-hot); }

/* purpose */
.purpose { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); }
.purpose__item { border-top: 2px solid var(--line-2); padding-top: 20px; position: relative; }
.purpose__item::before { content: ''; position: absolute; left: 0; top: -2px; width: 64px; height: 2px; background: var(--red); }
.purpose__n { font: 900 clamp(48px, 6vw, 80px)/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--red); }
.purpose__item h3 { font: 800 22px/1.1 var(--display); color: var(--white); margin: 12px 0 10px; }
.purpose__item p { color: #b0b0b0; font-size: 16px; }
@media (max-width: 820px) { .purpose { grid-template-columns: 1fr; } }

/* how we work */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; position: relative; isolation: isolate; }
.process::before { content: ''; position: absolute; left: 0; right: 0; top: 23px; height: 8px; background: repeating-linear-gradient(-55deg, #3a3a3a 0 6px, transparent 6px 12px); z-index: -1; }
.process__n { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); border: 2px solid var(--paper); font: 800 17px var(--display); color: var(--white); }
.process__step h3 { font: 800 19px/1.1 var(--display); color: var(--white); margin: 16px 0 8px; }
.process__step p { font-size: 14.5px; line-height: 1.5; color: var(--mute); }
.process__step--red .process__n { background: var(--red); border-color: var(--red); }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(3, 1fr); row-gap: 34px; } .process::before { display: none; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr 1fr; } }

/* players and parents */
.care { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.care__card { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; border: 1px solid var(--line-2); border-top: 3px solid var(--red); background: rgba(20, 20, 20, 0.85); }
.care__icon { width: 36px; height: 36px; color: var(--paper); --chip-line: var(--card); }
.care__card h3 { font: 800 19px/1.1 var(--display); color: var(--white); }
.care__card p { font-size: 15px; line-height: 1.55; color: #a9a9a9; }
.care__link { margin-top: auto; padding-top: 6px; font: 400 13px var(--mono); letter-spacing: 0.08em; color: var(--red-hot); text-decoration: none; word-break: break-all; }
.care__link:hover { color: var(--white); }
@media (max-width: 1000px) { .care { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .care { grid-template-columns: 1fr; } }

/* work with us */
.channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.channel { position: relative; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 18px; row-gap: 4px; align-items: center; padding: 24px 56px 24px 22px; text-decoration: none; border: 1px solid var(--line-2); background: linear-gradient(90deg, var(--card-2), var(--card)); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); transition: border-color 0.2s, transform 0.2s; height: 100%; }
.channel:hover { border-color: var(--red); transform: translateX(4px); }
.channel__no { position: absolute; right: 22px; bottom: 14px; font: 400 10px var(--mono); letter-spacing: 0.2em; color: #555; }
.channel__icon { grid-row: span 2; width: 42px; height: 42px; color: var(--paper); --chip-line: var(--card); }
.channel__name { font: 800 19px/1.1 var(--display); color: var(--white); }
.channel__text { font-size: 14.5px; color: var(--mute); line-height: 1.45; }
.channel__go { position: absolute; right: 22px; top: 22px; width: 20px; height: 20px; color: var(--mute); transition: color 0.2s; }
.channel:hover .channel__go { color: var(--red-hot); }
@media (max-width: 760px) { .channels { grid-template-columns: 1fr; } }

/* news */
.news { border-top: 1px solid var(--line-2); }
.news__item { display: grid; grid-template-columns: 110px 110px 1fr; gap: 6px 22px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news__item time { font: 400 13px var(--mono); letter-spacing: 0.16em; color: var(--mute); grid-row: 1; }
.news__tag { grid-row: 1; grid-column: 2; justify-self: start; font: 400 10px/1 var(--pixel); letter-spacing: 0.08em; padding: 6px 8px; border: 1px solid var(--red); color: var(--red-hot); }
.news__item h3 { font: 800 clamp(19px, 2vw, 24px)/1.1 var(--display); color: var(--white); grid-column: 3; grid-row: 1; }
.news__item p { grid-column: 3; color: #a9a9a9; font-size: 15.5px; }
.news__item a { color: var(--white); text-decoration-color: var(--red); text-underline-offset: 3px; }
.news__item--soon .news__tag { border-color: #555; color: #999; }
.news__item--soon h3 { color: #8a8a8a; }
@media (max-width: 700px) {
  .news__item { grid-template-columns: auto 1fr; }
  .news__tag { grid-column: 2; }
  .news__item--soon .news__tag { grid-column: 1; }
  .news__item h3, .news__item p { grid-column: 1 / -1; grid-row: auto; }
}

.foot__motto { margin-top: 14px; font: 800 15px var(--display); color: var(--red-hot); letter-spacing: 0.04em; }

/* ============================================================ game page */

.crumbs { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; font: 400 12px var(--mono); letter-spacing: 0.18em; color: var(--mute); }
.crumbs a { color: #bdbdbd; text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs b { color: var(--red-hot); font-weight: 400; }
.backlink { display: flex; flex-direction: column; gap: 10px; padding: 34px clamp(22px, 3vw, 40px); border: 1px solid var(--line-2); text-decoration: none; background: linear-gradient(90deg, rgba(227, 36, 30, 0.18), rgba(20, 20, 20, 0.9) 60%); transition: border-color 0.2s; }
.backlink:hover { border-color: var(--red); }
.backlink__title { display: inline-flex; align-items: center; gap: 14px; font: 900 clamp(28px, 4.4vw, 56px)/1 var(--display); color: var(--white); }
.backlink__title svg { width: 0.7em; height: 0.7em; color: var(--red-hot); }


/* ============================================================ 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px var(--gut); }
.lost .lost__code { font: 900 clamp(90px, 20vw, 220px)/0.85 var(--display); color: var(--red); text-shadow: 6px 6px 0 #000; }
.lost h1 { font: 800 clamp(26px, 4vw, 44px)/1 var(--display); color: var(--white); margin: 18px 0 12px; }
.lost p { color: var(--mute); margin-bottom: 26px; }
@media (max-width: 560px) { .sun--slot { width: 150px; right: -60px; bottom: -70px; } }

/* ============================================================ logo, cursor, scrollbar */

.intro__logo { width: min(200px, 60%); height: auto; margin: 0 auto 6px; }
.foot__brand img { width: 110px; height: auto; }
.lost__logo { width: 150px; height: auto; margin: 0 auto 18px; }
@media (max-width: 900px) { .intro__logo { width: 120px; margin: 0; } }

/* pointer: pixel cursors (CSS) and a pixel burst on click (app.js) */
html { cursor: var(--cur); }
a, button, [role='tab'], summary, label { cursor: var(--cur-hot); }
.cursor-down, .cursor-down * { cursor: var(--cur-down) !important; }
.burst { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 200; pointer-events: none; }
.burst i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; background: var(--red); box-shadow: 0 0 0 1px #0b0b0b; animation: burst 0.42s steps(6) forwards; }
.burst i:nth-child(3n) { background: var(--white); }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }

/* scrollbar: a red hazard-striped thumb in a black rail */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #0b0b0b; border-left: 1px solid #262626; }
::-webkit-scrollbar-thumb { background: repeating-linear-gradient(-55deg, #e3241e 0 6px, #b5160f 6px 12px); border: 2px solid #0b0b0b; border-radius: 0; min-height: 60px; }
::-webkit-scrollbar-thumb:hover { background: repeating-linear-gradient(-55deg, #ff3b30 0 6px, #e3241e 6px 12px); }
::-webkit-scrollbar-corner { background: #0b0b0b; }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: #e3241e #0b0b0b; scrollbar-width: thin; }
}

/* ============================================================ pass cards */
/* The six brand cards, recreated. Each card is drawn on the reference card's
   own grid (409 x 228) and scales as one piece: --x, --y, --w, --h and --fs on
   its parts are in those units (1 unit = 1/409 of the card's width). */

.passes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 3vw, 40px) clamp(18px, 2.4vw, 30px); padding-top: 14px; }
.passes > li { min-width: 0; }
.pass { position: relative; display: block; aspect-ratio: 409 / 228; container-type: inline-size; isolation: isolate; color: inherit; text-decoration: none; }
.pass__shape {
  --u: calc(100cqw / 409);
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
  -webkit-mask: var(--m) 0 0 / 100% 100% no-repeat;
  mask: var(--m) 0 0 / 100% 100% no-repeat;
}
.pass--dark .pass__shape { --bg: linear-gradient(165deg, #202023, #121214 58%); color: #f2f2f2; }
.pass--light .pass__shape { --bg: linear-gradient(165deg, #f6f6f6, #e6e6e6); color: #0b0b0b; --chip-line: #e9e9e9; }
.pass--dark .c-red, .pass--light .c-red { --chip-line: #121214; }
.pass--light .c-ink { --chip-line: #e9e9e9; }
/* the red card behind card 1, tab on the left */
.pass__back {
  --u: calc(100cqw / 409);
  position: absolute;
  z-index: -1;
  left: calc(-17 * var(--u));
  top: calc(-17 * var(--u));
  width: 100%;
  height: calc(256 * var(--u));
  background: var(--red);
  -webkit-mask: var(--mb) 0 0 / 100% 100% no-repeat;
  mask: var(--mb) 0 0 / 100% 100% no-repeat;
}
a.pass { transition: transform 0.25s; }
a.pass:hover { transform: translateY(-5px); }
a.pass:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 6px; }

/* positioning in card units */
.pp { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); margin: 0; }
.sz { width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); }
.wd { width: calc(var(--w) * var(--u)); }
.fs { font-size: calc(var(--fs) * var(--u)); line-height: 1.18; }
.pass__title span { display: block; line-height: 1.02; }
.pass__title span + span { margin-top: calc(6 * var(--u)); }
.pass .right { text-align: right; }
.pass h3.right { text-align: right; }
.vt { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.vt-down { writing-mode: vertical-rl; white-space: nowrap; }

/* ink */
.c-red { color: var(--red); }
.c-grey { color: #6e6e74; }
.c-ink { color: #0b0b0b; }
.c-white { color: #f2f2f2; }

/* lettering */
.t-wide { font-family: var(--display); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.t-stencil { font-family: 'Black Ops One', var(--display); font-weight: 400; letter-spacing: 0.01em; }
.t-cond { font-family: var(--body); font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.t-heavy { font-family: 'Archivo Black', var(--display); font-weight: 400; letter-spacing: -0.015em; }
.t-pix { font-family: var(--pixel); letter-spacing: 0.04em; line-height: 1.32; }
.t-mono { font-family: var(--mono); letter-spacing: 0.1em; line-height: 1.25; }

/* graphic parts */
.g-fill { background: currentColor; }
.g-circle { border-radius: 50%; background: var(--red); }
.g-glyphs { background: url('/assets/glyphs.svg') left center / 100% 100% no-repeat; opacity: 0.85; }
.g-noise-red { background: url('/assets/noise-red.svg') center / contain no-repeat; }
.g-noise-white { background: url('/assets/noise-white.svg') center / contain no-repeat; }
.g-noise-black { background: url('/assets/noise-black.svg') center / contain no-repeat; }
.g-cross {
  background:
    linear-gradient(currentColor, currentColor) center / 100% calc(1.4 * var(--u)) no-repeat,
    linear-gradient(currentColor, currentColor) center / calc(1.4 * var(--u)) 100% no-repeat;
}
.g-slash { background: repeating-linear-gradient(-62deg, currentColor 0 calc(4.5 * var(--u)), transparent 0 calc(9 * var(--u))); }
.g-vslash { background: repeating-linear-gradient(-30deg, currentColor 0 calc(4.5 * var(--u)), transparent 0 calc(9 * var(--u))); }
.g-bslash { background: repeating-linear-gradient(32deg, currentColor 0 calc(2.6 * var(--u)), transparent 0 calc(6.5 * var(--u))); }
.g-blades { background: repeating-linear-gradient(-62deg, transparent 0 calc(10 * var(--u)), currentColor 0 calc(21 * var(--u))); }
.g-code {
  background: repeating-linear-gradient(180deg,
    currentColor 0 calc(2 * var(--u)), transparent 0 calc(3.6 * var(--u)),
    currentColor 0 calc(4.6 * var(--u)), transparent 0 calc(6.2 * var(--u)),
    currentColor 0 calc(9.4 * var(--u)), transparent 0 calc(10.4 * var(--u)),
    currentColor 0 calc(11.4 * var(--u)), transparent 0 calc(14 * var(--u)));
}
.g-squares { display: flex; gap: calc(3 * var(--u)); }
.g-squares i { flex: 1; border: calc(1.4 * var(--u)) solid currentColor; }
.g-ramp { display: flex; align-items: stretch; height: calc(18 * var(--u)); }
.g-ramp i { display: block; background: currentColor; transform: skewX(-38deg); }
.g-ramp i:nth-child(1) { width: calc(16 * var(--u)); }
.g-ramp i:nth-child(2) { width: calc(14 * var(--u)); margin-left: calc(5 * var(--u)); }
.g-ramp i:nth-child(3) { width: calc(12 * var(--u)); margin-left: calc(6 * var(--u)); }
.g-ramp i:nth-child(4) { width: calc(10 * var(--u)); margin-left: calc(8 * var(--u)); }
.g-ramp i:nth-child(5) { width: calc(8 * var(--u)); margin-left: calc(10 * var(--u)); }
.g-ramp i:nth-child(6) { width: calc(6 * var(--u)); margin-left: calc(12 * var(--u)); }
.g-ramp i:nth-child(7) { width: calc(5 * var(--u)); margin-left: calc(14 * var(--u)); }
.g-half { clip-path: inset(0 0 0 34%); }
.pass__mark { font-style: italic; transform: skewX(-6deg); }
.pass .slot-go { font-weight: 700; letter-spacing: 0.16em; }

/* where they sit */
.passes--values { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(34px, 4vw, 54px) clamp(26px, 3.4vw, 50px); }
.passes--values > li:first-child { padding: 0 0 0 calc(17 / 409 * 100%); }
.pass-note { display: none; margin-top: 14px; font-size: 15px; line-height: 1.5; color: #a9a9a9; }
.passes--vault { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.make__main { display: grid; gap: 22px; align-content: start; padding: 14px 0 0 14px; }
.make__desc { color: #b5b5b5; font-size: 16px; max-width: 520px; }

@media (max-width: 1100px) {
  .passes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .passes, .passes--values { grid-template-columns: minmax(0, 1fr); }
  .pass-note { display: block; }
  .passes--values > li:first-child { padding-left: 14px; }
}

/* card shapes: the folder tab sits where it does on each reference card */
.pass--v1 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 409 228'%3E%3Cpath d='M10 9H303L312 0H399A10 10 0 0 1 409 10V218A10 10 0 0 1 399 228H10A10 10 0 0 1 0 218V19A10 10 0 0 1 10 9Z'/%3E%3C/svg%3E"); }
.pass--v2 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 409 228'%3E%3Cpath d='M10 9H188L197 0H399A10 10 0 0 1 409 10V218A10 10 0 0 1 399 228H10A10 10 0 0 1 0 218V19A10 10 0 0 1 10 9Z'/%3E%3C/svg%3E"); }
.pass--v3 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 409 228'%3E%3Cpath d='M10 9H331L340 0H399A10 10 0 0 1 409 10V218A10 10 0 0 1 399 228H10A10 10 0 0 1 0 218V19A10 10 0 0 1 10 9Z'/%3E%3C/svg%3E"); }
.pass--v4 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 409 228'%3E%3Cpath d='M10 9H217L226 0H399A10 10 0 0 1 409 10V218A10 10 0 0 1 399 228H10A10 10 0 0 1 0 218V19A10 10 0 0 1 10 9Z'/%3E%3C/svg%3E"); }
.pass--v5 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 409 228'%3E%3Cpath d='M10 9H331L340 0H399A10 10 0 0 1 409 10V218A10 10 0 0 1 399 228H10A10 10 0 0 1 0 218V19A10 10 0 0 1 10 9Z'/%3E%3C/svg%3E"); }
.pass--v6 { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 409 228'%3E%3Cpath d='M10 9H217L226 0H399A10 10 0 0 1 409 10V218A10 10 0 0 1 399 228H10A10 10 0 0 1 0 218V19A10 10 0 0 1 10 9Z'/%3E%3C/svg%3E"); }
.pass__back { --mb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 409 256'%3E%3Cpath d='M10 0H150L159 9H399A10 10 0 0 1 409 19V246A10 10 0 0 1 399 256H10A10 10 0 0 1 0 246V10A10 10 0 0 1 10 0Z'/%3E%3C/svg%3E"); }

/* ============================================================ back to top */
/* An 8-bit "up" tile in the corner; the red bar along its bottom fills as you
   scroll, like a level-progress bar. app.js shows it after about a screen. */
.to-top {
  position: fixed;
  z-index: 30;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 58px;
  height: 64px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding-bottom: 4px;
  color: var(--red-hot);
  text-decoration: none;
  background: #111;
  border: 1px solid #3a3a3a;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, background 0.15s, color 0.15s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover, .to-top:focus-visible { background: var(--red); color: var(--white); }
.to-top:hover .to-top__arrow { animation: hop 0.45s steps(2) infinite alternate; }
@keyframes hop { to { transform: translateY(-4px); } }
.to-top__arrow { width: 24px; height: 24px; }
.to-top__label { font: 400 9px/1 var(--pixel); letter-spacing: 0.14em; color: #cfcfcf; }
.to-top:hover .to-top__label, .to-top:focus-visible .to-top__label { color: var(--white); }
.to-top__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--red); }
.to-top:hover .to-top__bar { background: var(--white); }
@media (min-width: 1400px) { .to-top { right: 76px; } }
@media (max-width: 640px) { .to-top { width: 50px; height: 56px; } .to-top__arrow { width: 20px; height: 20px; } }
@media (prefers-reduced-motion: reduce) {
  .to-top { transform: none; transition: opacity 0.2s; }
  .to-top:hover .to-top__arrow { animation: none; }
}
