:root {
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.88);
  --text-muted: rgba(255, 255, 255, 0.72);
  --glass: rgba(255, 255, 255, 0.14);
  --glass-strong: rgba(255, 255, 255, 0.22);
  --glass-border: rgba(255, 255, 255, 0.28);
  --cta-bg: #ffffff;
  --cta-text: #1a1420;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: auto;
}

html:has(body.page--site) {
  scroll-snap-type: y proximity;
}

body.page--site {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--text);
  background: #12081f;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Fixed nav ——— */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 1.35rem 1.15rem 0;
  pointer-events: none;
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 0.55s var(--ease-out),
    opacity 0.45s ease,
    padding 4.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.nav-wrap.is-hidden {
  transform: translateY(calc(-100% - 1rem));
  opacity: 0;
  pointer-events: none;
}

.nav-wrap.is-compact {
  padding-top: 0.85rem;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  width: min(980px, 100%);
  max-width: min(980px, 100%);
  padding: 0.55rem 0.55rem 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition:
    max-width 4.2s cubic-bezier(0.22, 1, 0.36, 1),
    gap 4.2s cubic-bezier(0.22, 1, 0.36, 1),
    padding 4.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-wrap.is-compact .nav {
  max-width: min(720px, 92vw);
  gap: 0.75rem;
  padding: 0.45rem 0.45rem 0.45rem 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.nav__mark {
  display: block;
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  background: var(--text);
  mask: url('../img/ecorp-mark.svg') center / contain no-repeat;
  -webkit-mask: url('../img/ecorp-mark.svg') center / contain no-repeat;
}

.nav__name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: 1;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-soft);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav__link:hover,
.nav__link[aria-current="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
}

.nav__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--cta-bg);
  color: var(--cta-text);
  font-family: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav__cta:hover {
  background: #f3f3f3;
  transform: translateY(-1px);
}

/* ——— Panels ——— */
.panel {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/*
  Different artworks dissolve into the same night purple at the seams,
  so scrolling reads as one atmosphere instead of hard photo cuts.
*/
.panel::before,
.panel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  height: clamp(5.5rem, 14vh, 9rem);
  pointer-events: none;
}

.panel::before {
  top: 0;
  background: linear-gradient(
    180deg,
    #12081f 0%,
    rgba(18, 8, 31, 0.72) 28%,
    rgba(18, 8, 31, 0.2) 68%,
    transparent 100%
  );
}

.panel::after {
  bottom: 0;
  background: linear-gradient(
    0deg,
    #12081f 0%,
    rgba(18, 8, 31, 0.78) 32%,
    rgba(18, 8, 31, 0.22) 70%,
    transparent 100%
  );
}

.panel--hero::before {
  height: clamp(4rem, 10vh, 6rem);
  background: linear-gradient(
    180deg,
    rgba(18, 8, 31, 0.35) 0%,
    transparent 100%
  );
}

.panel--hero {
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #2a1840 0%, #c4785a 55%, #6b3a6e 100%);
}

.hero-bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(20, 10, 35, 0.42) 0%, rgba(20, 10, 35, 0.12) 38%, rgba(20, 10, 35, 0.08) 70%, rgba(20, 10, 35, 0.45) 100%);
  pointer-events: none;
}

.hero-paused {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(6.5rem, 14vh, 8rem) 1.5rem 0;
  text-align: center;
}

.hero-paused__content {
  width: min(820px, 100%);
}

.hero-paused__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(3.25rem, 8.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-paused__subtitle {
  margin: 0 auto;
  max-width: 40rem;
  font-size: clamp(1.15rem, 2.5vw, 1.375rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

/* ——— Shared stage (platforms + updates) ——— */
.stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.stage__inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, 177.78vh);
  height: max(56.25vw, 100%);
}

.stage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
}

.panel--platforms .stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 5, 22, 0.85) 0%,
    rgba(11, 5, 22, 0.7) 20%,
    rgba(11, 5, 22, 0.38) 38%,
    rgba(11, 5, 22, 0) 56%
  );
}

.pf-copy {
  position: absolute;
  z-index: 2;
  left: 8vw;
  top: calc(5.25rem + (100% - 5.25rem) / 2);
  transform: translateY(-50%);
  width: min(26em, 34vw);
  font-size: clamp(0.75rem, min(1.334vw, 2.2vh), 1.2rem);
  color: var(--text);
}

.pf-copy__title {
  margin: 0 0 0.35em;
  font-family: var(--font-serif);
  font-size: 3.1em;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: 0 2px 22px rgba(10, 4, 20, 0.4);
}

.pf-copy__subtitle {
  margin: 0 0 1.7em;
  max-width: 21em;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.pf-copy__list {
  list-style: none;
  margin: 0 0 1.55em;
  padding: 0;
  display: grid;
  gap: 1.1em;
}

.pf-copy__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.72em;
  align-items: start;
}

.pf-copy__icon {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: rgba(255, 255, 255, 0.9);
}

.pf-copy__icon svg {
  width: 1em;
  height: 1em;
}

.pf-copy__text {
  display: block;
  max-width: 24em;
  font-size: 0.905em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.pf-copy__text strong {
  display: block;
  margin-bottom: 0.15em;
  font-size: 1.105em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.pf-card {
  display: block;
  width: min(100%, 22em);
  margin: 0;
  padding: 0.95em 1.1em;
  border-radius: 1.05em;
  background: rgba(18, 10, 30, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.pf-card:hover {
  background: rgba(24, 14, 40, 0.55);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.pf-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.pf-card__text {
  display: block;
  margin: 0 0 0.7em;
  font-size: 0.905em;
  line-height: 1.5;
  color: var(--text-soft);
}

.pf-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.775em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.pf-card__cta span {
  transition: transform 0.25s var(--ease-out);
}

.pf-card:hover .pf-card__cta span {
  transform: translateX(3px);
}


/* ——— Updates: macOS desktop on the CRT ———
   Sized to the monitor glass in updates.webp (x 40.6–74.2%, y 23–63.6% of the
   artwork, measured from pixels). The baked-in UPDATES glow is the wallpaper. */
.mac {
  position: absolute;
  z-index: 2;
  left: 41.2%;
  top: 23.8%;
  width: 32.2%;
  height: 39.7%;
  display: flex;
  flex-direction: column;
  font-size: max(7px, min(0.72vw, 1.28vh));
  /* elliptical top corners follow the curved CRT glass */
  border-radius: 42% 42% 1.4em 1.4em / 18% 18% 1em 1em;
  overflow: hidden;
}

/* Desktop area */
.mac__desktop {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.mac__note {
  position: absolute;
  left: 4%;
  bottom: 16%;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78em;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: rgba(150, 255, 205, 0.85);
  text-shadow: 0 0 8px rgba(80, 255, 180, 0.4);
  pointer-events: none;
}

/* Desktop app icons (sit under the windows, like real desktop shortcuts) */
.mac__icons {
  position: absolute;
  right: 2%;
  top: 5%;
  z-index: 0;
  display: grid;
  gap: 0.85em;
  justify-items: center;
}

.mac-ico {
  display: grid;
  gap: 0.3em;
  justify-items: center;
  padding: 0.2em;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.mac-ico__tile {
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  border-radius: 0.62em;
  box-shadow: 0 0.25em 0.8em rgba(0, 0, 0, 0.4);
  transition: transform 0.18s var(--ease-out);
}

.mac-ico:hover .mac-ico__tile {
  transform: scale(1.12);
}

.mac-ico__tile svg,
.mac-ico__tile img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.mac-ico__tile--chatgpt {
  background: #0d0d0d;
}

.mac-ico__tile--chatgpt svg {
  width: 68%;
  height: 68%;
}

.mac-ico__tile--claude {
  background: linear-gradient(145deg, #d4a27f, #c47a4a);
}

.mac-ico__tile--cursor {
  background: #0a0a0a;
}

.mac-ico__tile--vscode { background: #007acc; }

.mac-ico__name {
  font-size: 0.68em;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Shared window chrome */
.mac-win {
  position: absolute;
  display: flex;
  flex-direction: column;
  border-radius: 0.65em;
  overflow: hidden;
  box-shadow: 0 0.8em 2.4em rgba(0, 0, 0, 0.5);
  transform-origin: 50% 130%;
  transition: transform 0.35s var(--ease-out), opacity 0.3s ease;
}

.mac-win.is-dragging {
  transition: none;
}

.mac-win.is-min {
  transform: translateY(30%) scale(0.06);
  opacity: 0;
  pointer-events: none;
}

.mac-win.is-closed {
  display: none;
}

.mac-win__bar {
  display: flex;
  align-items: center;
  gap: 0.4em;
  flex-shrink: 0;
  padding: 0.5em 0.7em;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.mac-win.is-dragging .mac-win__bar {
  cursor: grabbing;
}

.mac-win__dot {
  position: relative;
  display: block;
  width: 0.66em;
  height: 0.66em;
  padding: 0;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  font: inherit;
}

button.mac-win__dot {
  cursor: pointer;
}

.mac-win__dot--red { background: #ff5f57; }
.mac-win__dot--yellow { background: #febc2e; }
.mac-win__dot--green { background: #28c840; }

/* macOS-style glyphs on bar hover (green is decorative) */
.mac-win__dot::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1;
  color: rgba(0, 0, 0, 0.55);
}

.mac-win__bar:hover .mac-win__dot--red::after { content: '×'; }
.mac-win__bar:hover .mac-win__dot--yellow::after { content: '−'; }

/* Discord window */
.mac-win--discord {
  left: 3%;
  top: 30%;
  width: 32%;
  z-index: 1;
  background: #313338;
}

.mac-win--discord .mac-win__bar {
  background: #1e1f22;
}

.mac-win__title {
  margin-left: 0.3em;
  font-size: 0.72em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.mac-win__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45em;
  padding: 0.9em 0.8em 1em;
  text-align: center;
  text-decoration: none;
}

.mac-win__body:hover .mac-discord__cta {
  background: #4752c4;
}

.mac-discord__logo {
  width: 2.2em;
  height: 2.2em;
  color: #5865f2;
}

.mac-discord__name {
  font-size: 0.82em;
  font-weight: 600;
  color: #fff;
}

.mac-discord__cta {
  padding: 0.4em 0.9em;
  border-radius: 999px;
  background: #5865f2;
  font-size: 0.72em;
  font-weight: 600;
  color: #fff;
}

/* Safari window
   Play with `top` here to move Safari up/down on the CRT desktop.
   Higher % = lower on screen. Discord uses `.mac-win--discord { top: ... }` above. */
.mac-win--safari {
  left: 44%;
  top: 34%;
  width: 42%;
  z-index: 2;
  background: #fff;
}

.mac-win--safari .mac-win__bar {
  background: linear-gradient(180deg, #efeff1, #e2e2e6);
}

.mac-safari__url {
  flex: 1;
  margin-left: 0.4em;
  padding: 0.26em 0.7em;
  border-radius: 0.45em;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #cfcfd4;
  color: #5c5c64;
  font-size: 0.72em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac-safari__tabs {
  display: flex;
  flex-shrink: 0;
  background: #d6d6db;
  border-bottom: 1px solid #c6c6cb;
}

.mac-tab {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.42em 0.3em;
  border: none;
  border-right: 1px solid #c6c6cb;
  background: transparent;
  font-family: inherit;
  font-size: 0.66em;
  font-weight: 500;
  color: #5c5c64;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mac-tab__icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.mac-tab__text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac-tab:last-child {
  border-right: none;
}

.mac-tab:hover {
  background: #e4e4e8;
}

.mac-tab.is-active {
  background: #fff;
  color: #17171c;
  font-weight: 600;
}

.mac-safari__page {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 0.8em;
  background: #fff;
}

.mac-page__avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  border-radius: 50%;
  background: #17171c;
}

.mac-page__avatar svg {
  width: 52%;
  height: 52%;
  fill: #fff;
}

.mac-page__avatar-icon--telegram {
  display: none;
}

.mac-safari__page[data-platform='telegram'] .mac-page__avatar {
  background: linear-gradient(180deg, #37b5f1, #1e96d1);
}

.mac-safari__page[data-platform='telegram'] .mac-page__avatar-icon--x {
  display: none;
}

.mac-safari__page[data-platform='telegram'] .mac-page__avatar-icon--telegram {
  display: block;
}

.mac-page__meta {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.mac-page__handle {
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #17171c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac-page__follow {
  flex-shrink: 0;
  padding: 0.42em 0.85em;
  border-radius: 999px;
  background: #17171c;
  font-size: 0.7em;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.mac-page__follow:hover {
  background: #3a3a42;
}

/* Dock */
.mac__dock {
  position: absolute;
  left: 50%;
  bottom: 3%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 0.5em;
  padding: 0.42em 0.55em;
  border-radius: 1.1em;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mac__dock-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  padding: 0;
  border: none;
  border-radius: 0.62em;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition: transform 0.18s var(--ease-out);
}

.mac__dock-icon--inert {
  cursor: default;
  pointer-events: none;
}

.mac__dock-icon--inert:hover {
  transform: none;
}

.mac__dock-icon:hover {
  transform: scale(1.22) translateY(-0.28em);
}

.mac__dock-icon svg {
  width: 62%;
  height: 62%;
}

.mac__dock-icon--finder {
  background: linear-gradient(180deg, #35b1f4, #1268d3);
}

.mac__dock-icon--finder svg,
.mac__dock-icon--safari svg {
  width: 78%;
  height: 78%;
}

.mac__dock-icon--safari {
  background: linear-gradient(180deg, #f5f5f7, #d8d8dd);
}

.mac__dock-icon--discord {
  background: #5865f2;
}

.mac__dock-icon--x {
  background: #0f0f12;
}

.mac__dock-icon--telegram {
  background: linear-gradient(180deg, #37b5f1, #1e96d1);
}

.mac__dock-icon--tradingview {
  background: #131722;
}

.mac__dock-icon--tradingview svg {
  width: 70%;
  height: 70%;
}

.mac__dock-icon--running::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.34em;
  transform: translateX(-50%);
  width: 0.28em;
  height: 0.28em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.mac__dock-sep {
  align-self: stretch;
  width: 1px;
  margin: 0.15em 0.15em;
  background: rgba(255, 255, 255, 0.3);
}

.mac__dock-icon--trash {
  background: rgba(255, 255, 255, 0.14);
}


/* Mobile-only CRT status — Mac UI is desktop-only */
.upd-mobile-status {
  display: none;
}

/* ——— Waitlist modal ——— */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 4, 20, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__panel {
  position: relative;
  width: min(26rem, 100%);
  padding: 2.4rem 2rem 2.2rem;
  border-radius: 1.5rem;
  background: rgba(30, 18, 48, 0.88);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.modal__title {
  margin: 0 0 0.9rem;
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.modal__text {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.modal__text a {
  color: var(--text);
  font-weight: 600;
}

.modal__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  background: var(--cta-bg);
  color: var(--cta-text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.modal__cta:hover {
  background: #f3f3f3;
  transform: translateY(-1px);
}

/* ——— Motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pf-card,
  .pf-card__cta span,
  .nav__cta,
  .mac-win,
  .mac__dock-icon,
  .mac-ico__tile,
  .modal__cta,
  .nav-wrap,
  .nav {
    transition: none;
  }

  .pf-card:hover,
  .nav__cta:hover,
  .mac__dock-icon:hover,
  .mac-ico:hover .mac-ico__tile,
  .modal__cta:hover {
    transform: none;
  }

  body.page--site {
    scroll-snap-type: none;
  }

  html:has(body.page--site) {
    scroll-snap-type: none;
  }

  .hero-bg__video {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-wrap {
    padding: 0.75rem 0.75rem 0;
  }

  .nav {
    width: 100%;
    max-width: 100%;
    padding: 0.45rem 0.45rem 0.45rem 0.85rem;
    gap: 0.45rem;
  }

  .nav-wrap.is-compact .nav {
    max-width: 100%;
  }

  .nav__link {
    padding: 0.45rem 0.55rem;
    font-size: 0.875rem;
  }

  .nav__name {
    font-size: 1.2rem;
  }

  .nav__mark {
    width: 1.4rem;
    height: 1.4rem;
  }

  .nav__cta {
    padding: 0.55rem 0.9rem;
    font-size: 0.8125rem;
  }

  .modal {
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  }

  .modal__panel {
    padding: 2rem 1.35rem 1.75rem;
  }

  .modal__title {
    font-size: 1.75rem;
  }
}

@media (max-width: 720px) {
  .nav__name {
    display: none;
  }

  .nav__links {
    flex: 1;
    justify-content: flex-end;
    gap: 0.1rem;
  }

  .nav__link {
    padding: 0.4rem 0.45rem;
    font-size: 0.8rem;
  }

  .nav__cta {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .hero-paused {
    padding: 5.75rem 1.15rem 2rem;
    justify-content: flex-start;
  }

  .hero-paused__title {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
    margin-bottom: 1rem;
  }

  .hero-paused__subtitle {
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 22rem;
  }

  .panel::before,
  .panel::after {
    height: clamp(3.5rem, 10vh, 6rem);
  }
}

/* Portrait / tablet / phone: stack platforms copy; Updates = CRT art only */
@media (max-aspect-ratio: 4/3), (max-width: 860px) {
  .panel--platforms .stage__inner,
  .panel--updates .stage__inner {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
  }

  .panel--platforms .stage__img {
    object-position: 62% 18%;
  }

  .panel--platforms .stage::after {
    background: linear-gradient(
      180deg,
      rgba(10, 5, 20, 0.12) 0%,
      rgba(10, 5, 20, 0.2) 30%,
      rgba(10, 5, 20, 0.7) 52%,
      rgba(10, 5, 20, 0.94) 78%,
      rgba(10, 5, 20, 0.97) 100%
    );
  }

  .pf-copy {
    left: 5vw;
    right: 5vw;
    top: auto;
    bottom: max(3.5dvh, env(safe-area-inset-bottom, 0px) + 1rem);
    transform: none;
    width: auto;
    max-width: 34em;
    font-size: clamp(0.88rem, 3.5vw, 1.05rem);
  }

  .pf-copy__title {
    font-size: 2.35em;
  }

  .pf-copy__title br {
    display: none;
  }

  .pf-copy__list {
    gap: 0.9em;
    margin-bottom: 1.2em;
  }

  .pf-card {
    width: 100%;
    max-width: none;
  }

  .panel--updates .stage__img {
    object-fit: cover;
    object-position: 55% 55%;
  }

  .mac {
    display: none !important;
  }

  .upd-mobile-status {
    display: block;
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 44%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: min(72vw, 16rem);
    padding: 0.6rem 0.75rem;
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 3.8vw, 1.15rem);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.04em;
    text-align: center;
    color: #7dffc8;
    text-shadow:
      0 0 8px rgba(80, 255, 180, 0.55),
      0 0 18px rgba(40, 200, 140, 0.35);
    pointer-events: none;
  }
}

@media (max-width: 480px) {
  .nav-wrap {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  .hero-paused__title {
    font-size: clamp(2.25rem, 12vw, 2.85rem);
  }

  .pf-copy {
    font-size: clamp(0.82rem, 3.8vw, 0.95rem);
    bottom: max(2.5dvh, env(safe-area-inset-bottom, 0px) + 0.75rem);
  }

  .pf-copy__subtitle {
    margin-bottom: 1.2em;
  }

  .upd-mobile-status {
    top: 42%;
    width: min(78vw, 16rem);
    font-size: clamp(0.95rem, 4.2vw, 1.15rem);
  }

  .panel--updates .stage__img {
    object-position: 54% 58%;
  }
}
