/* Phone < 640 | Tablet 640–1100 | Desktop > 1100 */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.hero,
.hero__content,
.hero__logo-wrap,
.login-card,
.intro__stage,
.intro__morph,
.brand,
.footer-brand {
  min-width: 0;
  max-width: 100%;
}

.intro__logo {
  width: 100%;
  max-width: 100% !important;
  height: auto;
}

.btn,
.lang button,
.menu-toggle,
.nav a,
.hero__tile {
  -webkit-tap-highlight-color: transparent;
}

@media (hover: none) {
  .hero__tile:hover,
  .reel:hover {
    /* keep tap styles; hover expansion is desktop-only */
  }
}

/* ---- Tablet ---- */
@media (max-width: 1100px) {
  :root {
    --header-h: 70px;
  }

  .section {
    padding: 5.2rem 5vw;
  }

  .hero {
    min-height: 100dvh;
    padding: calc(var(--header-h) + 1.2rem) 5vw 3.4rem;
  }

  .hero__logo {
    height: clamp(64px, 12vw, 140px);
  }

  .hero__tiles {
    grid-template-columns: 1fr 1fr;
  }

  .hero__scroll {
    display: none;
  }

  .manifesto,
  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .facts {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .reels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }

  .reel {
    min-height: 52vh;
    flex: none !important;
  }

  .reel__body {
    max-height: 9rem;
    opacity: 1;
  }

  .reel__char {
    opacity: 0.22;
  }

  .intro.is-extend .intro__morph {
    width: min(88vw, 720px);
    height: calc(min(88vw, 720px) * 0.30075);
  }
}

/* ---- Phone ---- */
@media (max-width: 640px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .news__list {
    max-height: 18rem;
    padding: 1rem 1rem 0.8rem;
  }

  :root {
    --header-h: 62px;
  }

  .section {
    padding: 3.6rem 1.15rem;
    padding-left: max(1.15rem, env(safe-area-inset-left));
    padding-right: max(1.15rem, env(safe-area-inset-right));
  }

  .site-header {
    height: var(--header-h);
    padding: 0 0.7rem 0 max(0.7rem, env(safe-area-inset-left));
    padding-right: max(0.55rem, env(safe-area-inset-right));
  }

  .brand {
    min-width: 0;
    overflow: hidden;
  }

  .brand__full {
    height: 24px;
    max-width: 108px;
  }

  .header-tools {
    gap: 0.3rem;
    flex-shrink: 0;
  }

  .lang {
    padding: 0.1rem;
  }

  .lang button {
    min-width: 1.85rem;
    height: 2rem;
    font-size: 0.68rem;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .nav a {
    font-size: 1.25rem;
    padding: 0.45rem 0;
  }

  .hero {
    min-height: 0;
    place-items: start center;
    padding: calc(var(--header-h) + 1.1rem) 1.15rem 2.2rem;
    padding-bottom: max(2.2rem, env(safe-area-inset-bottom));
  }

  .hero__stage {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .doors,
  .matter,
  .split-two {
    grid-template-columns: 1fr;
  }

  .door {
    min-height: 8.5rem;
    padding: 1.15rem 1rem;
  }

  .band {
    padding: 3.6rem 1.15rem;
  }

  .hero__news .news__list {
    max-height: 16rem;
  }

  .hero__eyebrow {
    letter-spacing: 0.32em;
    padding-left: 0.32em;
    font-size: 0.62rem;
    margin-bottom: 0.75rem;
  }

  .hero__logo {
    height: clamp(52px, 18vw, 84px);
  }

  .hero__names {
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .hero__line {
    font-size: 1.18rem;
    margin-top: 0.85rem;
  }

  .hero__actions {
    margin-top: 1.15rem;
    gap: 0.65rem;
  }

  .hero__actions .btn {
    min-height: 2.85rem;
    padding: 0 1.1rem;
    font-size: 0.68rem;
  }

  .hero__tiles {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-top: 1.5rem;
  }

  .hero__tile {
    min-height: 0;
    padding: 0.85rem 0.95rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.2rem;
  }

  .marquee span {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    padding: 0 1rem;
  }

  .manifesto__ghost {
    font-size: clamp(4.4rem, 28vw, 7rem);
    line-height: 0.85;
  }

  .manifesto__lead {
    font-size: 1.45rem;
  }

  .manifesto__body,
  .about__body {
    font-size: 0.95rem;
  }

  .reels {
    display: flex;
    flex-direction: column;
  }

  .reel {
    min-height: 46vh;
  }

  .reel__char {
    font-size: 4.2rem;
  }

  .reel__copy h3 {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about__frame {
    aspect-ratio: 16 / 10;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .form input,
  .form select,
  .form textarea {
    font-size: 16px;
  }

  .form {
    padding: 1.15rem;
  }

  .contact {
    gap: 1.6rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 1rem;
    padding: 1.6rem 1.15rem calc(1.6rem + env(safe-area-inset-bottom));
  }

  .footer-copy {
    order: 3;
    font-size: 0.68rem;
    line-height: 1.6;
  }

  .intro__skip {
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    min-height: 44px;
    padding: 0 0.4rem;
  }

  .intro__morph {
    width: min(46vw, 160px);
    height: min(46vw, 160px);
  }

  .intro.is-extend .intro__morph {
    width: min(90vw, 420px);
    height: calc(min(90vw, 420px) * 0.30075);
  }

  .login-page {
    padding: calc(var(--header-h) + 1.4rem) 1.15rem 2.4rem;
  }

  .login-card {
    padding: 1.6rem 1.15rem 1.4rem;
    width: calc(100vw - 2.3rem);
  }

  .login-card img {
    height: 48px;
    width: auto;
    max-width: 90%;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    transform: translate(0, 120%);
    width: auto;
    text-align: center;
  }

  .toast.is-on {
    transform: translate(0, 0);
  }
}

@media (max-width: 400px) {
  .hero__actions .btn {
    width: 100%;
  }
}

@media (min-width: 1101px) {
  .hero {
    min-height: 100dvh;
  }

  .reels {
    display: flex;
  }
}
