/* ==========================================================================
   STREET SMART SKILLS — "Soft" system
   Built to match the persona-detstvo.ru reference, module by module.

   The reference's vocabulary, as measured from the live site:
   - ground #f5f6f9, headings Comfortaa (rounded), soft grey #4b4b4b
   - full-bleed colour fields per section: coral #ff9e80, pink, mint #86c6b8,
     blue #81b7ff, lilac
   - sections curve into each other with a giant horizontal radius
     (the ref uses border-radius: 2160px 2160px 0 0 / 316px 316px 0 0)
   - white cards, radius 32-40px, soft diffuse shadow, generous padding
   - images inset inside cards with their own smaller radius
   - white pill buttons with coloured text on colour fields
   - coral circular orbs floating bottom-right
   ========================================================================== */

:root {
  --ground:  #f5f6f9;
  --white:   #ffffff;
  --ink:     #3f3f3f;
  --ink-2:   #4b4b4b;
  --ink-3:   #6b6b72;

  --coral:   #ff9e80;
  --coral-d: #ef7f5d;
  --pink:    #f4a3b4;
  --pink-d:  #e8859a;
  --mint:    #86c6b8;
  --mint-d:  #6aab9c;
  --blue:    #81b7ff;
  --blue-d:  #5f9bf0;
  --lilac:   #b9a8f0;
  --butter:  #ffd479;
  --on-pastel: #2f2620;

  --r-arch:  50% 50% 34px 34px / 26% 26% 34px 34px;
  --r-card:  36px;
  --r-img:   24px;
  --r-pill:  999px;

  --display: Comfortaa, "Trebuchet MS", system-ui, sans-serif;
  --text: Raleway, "Segoe UI", system-ui, sans-serif;

  --t-small: 15px;
  --t-body:  clamp(16px, 1.05vw, 18px);
  --t-lead:  clamp(19px, 1.6vw, 24px);
  --t-h3:    clamp(24px, 2.6vw, 34px);
  --t-h2:    clamp(32px, 4vw, 52px);
  --t-h1:    clamp(38px, 5vw, 64px);

  --shadow:  0 18px 50px rgba(80, 92, 120, .10);
  --shadow-s: 0 8px 24px rgba(80, 92, 120, .08);
  --margin:  clamp(18px, 5vw, 64px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: var(--text);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--margin);
}

/* ---------- floating pill nav -------------------------------------------- */

.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 14px auto 0;
  max-width: 1180px;
  width: calc(100% - 24px);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 22px;
  background: var(--white);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-s);
}
.nav__logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.nav__logo span { display: block; font-size: 10px; color: var(--ink-3); letter-spacing: .16em; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a {
  text-decoration: none;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.nav__links a:hover { color: var(--coral-d); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 15px 32px;
  border-radius: var(--r-pill);
  border: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--coral { background: var(--coral); color: var(--on-pastel); box-shadow: 0 10px 26px rgba(255,158,128,.42); }
.btn--white { background: var(--white); color: var(--ink); box-shadow: var(--shadow-s); }
.btn--white:hover { box-shadow: var(--shadow); }
.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 11px 22px; font-size: var(--t-small); }
.btn--ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(47,38,32,.28); }
.btn--ink:hover { background: #1d1712; color: #fff; }
.nav__play { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; }
.nav__play-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255,158,128,.7);
  animation: nav-pulse 2s ease-out infinite;
}
@keyframes nav-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,158,128,.7); }
  70%  { box-shadow: 0 0 0 9px rgba(255,158,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,158,128,0); }
}
@media (prefers-reduced-motion: reduce) { .nav__play-dot { animation: none; } }
/* phones: one CTA only, the arcade keeps its own button in the brief below */
@media (max-width: 760px) { .nav__play { display: none; } }

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

.hero {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(32px, 5vw, 72px) 0 clamp(48px, 6vw, 96px);
  min-height: calc(100svh - 96px);
}
.hero h1 { font-size: var(--t-h1); margin-bottom: 22px; }
.hero__sub {
  font-size: var(--t-lead);
  color: var(--ink-2);
  max-width: 30ch;
  line-height: 1.45;
  margin-bottom: 32px;
}
.hero__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__note { font-size: var(--t-small); color: var(--ink-3); }

/* the four arches — the reference's signature hero shape */
.arches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  align-items: end;
  margin-right: calc(var(--margin) * -1 - 10px);
  padding-right: 0;
}
.arch {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(300px, 46vh, 470px);
  padding: 66px 14px 22px;
  border-radius: var(--r-arch);
  text-decoration: none;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.arch:nth-child(1) { background: var(--pink);  min-height: clamp(280px, 44vh, 400px); }
.arch:nth-child(2) { background: var(--blue);  min-height: clamp(330px, 51vh, 470px); }
.arch:nth-child(3) { background: var(--lilac); min-height: clamp(310px, 48vh, 440px); }
.arch:nth-child(4) { background: var(--coral); min-height: clamp(350px, 55vh, 520px); }
.arch:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.arch__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 44px);
  color: var(--on-pastel);
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1;
  line-height: 1;
}
.arch__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 20px);
  color: var(--on-pastel);
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0,0,0,.10);
}

/* ---------- section shells + the rounded hill ---------------------------- */

.field {
  position: relative;
  padding: clamp(56px, 7vw, 104px) 0 clamp(56px, 7vw, 104px);
  margin-top: -1px;
}
/* the curve that lets each colour field rise into the one above it */
.field--hill {
  border-radius: 50% 50% 0 0 / 90px 90px 0 0;
  margin-top: -60px;
  padding-top: clamp(88px, 10vw, 150px);
}

.field--mint  { background: var(--mint); }
.field--coral { background: var(--coral); }
.field--blue  { background: var(--blue); }
.field--lilac { background: var(--lilac); }
.field--white { background: var(--white); }

.field--mint, .field--coral, .field--blue, .field--lilac { color: var(--on-pastel); }

/* Only the section's own headline block sits on the colour. Cards, books and
   games inside a field keep their own ink -- without this, white text lands on
   white cards and the copy is invisible (measured at 1.0:1). */
.field--mint > .wrap > .head h2, .field--coral > .wrap > .head h2,
.field--blue > .wrap > .head h2, .field--lilac > .wrap > .head h2,
.field--mint > .wrap > .head p, .field--coral > .wrap > .head p,
.field--blue > .wrap > .head p, .field--lilac > .wrap > .head p,
.field--mint > .wrap > .call h2, .field--coral > .wrap > .call h2,
.field--mint > .wrap > .call p, .field--coral > .wrap > .call p { color: var(--on-pastel); }

.head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 52px); }
.head h2 { font-size: var(--t-h2); margin-bottom: 14px; }
.head p { font-size: var(--t-lead); max-width: 48ch; line-height: 1.5; }
.head--center { margin-inline: auto; text-align: center; }
.head--center p { margin-inline: auto; }

/* ---------- white card grid ---------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(246px, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-s);
  color: var(--ink-2);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
/* a card on a colour field must own its ink, not inherit the field's white */
.card h3 { font-size: var(--t-h3); color: var(--ink); }
.card p  { font-size: var(--t-body); color: var(--ink-2); }
.card__tag {
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  color: var(--on-pastel);
  background: var(--mint);
}
.card__tag--coral { background: var(--coral); }
.card__tag--blue  { background: var(--blue); }
.card__tag--lilac { background: var(--lilac); }
.card__tag--pink  { background: var(--pink); }

/* a card with a tinted image panel on top, like the reference's news cards */
.card__media {
  margin: calc(clamp(22px, 2.4vw, 32px) * -1) calc(clamp(22px, 2.4vw, 32px) * -1) 4px;
  border-radius: var(--r-card) var(--r-card) 0 0;
  overflow: hidden;
  background: var(--ground);
}
.card__media img { width: 100%; height: auto; display: block; }

/* coloured cards (the reference mixes white and tinted cards in one grid) */
.card--mint  { background: var(--mint);  color: #fff; }
.card--coral { background: var(--coral); color: #fff; }
.card--lilac { background: var(--lilac); color: #fff; }
.card--blue  { background: var(--blue);  color: #fff; }
.card--mint h3, .card--coral h3, .card--lilac h3, .card--blue h3 { color: #fff; }
.card--mint p, .card--coral p, .card--lilac p, .card--blue p { color: rgba(255,255,255,.94); }

/* ---------- the games row ------------------------------------------------ */

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.game {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 26px;
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-s);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink-2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.game:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.game__shot { background: var(--ground); }
.game__shot img { width: 100%; height: auto; display: block; }
.game__body { display: flex; flex-direction: column; gap: 8px; padding: 0 24px; flex: 1; }
.game h3 { font-size: clamp(21px, 2vw, 26px); }
.game p { font-size: var(--t-small); line-height: 1.5; }
.game__go {
  margin-top: auto;
  padding: 10px 24px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-small);
  color: #a8411c;
}

/* ---------- shelf -------------------------------------------------------- */

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  align-items: stretch;
}
.book {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-s);
}
.book--feature {
  background: var(--on-pastel);
  color: #fff;
  box-shadow: 0 24px 60px rgba(47,38,32,.34);
}
.book--feature h3 { color: #fff; }
.book--feature .book__meta, .book--feature li { color: rgba(255,255,255,.94); }
.book--feature li::before { color: #fff; }
.book h3 { font-size: var(--t-h3); color: var(--ink); }
.book__meta { font-size: var(--t-body); color: var(--ink-2); }
.book li { color: var(--ink-2); }
/* the feature card is dark, so it re-asserts light type (beats .book h3/li) */
.book.book--feature h3 { color: #fff; }
.book.book--feature li { color: rgba(255,255,255,.92); }
.book.book--feature .book__meta { color: rgba(255,255,255,.92); }
.book__price {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 3.4vw, 42px);
  color: var(--ink);
  line-height: 1;
}
.book--feature .book__price { color: #fff; }
.book ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 8px;
  font-size: var(--t-small);
  color: var(--ink-2);
}
.book li { display: flex; gap: .55em; line-height: 1.45; }
.book li::before { content: "•"; color: var(--coral); font-size: 1.2em; line-height: 1; flex: none; }
.book .btn { margin-top: auto; }
/* a white button on a white card has no edge — fill the buy CTAs instead */
.book .btn {
  background: var(--coral);
  color: var(--on-pastel);
  border: 0;
  box-shadow: 0 8px 20px rgba(255,158,128,.38);
}
.book .btn:hover { background: var(--coral-d); }
/* ...but on the dark featured card white is the high-contrast choice */
.book.book--feature .btn {
  background: #fff;
  color: var(--on-pastel);
  box-shadow: var(--shadow-s);
}

/* ---------- proof -------------------------------------------------------- */

.proof {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(32px, 4vw, 60px);
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}
.proof__big {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(58px, 8vw, 104px);
  line-height: .92;
  color: #b8431c;
}
.proof__stats { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 30px); }
.proof__small {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
  color: #3f7d6f;
}
.proof__label { font-size: var(--t-small); color: var(--ink-3); line-height: 1.35; }
.proof h2 { font-size: var(--t-h2); margin-bottom: 16px; }
.proof__quote {
  margin-top: 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-lead);
  line-height: 1.18;
  color: var(--on-pastel);
}

/* ---------- faq ---------------------------------------------------------- */

.faq { display: grid; gap: 14px; }
.qa {
  padding: 22px 28px;
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-s);
}
.qa h3 { font-size: clamp(18px, 1.7vw, 21px); margin-bottom: 8px; color: var(--ink); }
.qa p { font-size: var(--t-body); }

/* ---------- final call --------------------------------------------------- */

.call { text-align: center; padding: clamp(20px, 3vw, 40px) 0; }
.call h2 { font-size: var(--t-h2); margin-bottom: 18px; }
.call p { font-size: var(--t-lead); max-width: 44ch; margin: 0 auto 30px; }
.call__row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

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

.foot {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: clamp(48px, 6vw, 84px) 0 34px;
  border-radius: 50% 50% 0 0 / 70px 70px 0 0;
  margin-top: 40px;
}
.foot h4 {
  font-family: var(--display);
  font-size: var(--t-small);
  color: #fff;
  margin-bottom: 14px;
}
.foot a { display: block; padding: 6px 0; text-decoration: none; font-size: var(--t-small); color: rgba(255,255,255,.75); }
.foot a:hover { color: var(--coral); }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.foot__legal {
  margin-top: 44px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,.72);
}

/* ---------- floating coral orbs ------------------------------------------ */

.orbs {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.orb {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(255,158,128,.5);
  text-decoration: none;
  font-size: 20px;
}
.orb:hover { background: var(--coral-d); }
.orb svg { width: 24px; height: 24px; display: block; }
.orb--play svg { width: 26px; height: 26px; }


/* ---------- ASCII stage hero -------------------------------------------- */

.top-stage {
  /* the black runs to the very top; the nav pill floats on it.
     flow-root stops the nav's top margin from collapsing out of the box. */
  background: #0e1218;
  display: flow-root;
}

.stage-hero {
  position: relative;
  min-height: calc(100svh - 92px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #0e1218;
  border-radius: 0 0 44px 44px;
  isolation: isolate;
}

/* the animation is the whole hero, edge to edge */
#ascii-stage {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* No veil: the artwork is offset clear of the copy, so any shade band here
   only dims the hero and shows as a visible gradient. Kept as an element for
   the mobile-only softening below. */
.stage-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: none;
}

.stage-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 56px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 88px);
  width: 100%;
}

/* the artwork column: glyphs are drawn inside this box and nowhere else */
.stage-hero__artzone {
  min-height: clamp(380px, 52vh, 620px);
  height: 100%;
}

.stage-hero__copy { max-width: none; text-align: left; }

.stage-hero__tag {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--r-pill);
  background: rgba(134,198,184,.16);
  color: #a9dccf;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  margin-bottom: 24px;
}

.stage-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 22px;
  text-shadow: 0 4px 44px rgba(14,18,24,.9);
}

.stage-hero__sub {
  font-size: clamp(16px, 1.45vw, 20px);
  color: rgba(255,255,255,.80);
  max-width: 42ch;
  margin-bottom: 30px;
  line-height: 1.55;
}

.stage-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn--stage {
  background: rgba(255,255,255,.10);
  color: #fff;
  box-shadow: none;
  border: 1px solid rgba(255,255,255,.26);
}
.btn--stage:hover { background: rgba(255,255,255,.18); }

.stage-hero__label {
  margin-top: 26px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}
.stage-hero__label b { color: #a9dccf; font-weight: 600; }

@media (max-width: 900px) {
  .stage-hero { min-height: calc(100svh - 120px); border-radius: 0 0 28px 28px; }
  .stage-hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .stage-hero__artzone { min-height: clamp(260px, 34vh, 380px); }
  /* on a narrow screen the copy fills the width, so the veil turns vertical */
}

/* the arch band inside the skills section */
.arches--band {
  margin: 0 0 clamp(28px, 3.4vw, 48px);
  padding-right: 0;
  margin-right: 0;
}
.arch--sm {
  min-height: clamp(150px, 20vh, 210px) !important;
  padding: 42px 10px 16px;
}
/* keep the band readable no matter which colour field it sits on */
.arches--band .arch:nth-child(1) { background: var(--pink); }
.arches--band .arch:nth-child(2) { background: var(--lilac); }
.arches--band .arch:nth-child(3) { background: var(--blue); }
.arches--band .arch:nth-child(4) { background: var(--coral); }

@media (max-width: 760px) {
  .stage-hero { border-radius: 0 0 28px 28px; min-height: calc(100svh - 78px); }
  .stage-hero__label { font-size: 10px; }
  .arch--sm { min-height: 130px !important; padding-top: 30px; }
}

/* ---------- motion ------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- responsive --------------------------------------------------- */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .arches { grid-template-columns: repeat(4, 1fr); }
  .arch { min-height: 260px !important; }
  .proof { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav { padding: 10px 12px; }
  .nav .btn { margin-left: auto; }
  .arches { grid-template-columns: repeat(2, 1fr); }
  .arch { min-height: 220px !important; padding-top: 50px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .field--hill { border-radius: 50% 50% 0 0 / 46px 46px 0 0; margin-top: -32px; }
}

@media (max-width: 480px) {
  .arch { min-height: 190px !important; padding: 42px 10px 14px; }
  .foot__grid { grid-template-columns: 1fr; }
  .orbs { right: 14px; bottom: 14px; gap: 10px; }
  .orb { width: 46px; height: 46px; font-size: 17px; }
}

/* ---------- arcade cards with real screenshots ---------- */
.games--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .games--three { grid-template-columns: 1fr; } }

.game--shot { padding: 0; overflow: hidden; }
.game--shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--ground);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.game--shot:hover img { transform: scale(1.04); }
.game--shot .game__body { padding: 20px 22px 6px; }
.game--shot .game__go { padding: 0 22px 20px; }


/* ---------- quiet arcade brief (the arcade page does the showing) ---------- */
.brief {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(10px, 1.4vw, 16px);
  max-width: 720px;
  margin: 0 auto;
}
.brief__kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-d, #a8411c);
}
.brief h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.06;
  color: var(--ink);
  margin: 0;
}
.brief p {
  max-width: 54ch;
  color: var(--ink-2);
  font-size: var(--t-lead, 1.05rem);
  line-height: 1.6;
  margin: 0;
}
.brief .btn { margin-top: 8px; }


/* ==========================================================================
   MOBILE POLISH
   Phones are where this gets read. Bigger type, shorter lines, less dead
   space between blocks, and floating buttons that keep off the text.
   ========================================================================== */

@media (max-width: 760px) {
  :root { --margin: 18px; }

  /* --- section rhythm: less air, more content per swipe --- */
  .field { padding-block: 46px; }
  .field--hill { border-radius: 50% 50% 0 0 / 30px 30px 0 0; margin-top: -22px; }

  /* --- headings: still big, but not shouting --- */
  .head { margin-bottom: 26px; }
  .head h2 {
    font-size: clamp(29px, 8.2vw, 38px);
    line-height: 1.04;
    letter-spacing: -0.022em;
  }
  .head p { font-size: 15.5px; line-height: 1.55; }

  /* --- cards: tighter padding, comfortable reading size --- */
  .qa { padding: 19px 18px; border-radius: 22px; }
  .qa h3 { font-size: 17.5px; }
  .qa p { font-size: 15px; line-height: 1.55; }
  .card { padding: 20px 18px; gap: 12px; }
  .book { padding: 22px 18px; gap: 12px; }
  .book__price { font-size: 32px; }
  .book__meta { font-size: 13.5px; line-height: 1.5; }

  /* --- arches: keep the shape, trim the height --- */
  .arch { min-height: 186px !important; padding: 40px 10px 16px !important; }
  .arch__num { font-size: 26px; }
  .arch__name { font-size: 15px; }

  /* --- brief --- */
  .brief { gap: 10px; }
  .brief h2 { font-size: clamp(27px, 7.4vw, 34px); line-height: 1.06; }
  .brief p { font-size: 15.5px; line-height: 1.55; }

  /* --- floating buttons: a compact horizontal pair, clear of the home
         indicator, so they sit on one line of text instead of three --- */
  .orbs {
    flex-direction: row;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }
  .orb { width: 42px; height: 42px; opacity: .95; }
  .orb svg { width: 18px; height: 18px; }

  /* --- footer: leave room so the orbs never sit on the last link --- */
  .foot { padding-bottom: 84px; }

  /* --- long unbroken strings (emails, urls) must not push the layout --- */
  .foot a, .qa p, .book__meta { overflow-wrap: anywhere; }
}
