/* Soft depth and category browsing */
:root {
  --card-shadow: 0 3px 6px rgba(26, 26, 36, 0.015), 0 14px 34px rgba(26, 26, 36, 0.055);
  --card-hover-shadow: 0 5px 12px rgba(26, 26, 36, 0.025), 0 24px 48px rgba(26, 26, 36, 0.095);
}

.product-card {
  border: 0;
  border-radius: 32px;
  box-shadow: var(--card-shadow);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

.catalog-grid {
  gap: 28px;
}

.card-image {
  height: 310px;
  padding: 35px 30px 0;
}

.card-body {
  padding: 0 30px 32px;
}

.card-swatches {
  margin: 14px 0 24px;
}

@media (max-width: 700px) {
  .product-card {
    border-radius: 28px;
  }
  .card-image {
    height: 320px;
  }
  .card-body {
    padding: 0 28px 32px;
  }
}
/* Keep mobile packshots inside the image area without a tilted crop. */
@keyframes phone-enter-mobile {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Product specifications and direct store */
.bag-link {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 32px;
  min-height: 38px;
  justify-content: center;
}

.bag-link svg {
  width: 21px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.bag-link span {
  font-size: 12px;
  position: absolute;
  right: -7px;
  top: 0;
}

.button:disabled {
  background: #c9c9ce;
  color: #fff;
  cursor: default;
  box-shadow: none;
}

@media (max-width: 1200px) {
  .global nav {
    gap: 15px;
  }
  .global nav a:nth-child(n+5) {
    display: none;
  }
  .nav-tools {
    gap: 12px;
  }
}
@media (max-width: 640px) {
  .bag-link {
    min-width: 27px;
  }
  .nav-tools {
    gap: 7px;
  }
}
/* Keep every real product image inside its reserved card area. */
.card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.card-image > img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.accessory-catalog {
  max-width: 1480px;
  padding-top: 24px;
}

.accessory-catalog .catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.accessory-catalog .card-image {
  height: 260px;
  padding: 28px 25px 15px;
}

.accessory-catalog .card-body {
  padding: 0 22px 28px;
}

.accessory-catalog .card-body h3 {
  font-size: 23px;
}

.accessory-catalog .card-specs {
  font-size: 13px;
  line-height: 1.7;
}

.accessory-catalog .card-swatches {
  margin: 8px 0 20px;
}

.accessory-catalog .product-card {
  min-height: 0;
}

.accessory-card .card-image > img {
  width: 82%;
  height: 82%;
}

@media (max-width: 1100px) {
  .accessory-catalog .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .accessory-catalog .card-image {
    height: 275px;
    padding: 25px 30px 10px;
  }
  .accessory-catalog .card-body {
    padding: 0 28px 30px;
  }
}
@media (max-width: 640px) {
  .accessory-catalog .catalog-grid {
    grid-template-columns: 1fr;
  }
  .accessory-catalog .card-image {
    height: 250px;
    padding: 22px 26px 12px;
  }
  .accessory-catalog .card-body {
    padding: 0 26px 28px;
  }
  .accessory-card .card-image > img {
    max-width: 260px;
    max-height: 240px;
  }
  .accessory-catalog .card-body h3 {
    font-size: 24px;
  }
}
/* News and company pages use the same calm Japanese typography. */
.global nav {
  gap: 23px;
}

#press-result-label {
  font-size: 14px;
  color: #74747a;
  margin: 0 0 28px;
}

@media (min-width: 1201px) and (max-width: 1400px) {
  .global nav {
    gap: 14px;
    font-size: 12px;
  }
  .global {
    gap: 15px;
  }
  .nav-tools {
    gap: 13px;
  }
  .nav-compare {
    font-size: 12px;
  }
}

:root {
  --visual-ink: #17171a;
  --visual-muted: #77777c;
}

.cinema-copy :is(h1, h2) {
  font-size: clamp(58px, 6.8vw, 96px);
  line-height: 1.12;
  letter-spacing: -0.055em;
  margin: 20px 0 24px;
  font-weight: 650;
}

.life-heading h2,
.camera-heading h2,
.life-rail-section h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  letter-spacing: -0.06em;
  line-height: 1.18;
}

.life-rail-section {
  padding-top: 90px;
  padding-bottom: 100px;
  overflow: hidden;
}

.life-rail {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0 28px;
  scrollbar-width: thin;
  scrollbar-color: #bbb transparent;
}

.media-viewer,
.film-viewer {
  width: min(1200px, 94vw);
  max-width: 1200px;
  max-height: 94svh;
  border: none;
  border-radius: 24px;
  padding: 24px;
  background: #151518;
  color: #fff;
  box-shadow: 0 24px 120px rgba(0, 0, 0, 0.3333333333);
}

.media-viewer::backdrop,
.film-viewer::backdrop {
  background: rgba(0, 0, 0, 0.7333333333);
  backdrop-filter: blur(18px);
}

.media-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.2352941176);
  border-radius: 50%;
  height: 42px;
  width: 42px;
  background: rgba(20, 20, 25, 0.6784313725);
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.media-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 200px;
}

.media-image-wrap > img {
  width: 100%;
  height: min(68svh, 820px);
  object-fit: contain;
}

.media-prev,
.media-next {
  position: absolute;
  top: 50%;
  height: 42px;
  width: 42px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

.media-prev {
  left: 8px;
}

.media-next {
  right: 8px;
}

.media-info {
  padding: 14px 20px;
  font-size: 13px;
  line-height: 1.5;
}

.media-info p {
  margin: 6px 0;
}

.media-info p:nth-child(2) {
  color: #aaaab2;
  font-size: 11px;
}

.media-info a {
  display: inline-block;
  margin-top: 8px;
}

.film-viewer h2 {
  font-size: 21px;
  padding: 8px 60px 16px 10px;
  margin: 0;
}

.film-viewer video {
  width: 100%;
  height: auto;
  max-height: 70svh;
  background: #000;
  display: block;
}

.film-viewer p,
.film-viewer > a {
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 760px) {
  .cinema-copy :is(h1, h2) {
    font-size: 53px;
  }
  .life-rail-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .media-viewer,
  .film-viewer {
    padding: 12px;
    width: 96vw;
    border-radius: 18px;
  }
  .media-image-wrap > img {
    height: 65svh;
  }
  .media-info {
    padding: 10px 6px;
    font-size: 11px;
  }
  .media-info p:nth-child(2) {
    font-size: 10px;
  }
  .film-viewer h2 {
    font-size: 17px;
    padding-right: 50px;
  }
}

/* Headlines are edited separately from technical facts, so one-character overflow never drives the layout. */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
}

p,
li,
dd {
  text-wrap: pretty;
}

.card-body h3 {
  font-size: 24px;
  line-height: 1.3;
}

.section-heading > a,
.card-actions .button,
.store-card-actions .button {
  white-space: nowrap;
}

.product-card .card-body > p {
  text-wrap: balance;
}

@media (max-width: 1200px) {
  .global nav {
    display: none !important;
  }
  .global .menu-button {
    display: grid;
  }
  .global .nav-tools {
    margin-left: auto;
  }
  .global {
    gap: 20px;
    justify-content: space-between;
  }
}
.hero[data-product=edge60pro] h1,
.hero[data-product=g06] h1,
.hero[data-product=g37global] h1 {
  font-size: clamp(40px, 4.1vw, 60px);
}

@media (max-width: 760px) {
  .hero[data-product=edge60pro] h1,
  .hero[data-product=g06] h1 {
    font-size: 36px;
  }
  .hero[data-product=g37global] h1 {
    font-size: 42px;
  }
}
.g37-color-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 850px;
  padding: 110px 8% 100px;
  display: grid;
  grid-template-columns: 47% 53%;
  align-items: center;
  background: color-mix(in srgb, var(--moto-color) 12%, #fff);
  transition: background 1.2s ease;
  color: #18181d;
}

.color-ribbons {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.color-ribbon {
  position: absolute;
  height: 190px;
  width: 95%;
  left: 40%;
  background: var(--ribbon);
  transform: rotate(-24deg);
  opacity: 0.72;
  animation: ribbon-drift 16s ease-in-out infinite alternate;
  transform-origin: center;
}

.ribbon-0 {
  top: -70px;
}

.ribbon-1 {
  top: 190px;
  animation-delay: -5s;
}

.ribbon-2 {
  top: 480px;
  animation-delay: -10s;
}

.g37-color-copy {
  position: relative;
  z-index: 2;
}

.g37-color-copy h2 {
  font-size: clamp(50px, 6vw, 90px);
  line-height: 1.15;
  letter-spacing: -0.06em;
  margin: 18px 0 26px;
  white-space: nowrap;
}

.g37-color-copy > p:not(.eyebrow):not(.g37-selected-color) {
  font-size: 20px;
  line-height: 1.7;
}

.g37-color-copy .eyebrow {
  font-size: 14px;
}

.g37-color-options {
  display: flex;
  gap: 10px;
  margin-top: 36px;
}

.g37-color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 18px;
  font: inherit;
}

.g37-color-option span {
  display: block;
  background: var(--option-color);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.0666666667);
  outline: 2px solid transparent;
  outline-offset: 5px;
  transition: transform 0.3s, outline-color 0.3s;
}

.g37-color-option.active span {
  outline-color: #17171a;
  transform: scale(1.07);
}

.g37-color-option small {
  font-size: 12px;
  white-space: nowrap;
}

.g37-selected-color {
  font-size: 15px;
  min-height: 24px;
}

.color-tour-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: #292931;
  cursor: pointer;
}

.g37-color-art {
  position: relative;
  height: 650px;
}

.g37-color-phone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) rotate(-6deg) scale(0.94);
  transition: opacity 0.8s ease, transform 1.2s ease, visibility 0.8s;
  filter: drop-shadow(0 40px 30px rgba(23, 23, 26, 0.2078431373));
  pointer-events: none;
}

.g37-color-phone.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) rotate(4deg) scale(1);
}

.g37-color-number {
  position: absolute;
  bottom: 14px;
  right: 8%;
  font-size: 16px;
  letter-spacing: 0.13em;
  color: #fff;
  background: rgba(23, 23, 26, 0.5647058824);
  backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: 40px;
}

.g37-color-note {
  position: absolute;
  bottom: 28px;
  left: 8%;
  right: 8%;
  font-size: 12px;
  line-height: 1.7;
  color: #4c4c54;
}

.hero[data-product=g37global] {
  background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--brand) 34%, #fff));
  transition: background 1s ease;
}

.reduce-motion .color-ribbon {
  animation: none;
}

.reduce-motion .g37-color-phone,
.reduce-motion .g37-color-section {
  transition: none;
}

@keyframes ribbon-drift {
  from {
    transform: translateX(-4%) rotate(-24deg);
  }
  to {
    transform: translateX(4%) rotate(-19deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .color-ribbon {
    animation: none;
  }
  .g37-color-phone,
  .g37-color-section {
    transition: none;
  }
}
@media (max-width: 1000px) {
  .g37-color-section {
    padding: 90px 7% 100px;
  }
  .g37-color-copy h2 {
    font-size: 55px;
  }
  .g37-color-art {
    height: 560px;
  }
  .g37-color-options {
    gap: 3px;
  }
  .g37-color-option {
    width: 90px;
  }
}
@media (max-width: 760px) {
  .g37-color-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 65px 7% 100px;
    min-height: 1000px;
  }
  .g37-color-copy h2 {
    font-size: clamp(38px, 10.8vw, 55px);
  }
  .g37-color-copy > p:not(.eyebrow):not(.g37-selected-color) {
    font-size: 18px;
  }
  .g37-color-options {
    margin-top: 24px;
    gap: 10px;
  }
  .g37-color-option {
    width: 88px;
  }
  .g37-color-option span {
    width: 34px;
    height: 34px;
  }
  .g37-color-art {
    height: 420px;
    margin-top: 15px;
  }
  .color-ribbon {
    left: 12%;
    width: 150%;
    height: 130px;
  }
  .ribbon-0 {
    top: 490px;
  }
  .ribbon-1 {
    top: 665px;
  }
  .ribbon-2 {
    top: 840px;
  }
  .g37-color-number {
    right: 3%;
    bottom: 2px;
  }
  .g37-color-note {
    bottom: 24px;
    left: 7%;
    right: 7%;
  }
  .color-tour-toggle {
    font-size: 12px;
  }
  .g37-color-phone {
    filter: drop-shadow(0 22px 22px rgba(23, 23, 26, 0.2078431373));
  }
}
@media (max-width: 360px) {
  .cinema-copy :is(h1, h2) {
    font-size: 40px;
  }
  .section-heading h2,
  .section h2 {
    font-size: 26px;
  }
  .hero[data-product=edge70fusion] h1 {
    font-size: 32px;
    max-width: none;
  }
}

#phone-results {
  scroll-margin-top: 62px;
}
.g37-color-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 430px;
  gap: 8px;
}

.g37-color-option {
  width: auto;
  min-width: 0;
}

.ribbon-3 {
  top: 730px;
  animation-delay: -13s;
}

.color-ribbon {
  height: 150px;
}

@media (max-width: 760px) {
  .g37-color-options {
    gap: 3px;
    max-width: 340px;
  }
  .g37-color-option small {
    font-size: 12px;
  }
  .color-ribbon {
    height: 110px;
  }
  .ribbon-3 {
    top: 990px;
  }
  .g37-selected-color {
    font-size: 14px;
  }
}
.global .nav-compare {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .global {
    padding-inline: 16px;
    gap: 8px;
  }
  .global .brand {
    flex-shrink: 0;
  }
  .global .nav-tools {
    gap: 5px;
    flex-shrink: 0;
  }
  .global .brand-logo {
    width: 112px;
  }
}

.youtube-film iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 200px;
  border: 0;
  border-radius: 14px;
  background: #111;
}

.film-viewer [hidden] {
  display: none !important;
}

.card-body h3 .model-name {
  display: inline-block;
}

@keyframes signature-arrive {
  from {
    opacity: 0;
    transform: translateY(35px) rotate(15deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(11deg);
  }
}

.brand-name,
.model-name {
  display: inline-block;
}
@media (max-width: 360px) {
  .page-intro h1 {
    font-size: 28px;
  }
}
@media (max-width: 760px) {
  .page-intro:has(+ .accessory-catalog) h1 {
    font-size: clamp(28px, 8.8vw, 36px);
  }
}
@media (min-width: 761px) and (max-width: 1200px) {
  .detail-hero:is([data-product=buds2plus],
  [data-product=edge70fusion],
  [data-product=g66j],
  [data-product=soundflow],
  [data-product=watch],
  [data-product=parker]) h1 {
    font-size: clamp(28px, 3.8vw, 44px);
  }
}

@keyframes spec-focus-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes performance-panel-in {
  from {
    opacity: 0.45;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes performance-scene-in {
  from {
    opacity: 0.4;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

[hidden]:not([hidden=until-found]) {
  display: none !important;
}