:root {
  --m9-safe-band-top: 33%;
  --m9-safe-band-bottom: 67%;
}

.m9-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #090916;
}

.m9-hero__media,
.m9-hero__media picture,
.m9-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.m9-hero__media { z-index: 0; }
.m9-hero__media img { object-fit: cover; object-position: center; }

.m9-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgb(0 0 0 / 30%) 0%, transparent 27%, transparent 66%, rgb(0 0 0 / 38%) 100%);
}

.m9-hero__title,
.m9-hero__footer {
  position: absolute;
  z-index: 2;
  left: 50%;
  width: min(calc(100% - 40px), 860px);
  transform: translateX(-50%);
  text-align: center;
}

.m9-hero__title {
  top: clamp(110px, 13vh, 150px);
  margin: 0;
  font-size: clamp(38px, 4vw, 66px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
  text-shadow: 0 2px 20px rgb(0 0 0 / 28%);
}

.m9-hero__footer { bottom: clamp(38px, 7vh, 76px); }

.m9-hero__price {
  margin: 0 0 18px;
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 550;
  line-height: 1.45;
  text-shadow: 0 2px 16px rgb(0 0 0 / 38%);
}

.m9-hero__details {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 999px;
  color: #08080a;
  background: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  transition: transform .3s var(--ease), background .3s ease, box-shadow .3s ease;
}

.m9-hero__details:hover { transform: translateY(-2px); background: #f1f0ee; }
.m9-hero__details:focus-visible { outline: 2px solid #fff; outline-offset: 5px; box-shadow: 0 0 0 5px rgb(5 5 5 / 70%); }
.m9-details-anchor { display: block; height: 1px; visibility: hidden; }

.aito-series-page { background: #000; color: #fff; }

.aito-series {
  position: relative;
  min-height: 100svh;
  padding: clamp(100px, 12vh, 138px) clamp(22px, 3.5vw, 68px) clamp(42px, 6vh, 72px);
  overflow: hidden;
  background: #000;
}

.aito-series__wrap { position: relative; width: min(100%, 1780px); margin: 0 auto; }

.aito-series h2 {
  margin: 0 0 clamp(26px, 4vh, 54px);
  font-size: clamp(34px, 3.2vw, 62px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.aito-series__card {
  display: grid;
  min-height: min(68vh, 760px);
  grid-template-columns: minmax(0, 1.7fr) minmax(360px, .95fr);
  background: #161616;
}

.aito-series__gallery { display: grid; min-width: 0; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; }

.aito-series__main { min-height: 0; overflow: hidden; background: #0c0c0c; }
.aito-series__main img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }

.aito-series__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }

.aito-series__tabs button {
  min-width: 0;
  padding: 0 0 10px;
  border: 0;
  color: #a4a4a7;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.aito-series__tabs button img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; opacity: .7; transition: opacity .28s ease; }
.aito-series__tabs button span { position: relative; display: inline-block; margin-top: 10px; font-size: clamp(13px, 1vw, 18px); }
.aito-series__tabs button span::after { position: absolute; left: 0; bottom: -8px; width: 30px; height: 2px; content: ""; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.aito-series__tabs button[aria-selected="true"] { color: #fff; }
.aito-series__tabs button[aria-selected="true"] img { opacity: 1; }
.aito-series__tabs button[aria-selected="true"] span::after { transform: scaleX(1); }
.aito-series__tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.aito-series__info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 4vw, 74px);
}

.aito-series__info h3 { margin: 0; font-size: clamp(32px, 3vw, 58px); font-weight: 480; line-height: 1.12; letter-spacing: -.04em; }

.aito-series__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 34px); margin-top: clamp(38px, 6vh, 78px); }
.aito-series__stat { display: flex; min-width: 0; flex-direction: column; }
.aito-series__stat strong { display: block; min-height: 1.5em; margin-bottom: 6px; color: #d8d8da; font-size: 12px; font-weight: 550; }
.aito-series__stat span { display: block; min-height: 2.8em; color: #8e8e93; font-size: clamp(11px, .8vw, 14px); line-height: 1.35; }
.aito-series__stat p { margin: auto 0 0; padding-top: 7px; font-size: clamp(24px, 2.1vw, 40px); line-height: 1; white-space: nowrap; }
.aito-series__stat small { font-size: .38em; font-weight: 500; }
.aito-series__stat sup { margin-left: 2px; font-size: .7em; }

.aito-series__price { margin: auto 0 20px; padding-top: clamp(44px, 8vh, 98px); font-size: clamp(15px, 1.2vw, 22px); font-weight: 600; }
.aito-series__action { align-self: flex-start; min-width: 112px; padding: 13px 25px; border-radius: 999px; color: #0a0a0a; background: #fff; font-size: 13px; font-weight: 700; text-align: center; transition: transform .25s ease, background .25s ease; }
.aito-series__action:hover { transform: translateY(-2px); background: #ecebea; }
.aito-series__action:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.aito-series__number { position: absolute; right: 14px; bottom: -42px; color: rgb(255 255 255 / 5%); font-size: clamp(96px, 14vw, 240px); font-weight: 750; line-height: 1; pointer-events: none; }

@media (max-width: 720px) {
  .m9-hero__title { top: calc(var(--header) + 42px); font-size: clamp(36px, 10vw, 48px); }
  .m9-hero__footer { bottom: max(34px, env(safe-area-inset-bottom)); }
  .m9-hero__price { margin-bottom: 15px; font-size: clamp(14px, 4vw, 17px); }
  .m9-hero__details { min-height: 46px; padding-inline: 25px; }

  .aito-series { min-height: auto; padding: 96px 16px 46px; }
  .aito-series h2 { margin-bottom: 24px; font-size: clamp(32px, 10vw, 44px); }
  .aito-series__card { display: block; min-height: 0; }
  .aito-series__main img { min-height: 0; aspect-ratio: 16 / 10; }
  .aito-series__tabs { gap: 4px; }
  .aito-series__tabs button { padding-bottom: 12px; }
  .aito-series__tabs button span { margin-top: 8px; font-size: 12px; }
  .aito-series__info { padding: 34px 20px 38px; }
  .aito-series__info h3 { font-size: clamp(30px, 9vw, 42px); }
  .aito-series__stats { gap: 13px; margin-top: 34px; }
  .aito-series__stat strong { min-height: 3em; font-size: 10px; }
  .aito-series__stat span { min-height: 4.2em; font-size: 10px; }
  .aito-series__stat p { font-size: clamp(21px, 7vw, 29px); }
  .aito-series__price { margin-top: 46px; padding-top: 0; font-size: 14px; }
  .aito-series__number { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .m9-hero__details, .aito-series__action, .aito-series__tabs button img, .aito-series__tabs button span::after { transition: none; }
}
