/* Phone-first reading, touch controls and forms shared by the three pages. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-wrap: break-word; }
.contact-form input, .contact-form select, .contact-form textarea { min-width: 0; font-size: 1rem; font-weight: 400; }
.mobile-nav.is-open { max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; }
.home-games-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.home-game { display: block; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--color-background); }
.home-game[id] { scroll-margin-top: var(--header-offset); }
.home-game > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.home-game > div { padding: 22px; }
.home-game h3 { font-size: 1.6rem; }
.home-game p { margin-top: 12px; color: var(--color-muted); font-size: .95rem; }
.home-game .text-link { margin-top: 12px; min-height: 44px; align-items: center; font-size: .9rem; }
.home-games-all { margin-top: 28px; }
.game-story { margin-top: 0; }
.game-story summary { display: flex; align-items: center; min-height: 44px; gap: 10px; cursor: pointer; list-style: none; color: var(--color-blue); font-size: .9rem; font-weight: 800; }
.game-story summary::-webkit-details-marker { display: none; }
.game-story summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; }
.game-story[open] summary::after { content: "−"; }
.game-story > p { padding-top: 8px; color: var(--color-muted); font-size: .95rem; }

@media (min-width: 768px) {
  .home-games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .home-game > div { padding: 24px; }
  .mobile-nav.is-open { max-height: calc(100dvh - 88px); }
}

@media (max-width: 767px) {
  :root { --header-offset: 84px; }
  .container { width: calc(100% - 32px); }
  .header-row { min-height: 68px; }
  .brand__logo { width: 152px; height: 25px; }
  .nav-toggle { width: 48px; height: 48px; }
  .mobile-nav.is-open { padding: 8px 16px 16px; max-height: calc(100dvh - 68px); }
  .mobile-nav a { padding: 12px 14px; font-size: 1rem; }
  .section { padding-block: 48px; }
  .section-heading { margin-bottom: 28px; }
  .eyebrow { font-size: .7rem; line-height: 1.6; letter-spacing: .06em; }
  .hero--commercial { padding-top: 20px; padding-bottom: 0; }
  .hero--commercial .hero-layout { gap: 24px; }
  .hero--commercial .hero-head { padding-block: 12px 0; }
  .hero--commercial h1 { font-size: clamp(1.8rem, 7.5vw, 2.5rem); line-height: 1.18; }
  .hero-eyebrow { margin-bottom: 18px; }
  .hero-description { margin-top: 20px; font-size: 1rem; line-height: 1.65; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 24px; }
  .hero-actions .button, .kids-hero .button, .games-intro .button, .home-games-all { width: 100%; min-height: 52px; padding: 14px 16px; font-size: .9rem; }
  .hero-project-link { justify-content: center; min-height: 44px; font-size: .9rem; }
  .hero--commercial .hero-footnote { margin-top: 12px; font-size: .8rem; }
  .equipment-showcase { padding-top: 24px; }
  .equipment-showcase > p { font-size: .95rem; }
  .equipment-grid { margin-top: 20px; gap: 20px 12px; }
  .equipment-grid img { height: 112px; }
  .equipment-grid figcaption { font-size: .85rem; }
  .offers-section { padding-top: 40px; }
  .offers-heading { margin-bottom: 24px; }
  .offer-body { padding: 24px 20px; }
  .offer-duration { margin-bottom: 14px; font-size: .82rem; }
  .offer h3 { font-size: clamp(1.65rem, 7vw, 2rem); line-height: 1.15; }
  .offer-audience { font-size: .9rem; line-height: 1.6; }
  .offer-subtitle { font-size: .95rem; }
  .offer-promise { margin-top: 16px; font-size: 1rem; line-height: 1.65; }
  .offer-includes { font-size: .95rem; gap: 10px; }
  .offer-formats__label { font-size: .82rem; }
  .offer-formats__list { gap: 12px; }
  .offer-formats__list--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-formats__list span { font-size: .8rem; }
  .offer-model strong { font-size: .95rem; }
  .offer-model > span { font-size: .85rem; }
  .offer-interest { display: inline-flex; min-height: 48px; font-size: .95rem; }
  .offer-discover { min-height: 52px; font-size: .9rem; }
  .hardware-workshop > p, .hardware-formats p, .hardware-practical dd { font-size: .95rem; }
  .hardware-practical dt { font-size: .95rem; }
  .hardware-section { padding-bottom: 40px; }
  .hardware-formats { gap: 24px; }
  .hardware-formats article { grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; }
  .hardware-formats img { height: 145px; }
  .project-card__body { padding: 24px 20px; }
  .project-card__body > p, .games-gallery-grid .project-card__body > p { font-size: .95rem; }
  .project-card__body .project-card__kicker { font-size: .75rem; line-height: 1.6; letter-spacing: .045em; }
  .project-card__body h3, .games-gallery-grid .project-card__body h3 { font-size: 1.6rem; min-height: 0; }
  .project-meta { padding-top: 18px; }
  .project-meta li { font-size: .75rem; line-height: 1.5; }
  .project-card__title { min-height: 0; padding-top: 4px; font-size: 1.3rem; line-height: 1.25; }
  .project-carousel__footer { padding: 14px 16px; }
  .project-carousel__controls { height: 48px; margin-top: 12px; gap: 6px; }
  .project-carousel__arrow { flex-basis: 44px; width: 44px; height: 44px; }
  .project-carousel__dots button { flex-basis: 32px; width: 32px; height: 44px; }
  .project-carousel__count { flex-basis: 34px; font-size: .8rem; }
  .project-card__play, .project-card__cta { min-height: 48px; font-size: .9rem; }
  .project-card__gallery-note { font-size: .8rem; }
  .contact-shell { gap: 28px; padding: 28px 20px; border-radius: 18px; }
  .contact-copy h2 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .contact-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 1rem; }
  .contact-form { gap: 18px; }
  .contact-form label { font-size: .9rem; }
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 1rem; min-height: 52px; padding: 14px 12px; }
  .contact-form textarea { min-height: 120px; }
  .contact-form .button { min-height: 52px; padding-inline: 12px; font-size: .9rem; }
  .contact-form__note, .contact-form__explanation { font-size: .85rem; }
  .footer-nav { max-width: 100%; gap: 4px 20px; padding-right: 60px; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
  .footer-row p { font-size: .8rem; }
  .story__copy p { font-size: 1rem; }
  .game-modal__close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); width: 48px; height: 48px; }
  .kids-page { --kids-section-space: 48px; }
  .kids-page h1 { font-size: clamp(2.15rem, 9vw, 3.2rem); }
  .kids-page h2 { font-size: clamp(2rem, 7.5vw, 2.5rem); }
  .kids-copy > p { font-size: 1rem; }
  .kids-copy .kids-hero-note, .kids-hero-visual figcaption, .kids-game-example figcaption { font-size: .85rem; }
  .kids-benefits { grid-template-columns: minmax(0, 1fr); }
  .kids-benefits article { padding: 22px; }
  .kids-benefits h3 { font-size: 1.4rem; }
  .kids-benefits p, .kids-context-list p, .kids-process details > p, .kids-faq details > p { font-size: 1rem; }
  .kids-process details { padding: 12px 16px; }
  .kids-process summary, .kids-faq summary { display: flex; align-items: center; min-height: 44px; font-size: 1rem; }
  .kids-process summary::after, .kids-faq summary::after { top: 50%; transform: translateY(-50%); }
  .kids-demo-link { min-height: 48px; font-size: .95rem; }
  .games-intro h1 { font-size: clamp(2.15rem, 9vw, 3.2rem); }
  .games-intro-layout p { font-size: 1rem; }
  .games-jump-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; padding-top: 16px; }
  .games-jump-links a { min-height: 44px; font-size: .9rem; }
  .games-featured-card .project-carousel__viewport, .games-gallery-grid .project-carousel__viewport { height: auto; aspect-ratio: 16 / 10; }
  .games-featured-card .project-card__body, .games-gallery-grid .project-card__body { padding: 24px 20px; }
  .games-featured-card .project-card__body h3 { font-size: 1.7rem; }
  .games-featured-card .project-card__body > p { font-size: 1rem; }
  .games-featured-card .project-card__title { font-size: 1.4rem; }
  .games-gallery-grid .project-gallery__viewport img { object-fit: contain; }
}

@media (min-width: 540px) and (max-width: 767px) {
  .kids-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (hover: none) {
  .button:hover, .project-card:hover { transform: none; box-shadow: none; }
}
