@media (max-width: 640px) {
  :root {
    --content: calc(100% - 36px);
    --body-copy-size: 16px;
    --radius-lg: 28px;
  }

  html {
    scroll-padding-top: 84px;
    scrollbar-gutter: stable;
  }
  body { overflow-x: hidden; }
  body::after {
    position: fixed;
    z-index: 25;
    inset: 0;
    content: "";
    background: rgba(8, 8, 8, .98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s var(--ease), visibility .25s;
  }

  body.menu-open::after {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .section { padding-block: 76px; }

  /* Shared mobile navigation */
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    min-height: 56px;
    padding: 6px 6px 6px 16px;
  }

  .brand,
  .menu-toggle {
    position: relative;
    z-index: 4;
    min-height: 44px;
  }

  .brand { width: 112px; }

  .menu-toggle {
    justify-content: center;
    padding: 10px 14px;
  }

  .menu-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
  }

  .primary-nav {
    z-index: 3;
    align-items: center;
    max-height: calc(100svh - 82px);
    padding: 26px;
    overflow-y: auto;
    overscroll-behavior: contain;
    text-align: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }

  .primary-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding-block: 8px;
  }

  /* Homepage: image-first hero with a separate reading panel */
  .hero {
    display: grid;
    grid-template-rows: minmax(500px, 72svh) auto;
    height: auto;
    min-height: 0;
    background: #080808;
  }

  .hero-visual {
    position: relative;
    z-index: 0;
    inset: auto;
    grid-row: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .hero-art {
    height: 110%;
    object-position: 50% top;
    transform: translateY(-9.1%);
  }
  .hero-shade { display: none; }

  .hero-content {
    position: relative;
    z-index: 1;
    grid-row: 2;
    justify-content: flex-start;
    width: calc(100% - 36px);
    padding: 42px 0 78px;
  }

  .hero-content > .eyebrow { margin-bottom: 16px; }

  .hero h1 {
    font-size: clamp(36px, 10.5vw, 46px);
    line-height: .94;
    text-wrap: pretty;
  }

  .hero-title-line { white-space: normal; }

  .hero-copy {
    max-width: none;
    margin: 26px 0 18px;
    line-height: 1.62;
  }

  .hero .text-link {
    min-height: 44px;
    padding-block: 12px;
  }

  .main-sheet { margin-top: -28px; }

  /* Homepage introduction */
  .intro { padding-block: 72px 82px; }

  .intro .section-heading.centered {
    max-width: none;
    margin: 0 0 42px;
    text-align: left;
  }

  .intro .section-heading h2,
  .intro .section-heading > p:last-child {
    max-width: none;
    margin-inline: 0;
  }

  .intro .section-heading h2 {
    font-size: clamp(34px, 9.5vw, 40px);
    text-wrap: pretty;
  }

  .intro-video {
    width: calc(100% + 36px);
    margin-left: -18px;
    border-radius: 0;
  }

  /* Homepage experience: title, portrait, then the interactive explanation */
  .approach {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 0;
    gap: 0;
  }

  .approach-visual {
    order: 3;
    width: 100%;
    aspect-ratio: 4 / 5;
    margin-top: 34px;
  }

  .approach-copy {
    display: contents;
  }

  .approach-copy.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .approach-copy > .eyebrow {
    order: 1;
    width: calc(100% - 36px);
    margin: 0 auto 16px;
  }

  .approach h2 {
    order: 2;
    width: calc(100% - 36px);
    margin-inline: auto;
    font-size: clamp(32px, 9.5vw, 40px);
    line-height: .98;
    text-wrap: pretty;
    transform: none;
  }

  .approach-title-line { white-space: normal; }

  .approach .lead {
    position: relative;
    z-index: 1;
    order: 4;
    width: 100%;
    max-width: none;
    margin: -28px 0 0;
    padding: 48px 18px 26px;
    background: var(--paper);
    border-radius: 28px 28px 0 0;
  }

  .process-list {
    order: 5;
    width: 100%;
    padding-inline: 18px;
    background: var(--paper);
  }

  .process-list summary {
    min-height: 64px;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
  }

  .details-body p {
    margin-inline: 34px 0;
    padding: 0 0 20px;
  }

  /* Homepage promo: image first, actions as a full-width stack */
  .promo-band {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .promo-image {
    order: 1;
    min-height: 0;
    aspect-ratio: 5 / 4;
  }

  .promo-image::after { display: none; }

  .promo-image img {
    height: 100%;
    min-height: 0;
    object-position: center;
  }

  .promo-copy {
    position: relative;
    z-index: 1;
    order: 2;
    align-items: center;
    min-height: 0;
    margin-top: -28px;
    padding: 54px 18px 68px;
    background: #080808;
    border-radius: 28px 28px 0 0;
    text-align: center;
  }

  .promo-copy-inner { width: 100%; }

  .promo-copy h2 {
    font-size: clamp(32px, 9.5vw, 40px);
    white-space: normal;
  }

  #promo-title { transform: none; }

  .promo-copy-inner > p:not(.eyebrow) {
    max-width: 32rem;
    margin: 26px auto 32px;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .promo-band .button {
    width: 100%;
    min-height: 50px;
    font-size: 10px;
  }

  /* Homepage experiences */
  .section-heading.centered.solutions-heading {
    width: calc(100% - 36px);
    margin-bottom: 52px;
    text-align: center;
  }

  .solutions-heading .tera-play-logo {
    width: 200px;
    margin-inline: auto;
  }

  .solutions-heading h2,
  .solutions-heading > p:last-child {
    max-width: none;
    margin-right: auto;
    margin-left: auto;
  }

  .solutions-heading h2 {
    font-size: clamp(42px, 12vw, 52px);
    line-height: 1;
    text-wrap: pretty;
  }

  .solutions-heading > p:last-child { margin-top: 28px; }

  .game-marquee {
    --marquee-card: 82vw;
    --marquee-duration: 48s;
  }

  .game-marquee-cta {
    align-items: center;
    margin-top: 40px;
    text-align: center;
  }

  .game-marquee-cta p { max-width: none; }

  .tera-play-cta {
    width: 100%;
    min-height: 50px;
  }

  /* Homepage news becomes a swipeable card rail */
  .news { padding-block: 82px; }

  .news-showcase {
    display: block;
    width: calc(100% - 36px);
  }

  .news-intro {
    display: block;
    min-height: 0;
    padding: 0 0 36px;
  }

  .news h2 {
    font-size: clamp(48px, 14vw, 58px);
    line-height: .92;
  }

  .news-intro-footer {
    grid-template-columns: 1fr;
    align-items: start;
    margin-top: 28px;
    gap: 22px;
  }

  .news-all-link { justify-self: start; }

  .news-card-rail {
    display: flex;
    width: calc(100% + 18px);
    padding: 0 18px 12px 0;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .news-card-rail::-webkit-scrollbar { display: none; }

  .news .news-card,
  .news .news-card-feature,
  .news .news-card-krush,
  .news .news-card-wanita {
    flex: 0 0 min(82vw, 330px);
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    aspect-ratio: auto;
    background: #141613;
    border-radius: 22px;
    scroll-snap-align: start;
  }

  .news .news-card > a {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
  }

  .news .news-card > a::after { display: none; }

  .news .news-card img {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .news .news-card-content,
  .news .news-card-feature .news-card-content {
    position: relative;
    justify-content: flex-start;
    min-height: 250px;
    padding: 22px 20px 24px;
    background: #141613;
  }

  .news .news-card h3,
  .news .news-card-feature h3 {
    font-size: clamp(24px, 7.2vw, 30px);
    line-height: 1.1;
    text-wrap: pretty;
  }

  .news .news-card-action {
    min-height: 44px;
    margin-top: auto;
  }

  /* Homepage closing panel */
  .closing-cta {
    place-items: end start;
    min-height: 0;
    padding: 92px 18px 72px;
    text-align: left;
  }

  .closing-pattern { display: none; }
  .closing-content { width: 100%; }

  .closing-cta h2 {
    max-width: none;
    font-size: clamp(48px, 14vw, 60px);
    line-height: .94;
    text-wrap: pretty;
  }

  .closing-link {
    width: 100%;
    min-height: 52px;
    margin: 36px 0 0;
  }

  /* Shared article and information-page composition */
  .article-hero { padding: 116px 0 56px; }
  .article-hero-inner { width: calc(100% - 36px); }

  .article-back-link,
  .news-index-back {
    min-height: 44px;
    margin-bottom: 30px;
    padding-block: 10px;
  }

  .article-kicker,
  .news-index-kicker { margin-bottom: 16px; }

  .article-title {
    font-size: clamp(40px, 12vw, 54px);
    line-height: .98;
    text-wrap: pretty;
  }

  .article-hero-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 30px;
    padding-top: 22px;
    gap: 20px;
  }

  .article-dek {
    font-size: 18px;
    line-height: 1.5;
  }

  .article-meta {
    display: grid;
    justify-content: start;
    gap: 6px;
    text-align: left;
  }

  .article-meta > * + *::before { content: none; }

  .article-lead-media {
    width: 100%;
    margin-inline: 0;
  }

  .article-lead-frame {
    aspect-ratio: auto;
    border-radius: 0;
  }

  .article-lead-frame > img {
    display: block;
    height: auto;
    object-fit: contain;
  }

  .article-lead-media figcaption {
    width: calc(100% - 36px);
    margin: 14px auto 0;
    padding-inline: 0;
  }

  .article-sheet {
    margin-top: 52px;
    padding: 64px 0 74px;
    border-radius: 28px 28px 0 0;
  }

  .article-body,
  .article-gallery-section,
  .article-navigation {
    width: calc(100% - 36px);
  }

  .article-copy h2 {
    font-size: clamp(34px, 9.5vw, 40px);
    text-wrap: pretty;
  }

  .article-copy .article-lede {
    font-size: 20px;
    line-height: 1.55;
  }

  .article-gallery-section {
    margin-top: 78px;
    padding-top: 48px;
  }

  .article-gallery-header {
    margin-bottom: 30px;
    gap: 18px;
  }

  .article-gallery-header h2 {
    font-size: clamp(36px, 10vw, 42px);
    text-wrap: pretty;
  }

  .article-gallery { grid-template-columns: 1fr; }
  .article-gallery figure.article-gallery-wide { grid-column: 1; }

  .article-gallery img,
  .article-gallery-wide img {
    height: auto;
    aspect-ratio: auto;
  }

  .article-navigation {
    grid-template-columns: 1fr;
    margin-top: 76px;
  }

  .article-navigation a,
  .article-navigation a + a {
    min-height: 132px;
    padding: 26px 0;
    border-left: 0;
    text-align: left;
  }

  .article-navigation a + a { border-top: 1px solid var(--line); }
  .article-navigation a[href="../news-and-updates"] { order: 2; }

  /* About and shared information pages */
  .info-page .article-hero { padding-bottom: 54px; }
  .info-page .article-sheet { margin-top: 0; }

  .info-hero-media {
    width: calc(100% + 36px);
    max-width: none;
    margin: 32px -18px 0;
    border-radius: 0;
  }

  .info-sections,
  .info-faq-section,
  .info-cta {
    width: calc(100% - 36px);
  }

  .info-sections { margin-top: 68px; }

  .info-block {
    display: block;
    padding: 38px 0;
  }

  .info-block-index { margin: 0 0 12px; }

  .info-block h3 {
    margin-bottom: 20px;
    font-size: clamp(29px, 8.5vw, 35px);
    text-wrap: pretty;
  }

  .info-list { margin-top: 24px; }

  .info-list li {
    min-height: 0;
    padding: 14px 4px 14px 26px;
  }

  .info-list li::before { top: 21px; }

  .info-note {
    margin-top: 24px !important;
    padding: 18px 16px;
  }

  .info-page-legal .info-block { padding-block: 34px; }

  .info-faq-section {
    margin-top: 68px;
    padding-top: 44px;
  }

  .info-section-heading {
    margin-bottom: 30px;
    gap: 12px;
  }

  .info-section-heading h2 {
    font-size: clamp(34px, 9.5vw, 40px);
    text-wrap: pretty;
  }

  .info-faq summary {
    grid-template-columns: minmax(0, 1fr) 28px;
    grid-template-areas:
      "number icon"
      "question question";
    min-height: 0;
    padding: 20px 0;
    gap: 10px 12px;
  }

  .info-faq-number { grid-area: number; }
  .info-faq-question {
    grid-area: question;
    font-size: clamp(20px, 5.8vw, 24px);
    text-wrap: pretty;
  }

  .info-faq .accordion-symbol {
    grid-area: icon;
    width: 22px;
    height: 22px;
  }

  .info-faq-answer { padding: 0 0 28px; }

  .info-cta {
    margin-top: 72px;
    padding: 32px 22px;
    background: var(--green);
    border-radius: 24px;
    gap: 28px;
  }

  .info-cta h2 {
    font-size: clamp(34px, 9.5vw, 42px);
    text-wrap: pretty;
  }

  .info-cta h2 + p { margin-top: 18px; }

  .info-cta-link {
    width: 100%;
    min-width: 0;
    min-height: 54px;
  }

  /* News and Updates listing */
  .news-index-hero { padding: 116px 0 60px; }
  .news-index-hero-inner { width: calc(100% - 36px); }

  .news-index-hero h1 {
    font-size: clamp(56px, 17vw, 70px);
    line-height: .88;
    text-wrap: pretty;
  }

  .news-index-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 34px;
    padding-top: 22px;
    gap: 12px;
  }

  .news-index-summary > span { order: -1; }

  .news-index-summary p {
    font-size: 18px;
    line-height: 1.5;
  }

  .news-index-archive {
    padding: 66px 0 84px;
    border-radius: 28px 28px 0 0;
  }

  .news-index-archive-inner { width: calc(100% - 36px); }
  .news-index-heading { margin-bottom: 26px; }
  .news-index-grid { gap: 18px; }

  .news-index-card,
  .news-index-card:last-child:nth-child(odd) {
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 22px;
  }

  .news-index-card > a {
    display: grid;
    grid-template-rows: auto auto;
    height: auto;
  }

  .news-index-card > a::after { display: none; }

  .news-index-card img {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .news-index-card .news-card-content {
    position: relative;
    min-height: 0;
    padding: 22px 20px 24px;
    background: #080808;
  }

  .news-index-card h2 {
    font-size: clamp(25px, 7.5vw, 31px);
    line-height: 1.12;
    overflow-wrap: break-word;
    text-wrap: pretty;
  }

  .news-index-card .news-card-action {
    min-height: 44px;
    margin-top: 22px;
  }

  .news-index-controls {
    flex-direction: column;
    align-items: stretch;
    margin-top: 36px;
    padding-top: 22px;
  }

  .news-index-status { text-align: center; }
  .news-load-more { width: 100%; }

  /* Shared footer: two compact navigation columns */
  .footer-main {
    width: calc(100% - 36px);
    padding-block: 58px;
    gap: 48px;
  }

  .footer-logo { width: 195px; }
  .footer-address { margin-top: 28px; }

  .footer-address a,
  .cookie-settings {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }

  .footer-group h3 { margin-bottom: 14px; }
  .footer-group ul { gap: 0; }

  .footer-group li,
  .footer-group a {
    min-height: 40px;
  }

  .footer-group li,
  .footer-group a {
    display: flex;
    align-items: center;
  }

  .footer-bottom-inner {
    align-items: flex-start;
    width: calc(100% - 36px);
    padding: 20px 0;
    gap: 8px;
    text-align: left;
  }
}

@media (max-width: 640px) and (orientation: landscape) {
  .hero {
    grid-template-rows: minmax(500px, 125vw) auto;
  }

  .hero-art {
    object-position: 50% 90%;
  }
}
