/*
 * OASIS responsive layer
 * Loaded after each page stylesheet so desktop-specific fixed sizes do not
 * leak into tablet and mobile layouts.
 */

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

/* The hamburger toggle is mobile-only. Keep it out of the desktop header. */
.nav-toggle {
  display: none;
}

@media (max-width: 1100px) {
  .nav-inner,
  .product-inner,
  .brand-inner,
  .home-news-inner,
  .home-news-track,
  .products-inner,
  .news-inner,
  .blog-inner,
  .contact-inner,
  .why-inner,
  .what-inner,
  .how-inner,
  .miro-pool-inner,
  .mpfull-inner,
  .miro-spec-inner,
  .feature-image-wrap,
  .andamiro-response-inner,
  .andamiro-metrics-inner,
  .andamiro-spec-inner,
  .footer-inner {
    padding-left: 40px;
    padding-right: 40px;
  }

  .about-section {
    padding-left: 40px;
    padding-right: 40px;
  }

  .tabs-inner,
  .partner-inner {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 767px) {
  :root {
    --nav-height: 68px;
  }

  html {
    scroll-padding-top: var(--nav-height);
    -webkit-text-size-adjust: 100%;
  }

  body {
    width: 100%;
    overflow-x: hidden;
  }

  body.nav-menu-open {
    overflow: hidden;
  }

  img,
  video {
    height: auto;
  }

  /* Navigation */
  .nav {
    height: var(--nav-height);
  }

  body:not(.page-main) .nav {
    background: #000;
  }

  .nav-inner {
    min-width: 0;
    padding: 0 16px;
  }

  .nav-logo img {
    width: auto;
    height: 27px;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
    margin-right: -8px;
    margin-left: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: 0;
    border-radius: 0;
    background: transparent;
    appearance: none;
    cursor: pointer;
    z-index: 2;
    touch-action: manipulation;
  }

  .nav-toggle span {
    width: 24px;
    height: 2px;
    display: block;
    flex: 0 0 2px;
    background: #fff;
    transition: transform .25s ease, opacity .25s ease;
  }

  .nav--open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav--open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav--open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-right {
    position: fixed;
    inset: var(--nav-height) 0 0;
    height: calc(100dvh - var(--nav-height));
    padding: 20px 20px calc(28px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 20px;
    background: rgba(0, 0, 0, .98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav--open .nav-right {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-menu a {
    min-height: 56px;
    padding: 17px 4px;
    display: flex;
    align-items: center;
    font-size: 18px;
    line-height: 1.25;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .nav-right .btn-contact {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Main hero */
  .page-main .hero {
    height: 100svh;
    min-height: 560px;
    max-height: 820px;
  }

  .page-main .hero__video {
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .page-main .hero__content {
    padding: var(--nav-height) 20px 32px;
    box-sizing: border-box;
  }

  .page-main .hero__mark {
    width: min(82vw, 360px);
    height: auto;
  }

  .page-main .hero__subtitle {
    max-width: 340px;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  /* Main product cards */
  .page-main .section-product {
    height: auto;
    min-height: 0;
    padding: 76px 0 88px;
  }

  .page-main .product-inner,
  .page-main .brand-inner,
  .home-news-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-main .product-head {
    margin-bottom: 34px;
  }

  .page-main .product-title {
    margin: 0 0 20px;
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.2;
  }

  .page-main .product-sub {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    word-break: keep-all;
  }

  .page-main .product-sub br {
    display: none;
  }

  .page-main .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .page-main .product-card {
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }

  .page-main .product-card img {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .page-main .card-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  /* Future image: show the complete artwork instead of cropping it. */
  .page-main .section-future {
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .page-main .future-bg,
  .page-main .future-bg img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    display: block;
  }

  .page-main .future-bg img {
    object-fit: contain;
    filter: brightness(.9);
  }

  .page-main .future-content {
    position: relative;
    inset: auto;
    padding: 34px 20px 72px;
    text-align: left;
  }

  .page-main .future-title {
    margin: 0 0 20px;
    font-size: 27px;
    line-height: 1.4;
    word-break: keep-all;
    opacity: 1;
    transform: none;
  }

  .page-main .future-sub {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
  }

  .page-main .future-line {
    display: inline;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .page-main .section-future::after {
    display: none;
  }

  /* Values become image cards with stable 4:3 proportions. */
  .page-main .section-values {
    height: auto;
    padding: 0 20px 76px;
    box-sizing: border-box;
  }

  .page-main .section-values::before {
    display: none;
  }

  .page-main .values-grid {
    height: auto;
    gap: 16px;
  }

  .page-main .value-card,
  .page-main .value-card.active,
  .page-main .value-card.dimmed {
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    flex: none;
    border-radius: 16px;
    filter: none;
  }

  .page-main .value-card img,
  .page-main .value-card.active img {
    height: 100%;
    object-fit: cover;
    filter: brightness(.78);
    transform: none;
  }

  .page-main .value-content {
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: auto;
    height: auto;
  }

  .page-main .value-title {
    font-size: 30px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .page-main .value-tag,
  .page-main .value-desc {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .page-main .value-tag {
    margin: 0 0 4px;
    font-size: 15px;
  }

  .page-main .value-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
  }

  /* Brand image strip keeps each portrait's natural ratio. */
  .page-main .section-brand {
    min-height: 0;
    padding: 78px 0 88px;
  }

  .page-main .brand-copy {
    margin-bottom: 42px;
  }

  .page-main .brand-tag {
    font-size: 16px;
  }

  .page-main .brand-title {
    margin-bottom: 28px;
    font-size: 26px;
    line-height: 1.45;
    word-break: keep-all;
  }

  .page-main .brand-strip {
    width: calc(100% + 20px);
    margin-right: -20px;
    gap: 14px;
    transform: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .page-main .brand-strip::-webkit-scrollbar {
    display: none;
  }

  .page-main .brand-strip img,
  .page-main .brand-strip .ocean1,
  .page-main .brand-strip .ocean2,
  .page-main .brand-strip .ocean3,
  .page-main .brand-strip .ocean4 {
    width: auto;
    height: 320px !important;
    flex: 0 0 auto;
    object-fit: contain;
    transform: none;
    scroll-snap-align: start;
  }

  /* News slider and listing cards */
  .home-news {
    padding: 76px 0 92px;
  }

  .home-news-head {
    margin-bottom: 26px;
  }

  .home-news-title {
    font-size: 28px;
    line-height: 1.4;
    word-break: keep-all;
  }

  .home-news-slider {
    justify-content: flex-start;
  }

  .home-news-track {
    width: 100%;
    max-width: none;
    padding: 0 20px;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-news-track::-webkit-scrollbar {
    display: none;
  }

  .home-news-card {
    flex: 0 0 min(84vw, 360px);
    scroll-snap-align: center;
  }

  .home-news-thumb {
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
  }

  .home-news-arrow {
    display: none;
  }

  /* About */
  .about-tabs {
    margin-top: calc(var(--nav-height) + 24px);
  }

  .tabs-inner {
    gap: 22px;
    padding: 0 20px;
    overflow-x: auto;
  }

  .about-tab {
    min-height: 44px;
    flex: 0 0 auto;
    font-size: 16px;
  }

  .about-section {
    padding: 28px 20px 76px;
  }

  .org-container,
  .history-container {
    display: block;
    margin-top: 10px;
  }

  .org-title,
  .history-title {
    font-size: 30px;
  }

  .history-title br {
    display: none;
  }

  .org-right,
  .history-right {
    margin: 38px 0 0;
    gap: 44px;
  }

  .org-label,
  .history-label {
    font-size: 21px;
  }

  .org-text {
    font-size: 16px;
    line-height: 1.8;
    word-break: keep-all;
  }

  .history-block {
    display: block;
    padding-bottom: 12px;
  }

  .history-block::after {
    bottom: -22px;
  }

  .history-list {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.85;
  }

  .partner-inner {
    padding: 0 20px;
  }

  /* Product listing */
  .section-products {
    padding-top: calc(var(--nav-height) + 42px);
    padding-bottom: 82px;
  }

  .products-inner {
    padding: 0 20px;
  }

  .products-head {
    align-items: stretch;
    margin-bottom: 28px;
  }

  .products-title {
    font-size: 32px;
  }

  .products-filter {
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
    overflow: visible;
  }

  .filter-btn {
    min-height: 42px;
    flex: 0 0 auto;
  }

  .products-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-product .product-card {
    min-height: 0;
  }

  .page-product .product-thumb {
    height: auto;
    aspect-ratio: 16 / 10;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #111;
  }

  .page-product .product-meta {
    padding: 20px 20px 24px;
  }

  /* Product detail pages */
  .page-miro .miro-hero {
    min-height: 0;
    height: auto;
    padding-top: var(--nav-height);
  }

  .page-miro .miro-hero::after {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    display: block;
    background-position: center;
    background-size: contain;
  }

  .page-miro .miro-inner {
    padding: 24px 20px 64px;
  }

  .miro-title,
  .andamiro-title {
    font-size: clamp(42px, 15vw, 64px);
  }

  .miro-desc,
  .andamiro-desc {
    font-size: 15px;
    line-height: 1.75;
    word-break: keep-all;
  }

  .miro-section-pool,
  .miro-performance-full,
  .miro-spec,
  .andamiro-feature,
  .andamiro-response,
  .andamiro-metrics,
  .andamiro-spec {
    padding: 72px 0;
    margin-top: 0;
  }

  .miro-pool-inner,
  .mpfull-inner,
  .miro-spec-inner,
  .feature-image-wrap,
  .andamiro-response-inner,
  .andamiro-metrics-inner,
  .andamiro-spec-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .miro-pool-image-wrap,
  .mpfull-img,
  .miro-spec-image-wrap,
  .feature-image,
  .response-image,
  .andamiro-metrics-img,
  .spec-image {
    border-radius: 14px;
  }

  .miro-spec-title,
  .spec-title {
    margin-bottom: 32px;
    font-size: 25px;
  }

  .andamiro-hero {
    height: auto;
    min-height: 720px;
    padding-top: var(--nav-height);
    box-sizing: border-box;
  }

  .andamiro-hero::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.05) 12%, rgba(0, 0, 0, 0.45) 48%, #000 72%),
      radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.12), transparent 42%);
  }

  .andamiro-hero-product {
    top: calc(var(--nav-height) + 10px);
    right: -32vw;
    bottom: auto;
    width: 126vw;
    height: 54%;
    object-position: right top;
    filter: brightness(0.86) contrast(1.06) drop-shadow(0 18px 42px rgba(0, 0, 0, 0.7));
  }

  .andamiro-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    align-self: flex-end;
    padding: 48px 20px 64px;
    box-sizing: border-box;
  }

  .feature-title,
  .response-title,
  .spec-title {
    font-size: 24px;
    line-height: 1.45;
    word-break: keep-all;
  }

  .feature-bottom,
  .response-desc {
    padding: 0 20px;
    font-size: 16px;
    word-break: keep-all;
  }

  /* Brand story */
  .brand-hero {
    height: min(70svh, 620px);
    min-height: 480px;
  }

  .brand-hero__video {
    height: 100%;
    object-fit: cover;
  }

  .section-about-identity {
    min-height: 0;
    padding: 88px 20px;
    background-size: contain;
    background-position: center top;
    background-color: #000;
  }

  .identity-logo {
    width: min(72vw, 280px);
    height: auto;
  }

  .identity-title {
    font-size: 34px;
  }

  .identity-text {
    font-size: 15px;
    line-height: 1.8;
    word-break: keep-all;
  }

  .section-why,
  .section-what,
  .section-how,
  .page-brand .section-product {
    margin-top: 0;
    padding: 72px 0;
  }

  .why-inner,
  .what-inner,
  .how-inner,
  .page-brand .product-inner {
    padding: 0 20px;
  }

  .page-brand .section-title {
    font-size: 31px;
  }

  .why-image,
  .what-image,
  .how-image1,
  .how-image2,
  .page-brand .product-image {
    height: auto;
    border-radius: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #000;
  }

  .why-image { aspect-ratio: 1488 / 569; }
  .what-image { aspect-ratio: 1496 / 600; }
  .how-image1,
  .how-image2,
  .page-brand .product-image { aspect-ratio: 1488 / 505; }

  .how-image2 {
    margin-top: 20px;
  }

  /* News, blog and article pages */
  .page-news,
  .page-blog {
    padding-top: var(--nav-height);
  }

  .section-news,
  .section-blog {
    padding: 46px 0 82px;
  }

  .news-inner,
  .blog-inner {
    padding: 0 20px;
  }

  .news-title,
  .blog-title {
    font-size: 32px;
  }

  .news-grid,
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    margin-top: 42px;
  }

  .news-thumb,
  .blog-thumb {
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background-size: cover;
  }

  .blog-post {
    width: 100%;
    padding: calc(var(--nav-height) + 38px) 20px 88px;
  }

  .post-title {
    margin-top: 0;
    font-size: 30px;
    line-height: 1.35;
    word-break: keep-all;
  }

  .post-date {
    margin-bottom: 28px;
    padding-bottom: 20px;
    font-size: 15px;
  }

  .post-hero,
  .post-image {
    height: auto;
    margin: 28px 0;
    border-radius: 12px;
    object-fit: contain;
  }

  .post-content {
    font-size: 16px;
    line-height: 1.8;
  }

  .post-content h2 {
    margin-top: 44px;
    font-size: 23px;
  }

  blockquote {
    margin: 28px 0;
    padding: 16px 18px;
    font-size: 15px;
  }

  /* Contact form */
  .contact-page {
    padding: calc(var(--nav-height) + 36px) 0 84px;
  }

  .contact-inner {
    padding: 0 20px;
  }

  .contact-title {
    margin: 0 0 42px;
    font-size: 30px;
  }

  .form-row {
    margin-bottom: 34px;
  }

  .two-col {
    flex-direction: column;
    gap: 28px;
  }

  .form-group input,
  .form-group textarea,
  .file-upload-label {
    font-size: 16px;
  }

  .radio-group {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .radio-group label {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .agree-box {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }

  .agree-check-row,
  .submit-row,
  .form-status {
    text-align: left;
  }

  .submit-row {
    margin-top: 38px;
  }

  .submit-btn {
    width: 100%;
    min-height: 52px;
  }

  /* Footer */
  .site-footer {
    padding: 42px 0 calc(30px + env(safe-area-inset-bottom));
  }

  .footer-inner {
    display: block;
    padding: 0 20px;
  }

  .footer-logo {
    margin-bottom: 28px;
  }

  .footer-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-col {
    min-width: 0;
  }

  .footer-bottom {
    margin-top: 28px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 374px) {
  .page-main .hero__subtitle,
  .future-sub,
  .identity-text,
  .post-content {
    font-size: 14px;
  }

  .page-main .brand-strip img,
  .page-main .brand-strip .ocean1,
  .page-main .brand-strip .ocean2,
  .page-main .brand-strip .ocean3,
  .page-main .brand-strip .ocean4 {
    height: 280px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
