/* ==========================================================================
   TWIZUP Studios — design system
   Single stylesheet, no build step. Tokens live in :root; edit there first.
   ========================================================================== */

:root {
  /* Palette */
  --ink: #0b0d0c;
  --char: #141716;
  --char-2: #1b1f1d;
  --bone: #f4f5f0;
  --lime: #b5ff42;
  --mute: #a6ada8;
  --line: rgba(244, 245, 240, 0.1);
  --line-strong: rgba(244, 245, 240, 0.22);

  /* Type */
  --font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-hero: clamp(3.4rem, 9.2vw, 8.25rem);
  --t-h1: clamp(2.5rem, 7vw, 6rem);
  --t-h2: clamp(2rem, 5vw, 4.25rem);
  --t-h3: clamp(1.25rem, 2vw, 1.6rem);
  --t-lead: clamp(1.05rem, 1.35vw, 1.3rem);
  --t-body: 1rem;
  --t-small: 0.8125rem;
  --t-eyebrow: 0.75rem;

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(5rem, 12vw, 11rem);
  --max: 84rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 700ms;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
  border-radius: 2px;
}
::selection {
  background: var(--lime);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.t-hero {
  font-size: var(--t-hero);
}
.t-h1 {
  font-size: var(--t-h1);
}
.t-h2 {
  font-size: var(--t-h2);
}
.t-h3 {
  font-size: var(--t-h3);
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--mute);
  max-width: 36rem;
  text-wrap: pretty;
}
.lead strong {
  color: var(--bone);
  font-weight: 600;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--t-eyebrow);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--lime);
}
.eyebrow--plain::before {
  display: none;
}
.accent {
  color: var(--lime);
}
.muted {
  color: var(--mute);
}
.small {
  font-size: var(--t-small);
}

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.section {
  padding-block: var(--section);
  position: relative;
}
.section--tight {
  padding-block: calc(var(--section) * 0.6);
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section--char {
  background: var(--char);
}
.grid-2 {
  display: grid;
  gap: 3rem;
}
@media (min-width: 60rem) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
  .grid-2--wide-left {
    grid-template-columns: 1.25fr 1fr;
  }
}
.stack > * + * {
  margin-top: 1.25rem;
}
.stack-lg > * + * {
  margin-top: 2rem;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--bone);
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  min-height: 3.25rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur) var(--ease-out), transform 0.3s var(--ease-out),
    border-color 0.3s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform: translateY(101%);
  transition: transform var(--dur) var(--ease-out);
  z-index: -1;
}
.btn:hover::before,
.btn:focus-visible::before {
  transform: translateY(0);
}
.btn:hover,
.btn:focus-visible {
  color: var(--ink);
}
.btn:active {
  transform: translateY(1px);
}
.btn .arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.4s var(--ease-out);
}
.btn:hover .arrow {
  transform: translateX(4px);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  border-color: var(--line-strong);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--lime);
}
.btn--lime {
  --btn-bg: var(--lime);
  --btn-fg: var(--ink);
}
.btn--lime::before {
  background: var(--bone);
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn[disabled]::before {
  display: none;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  color: var(--bone);
  padding-bottom: 0.2rem;
  background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 100% / 0 1px;
  transition: background-size 0.5s var(--ease-out);
}
.link-arrow:hover,
.link-arrow:focus-visible {
  background-size: 100% 1px;
}
.link-arrow .arrow {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.4s var(--ease-out);
}
.link-arrow:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 4.5rem;
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(11, 13, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.brand__mark {
  width: 2.25rem;
  height: auto;
}
.brand__word {
  height: 0.85rem;
  width: auto;
}
.nav {
  display: none;
}
.nav__link {
  position: relative;
  padding: 0.5rem 0;
  margin: 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  transition: color 0.3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__link:hover,
.nav__link:focus-visible,
.nav__link[aria-current="page"] {
  color: var(--bone);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header__cta {
  display: none;
}
@media (min-width: 60rem) {
  .nav {
    display: flex;
    align-items: center;
  }
  .header__cta {
    display: inline-flex;
    padding: 0.7rem 1.1rem;
    min-height: 2.5rem;
    font-size: 0.72rem;
  }
  .menu-toggle {
    display: none !important;
  }
}

/* Mobile menu */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
  align-items: center;
}
.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--bone);
  transition: transform 0.35s var(--ease-out), opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6rem var(--gutter) 2.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2%);
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out),
    visibility 0s 0.45s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out);
}
.mobile-menu__list li {
  border-top: 1px solid var(--line);
}
.mobile-menu__link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
}
.mobile-menu__link small {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--mute);
}
.mobile-menu__link[aria-current="page"] {
  color: var(--lime);
}
.mobile-menu__foot {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: var(--t-small);
  color: var(--mute);
}
body.menu-open {
  overflow: hidden;
}

/* ---------- Quill motif (abstract, brand-inspired) ---------- */
.quills {
  position: absolute;
  pointer-events: none;
  color: var(--bone);
  opacity: 0.09;
  will-change: transform;
}
.quills--lime {
  color: var(--lime);
  opacity: 0.14;
}
@media (prefers-reduced-motion: no-preference) {
  .quills {
    animation: drift 16s ease-in-out infinite alternate;
  }
  .quills--slow {
    animation-duration: 26s;
  }
}
@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(-14px, 18px, 0) rotate(-2deg);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero__logo {
  width: min(48vw, 13rem);
  margin-inline: auto;
  order: -1; /* logo first on small screens */
}
.hero__copy {
  text-align: center;
}
.hero__copy .lead {
  margin-inline: auto;
}
.hero__copy .btn-row {
  justify-content: center;
}
.hero__title {
  margin-block: 1.25rem 1.5rem;
}
.hero__title .twist {
  display: inline-block;
  color: var(--lime);
}
.hero__meta {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: center;
  color: var(--mute);
  font-size: var(--t-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
@media (max-width: 40rem) {
  .hero__meta span + span {
    display: none;
  }
  .hero__meta {
    margin-top: 2.5rem;
  }
  .btn-row .btn {
    width: 100%;
    justify-content: center;
  }
}
.hero__meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__meta .dot {
    animation: pulseDot 2.4s ease-in-out infinite;
  }
}
@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.hero__quills-a {
  width: clamp(18rem, 48vw, 42rem);
  right: -8%;
  top: 8%;
}
.hero__quills-b {
  width: clamp(12rem, 30vw, 26rem);
  left: -6%;
  bottom: 4%;
}
@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 4rem;
  }
  .hero__copy {
    text-align: left;
    order: 1;
  }
  .hero__copy .lead {
    margin-inline: 0;
  }
  .hero__copy .btn-row {
    justify-content: flex-start;
  }
  .hero__logo {
    order: 2;
    width: min(32vw, 26rem);
  }
  .hero__meta {
    justify-content: flex-start;
  }
}

/* Entrance (staggered). Items start visible if JS/animation unavailable. */
@media (prefers-reduced-motion: no-preference) {
  .enter > * {
    opacity: 0;
    transform: translateY(22px);
    animation: rise 1s var(--ease-out) forwards;
  }
  .enter > :nth-child(1) {
    animation-delay: 0.05s;
  }
  .enter > :nth-child(2) {
    animation-delay: 0.15s;
  }
  .enter > :nth-child(3) {
    animation-delay: 0.27s;
  }
  .enter > :nth-child(4) {
    animation-delay: 0.39s;
  }
  .enter > :nth-child(5) {
    animation-delay: 0.5s;
  }
  .hero__logo {
    opacity: 0;
    animation: logoIn 1.4s var(--ease-out) 0.2s forwards;
  }
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes logoIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Ticker ---------- */
.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 1.1rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  letter-spacing: 0.06em;
  color: var(--mute);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 0;
}
.ticker__track span {
  padding-inline: 1.5rem;
  white-space: nowrap;
}
.ticker__track span::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-left: 3rem;
  background: var(--lime);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  vertical-align: middle;
  opacity: 0.8;
}
@media (prefers-reduced-motion: no-preference) {
  .ticker__track {
    animation: ticker 60s linear infinite;
  }
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  .js .reveal[data-delay="1"] {
    transition-delay: 0.12s;
  }
  .js .reveal[data-delay="2"] {
    transition-delay: 0.24s;
  }
  .js .reveal[data-delay="3"] {
    transition-delay: 0.36s;
  }
}

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head .display {
  max-width: 14ch;
}

/* ---------- About ---------- */
.about__copy p + p {
  margin-top: 1.25rem;
}
.about__copy {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--mute);
  max-width: 34rem;
}
.about__copy strong {
  color: var(--bone);
  font-weight: 600;
}
.about__facts {
  margin-top: 2.5rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.about__facts li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.about__facts li span:first-child {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding-top: 0.25rem;
}

/* ---------- Approach ---------- */
.approach {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 60rem) {
  .approach {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pillar {
  position: relative;
  padding: 2.25rem 1.75rem 2.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 22rem;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.5s;
}
.pillar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.pillar:hover {
  background: var(--char);
}
.pillar:hover::after {
  transform: scaleX(1);
}
.pillar__num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  transition: color 0.5s, -webkit-text-stroke-color 0.5s;
}
.pillar:hover .pillar__num {
  color: var(--lime);
  -webkit-text-stroke-color: var(--lime);
}
.pillar__title {
  margin-top: auto;
}
.pillar__text {
  color: var(--mute);
  max-width: 28rem;
}
.pillar__quill {
  position: absolute;
  right: -1.5rem;
  top: -1.5rem;
  width: 8rem;
  opacity: 0.06;
  color: var(--bone);
  transform: rotate(12deg);
  transition: opacity 0.5s, transform 0.7s var(--ease-out);
  z-index: -1;
}
.pillar:hover .pillar__quill {
  opacity: 0.14;
  transform: rotate(0deg) translate(-4px, 4px);
}

/* ---------- Games / Coming soon ---------- */
.games {
  overflow: hidden;
}
.coming {
  position: relative;
  margin-block: clamp(2rem, 6vw, 4rem);
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-block: 1px solid var(--line);
}
.coming__word {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12.5vw, 11.5rem);
  padding-right: 30%; /* reserved lane for the mascot — the word never runs under him */
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  position: relative;
  display: block;
  text-wrap: balance;
}
.coming__word em {
  font-style: normal;
  color: var(--bone);
  -webkit-text-stroke: 0;
}
.coming__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.coming__scan::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(181, 255, 66, 0.16), transparent);
  transform: translateX(-120%);
}
@media (prefers-reduced-motion: no-preference) {
  .coming__scan::before {
    animation: sweep 7s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }
}
@keyframes sweep {
  to {
    transform: translateX(460%);
  }
}
.coming__status {
  position: absolute;
  top: -0.75rem;
  left: 0;
  background: var(--ink);
  padding-right: 1rem;
}
.games__foot {
  display: grid;
  gap: 2rem;
  align-items: end;
}
@media (min-width: 60rem) {
  .games__foot {
    grid-template-columns: 1fr auto;
  }
}
.games__quills {
  width: clamp(16rem, 40vw, 34rem);
  right: -10%;
  top: -4rem;
}

/* ---------- Partnerships ---------- */
.partners__list {
  display: grid;
  border-top: 1px solid var(--line);
}
.partners__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease-out);
}
.partners__list li:hover {
  padding-left: 0.5rem;
}
.partners__list .idx {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--lime);
  font-weight: 800;
}
.partners__list .who {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  line-height: 1;
}
.partners__list .what {
  grid-column: 2;
  color: var(--mute);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--lime);
  color: var(--ink);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.cta-band .display {
  font-size: var(--t-h2);
}
.cta-band .btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bone);
}
.cta-band .btn::before {
  background: var(--bone);
}
.cta-band .btn:hover {
  color: var(--ink);
}
.cta-band__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 60rem) {
  .cta-band__inner {
    grid-template-columns: 1fr auto;
  }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 4rem 2rem;
  color: var(--mute);
  font-size: var(--t-small);
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 60rem) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 4rem;
  }
}
.footer__brand img {
  width: 7rem;
}
.footer__brand p {
  margin-top: 1.25rem;
  max-width: 28rem;
  line-height: 1.65;
}
.footer h4 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 1rem;
}
.footer__links li + li {
  margin-top: 0.6rem;
}
.footer__links a {
  color: var(--mute);
  transition: color 0.3s;
}
.footer__links a:hover {
  color: var(--lime);
}
.footer__bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
}
.footer__legal {
  max-width: 44rem;
  line-height: 1.6;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding-top: clamp(8rem, 18vw, 12rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.page-hero .display {
  max-width: 12ch;
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 1.5rem;
}
.form__row {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 40rem) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: 0.5rem;
}
.field label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.field label .req {
  color: var(--lime);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--char);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.95rem 1rem;
  min-height: 3.25rem;
  color: var(--bone);
  transition: border-color 0.3s, background 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea {
  min-height: 10rem;
  resize: vertical;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A6ADA8' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(166, 173, 168, 0.55);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lime);
  background: var(--char-2);
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea {
  border-color: #ff6b57;
}
.field__error {
  display: none;
  font-size: var(--t-small);
  color: #ff8a78;
}
.field[data-invalid="true"] .field__error {
  display: block;
}
.form__notice {
  color: var(--mute);
  font-size: var(--t-small);
  line-height: 1.6;
  max-width: 40rem;
}
.form__notice a {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.form__status {
  display: none;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--lime);
  border-radius: 2px;
  background: var(--char);
  line-height: 1.55;
}
.form__status[data-state="success"],
.form__status[data-state="error"] {
  display: block;
}
.form__status[data-state="error"] {
  border-left-color: #ff6b57;
}
.form__status strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--bone);
}
.form.is-sent > :not(.form__status) {
  display: none;
}
.contact__aside {
  display: grid;
  gap: 2rem;
  align-content: start;
}
.contact__aside .block {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.contact__aside .block h3 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 0.75rem;
}
.contact__aside p {
  color: var(--mute);
  font-size: 0.95rem;
}

/* ---------- Prose (privacy / 404) ---------- */
.prose {
  max-width: 44rem;
  color: var(--mute);
  line-height: 1.7;
}
.prose h2 {
  color: var(--bone);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin: 2.5rem 0 1rem;
}
.prose p + p {
  margin-top: 1rem;
}
.prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.75rem;
}
.prose li + li {
  margin-top: 0.4rem;
}
.prose strong {
  color: var(--bone);
  font-weight: 600;
}
.prose a {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Utilities ---------- */
.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}
.center {
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Added helpers (CSP-safe: no inline styles) ---------- */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.page-hero--center {
  min-height: 70svh;
  display: flex;
  align-items: center;
}

/* ---------- Mascot placements (restrained: Games block, mobile menu, 404) ---------- */
.mascot {
  position: absolute;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
}
.coming__mascot {
  right: 0;
  bottom: -1px;
  height: 104%;
  width: auto;
  z-index: 2;
  transform: translateY(6%);
  transition: transform 1.1s var(--ease-out);
}
.reveal.is-visible .coming__mascot {
  transform: translateY(0);
}
.coming__scan {
  z-index: 1;
}
@media (max-width: 60rem) {
  .coming__word {
    padding-right: 34%;
  }
  .coming__mascot {
    height: 92%;
    right: -0.5rem;
  }
}
@media (max-width: 40rem) {
  .coming {
    min-height: 15rem;
    display: flex;
    align-items: flex-end;
  }
  .coming__word {
    padding-right: 40%;
    font-size: clamp(2.4rem, 12vw, 14rem);
  }
  .coming__mascot {
    height: 86%;
  }
}
.mobile-menu__mascot {
  top: 5.5rem;
  right: -6%;
  height: min(36vh, 20rem);
  opacity: 0.95;
}
.page-hero--404 .wrap {
  position: relative;
}
.nf__mascot {
  display: none;
}
@media (min-width: 60rem) {
  .page-hero--404 .enter {
    max-width: 52rem;
  }
  .nf__mascot {
    display: block;
    right: var(--gutter);
    bottom: 0;
    height: min(78vh, 34rem);
    opacity: 0.98;
  }
}

/* ---------- Email links ---------- */
.contact__mail,
.footer__links a[href^="mailto:"],
.mobile-menu__foot a[href^="mailto:"] {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s, color 0.3s;
}
.contact__mail:hover,
.footer__links a[href^="mailto:"]:hover,
.mobile-menu__foot a[href^="mailto:"]:hover {
  color: var(--lime);
  text-decoration-color: var(--lime);
}
.mobile-menu__foot a[href^="mailto:"] {
  font-size: 0.85rem;
}
