:root {
  --page: #e7edf2;
  --page-2: #d8e0e8;
  --ink: #12161b;
  --muted: #67727e;
  --line: rgba(18, 22, 27, 0.16);
  --panel: rgba(255, 255, 255, 0.72);
  --panel-solid: #f8fafb;
  --teal: #0d7f83;
  --blue: #6c92c9;
  --gold: #d1a13a;
  --coral: #bd625c;
  --shadow: 0 24px 70px rgba(25, 35, 48, 0.18);
  --radius: 8px;
  --header-h: 76px;
  color-scheme: light;
}

@property --stage-color {
  syntax: "<color>";
  inherits: true;
  initial-value: #6c92c9;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0) 280px),
    var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  min-height: var(--header-h);
  padding: 0 56px;
  color: rgba(18, 22, 27, 0.78);
  background: rgba(231, 237, 242, 0.84);
  border-bottom: 1px solid rgba(18, 22, 27, 0.08);
  backdrop-filter: blur(18px);
}

.brand-link {
  width: max-content;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.mode-tabs,
.nav-actions,
.localization-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-tabs {
  justify-content: center;
}

.nav-actions {
  justify-content: flex-end;
}

.icon-button,
.nav-button,
.mode-button,
.action-button,
.quantity-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.mode-button,
.nav-button {
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.mode-button.is-active,
.nav-button:hover,
.icon-button:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.icon-button {
  display: inline-grid;
  width: 36px;
  place-items: center;
}

.icon-button svg,
.arrow-button svg,
.close-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.localization-menu {
  position: relative;
}

.localization-menu summary {
  list-style: none;
}

.localization-menu summary::-webkit-details-marker {
  display: none;
}

.localization-panel,
.brand-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  padding: 14px;
  background: rgba(248, 250, 251, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.localization-grid {
  display: grid;
  gap: 10px;
}

.field-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.field-label select,
.field-label input {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.action-button {
  padding: 0 14px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
}

.home-shell {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(360px, 560px) minmax(240px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 30px 56px 48px;
  transition: --stage-color 620ms var(--ease), background-color 620ms var(--ease);
}

.home-kicker,
.panel-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-copy h1,
.page-shell h1,
.product-info h1,
.cart-shell h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.home-copy p,
.page-body,
.product-description,
.empty-copy {
  color: rgba(18, 22, 27, 0.72);
  line-height: 1.7;
}

.home-copy {
  min-width: 0;
}

.product-stage {
  position: relative;
  min-height: min(620px, 72svh);
}

.product-stack {
  position: relative;
  width: min(520px, 82vw);
  aspect-ratio: 1 / 1.12;
  margin: 0 auto;
}

.stage-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 42px 1fr auto;
  gap: 16px;
  padding: 20px;
  color: var(--ink);
  background: color-mix(in srgb, var(--card-color, var(--blue)) 28%, #f8fafb);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(calc(var(--i, 0) * -14px)) scale(calc(1 - var(--i, 0) * 0.045));
  transform-origin: center bottom;
  opacity: calc(1 - var(--i, 0) * 0.15);
  pointer-events: none;
  transition: transform 320ms ease, opacity 320ms ease;
}

.stage-card.is-active {
  pointer-events: auto;
}

.stage-card__top,
.stage-card__meta,
.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stage-card__number {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.74);
}

.stage-card__type,
.product-type {
  color: rgba(18, 22, 27, 0.58);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.stage-card__visual,
.product-placeholder {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.12)),
    color-mix(in srgb, var(--card-color, var(--blue)) 40%, #fff);
  border: 1px solid rgba(255,255,255,0.66);
  border-radius: var(--radius);
}

.stage-card__visual img,
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-mark {
  display: grid;
  width: min(220px, 56%);
  aspect-ratio: 1;
  place-items: center;
  color: rgba(18, 22, 27, 0.68);
  border: 1px solid rgba(18, 22, 27, 0.22);
  border-radius: var(--radius);
  font-weight: 900;
  text-transform: uppercase;
}

.stage-card__title {
  margin: 0;
  font-size: clamp(28px, 5vw, 66px);
  line-height: 0.9;
}

.stage-card__link {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stage-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.arrow-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.42);
  color: var(--ink);
  cursor: pointer;
}

.stack-count {
  min-width: 64px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.home-side-panel,
.product-purchase,
.page-shell,
.cart-shell,
.not-found-shell {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: var(--radius);
  box-shadow: 0 18px 52px rgba(25, 35, 48, 0.12);
}

.home-side-panel {
  padding: 20px;
}

.home-side-panel ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.home-side-panel li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.home-side-panel strong {
  color: var(--ink);
}

.grid-mode .home-shell {
  grid-template-columns: minmax(260px, 420px) minmax(420px, 1fr);
}

.grid-mode .home-side-panel {
  display: none;
}

.grid-mode .product-stage {
  min-height: auto;
}

.grid-mode .product-stack {
  width: 100%;
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.grid-mode .stage-card {
  position: relative;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto;
  min-height: 280px;
}

.grid-mode .stage-controls {
  display: none;
}

.page-shell,
.cart-shell,
.not-found-shell {
  width: min(1040px, calc(100vw - 32px));
  margin: 42px auto;
  padding: 32px;
}

.page-body {
  max-width: 760px;
}

.product-shell {
  width: min(1160px, calc(100vw - 32px));
  margin: 40px auto 64px;
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(300px, 0.9fr);
  gap: 28px;
}

.product-media {
  min-height: min(680px, 78svh);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: var(--radius);
}

.product-info,
.product-purchase {
  padding: 24px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0;
}

.price {
  font-size: 24px;
  font-weight: 900;
}

.compare-price {
  color: var(--muted);
  text-decoration: line-through;
}

.option-group {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-pill {
  padding: 9px 12px;
  background: rgba(255,255,255,0.48);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
}

.quantity-row {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 8px;
  margin: 18px 0;
}

.quantity-row input {
  min-height: 42px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.add-button,
.checkout-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-lines {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-thumb {
  width: 72px;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--page-2);
  border-radius: var(--radius);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
  font-size: 20px;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 56px;
  color: var(--muted);
  border-top: 1px solid rgba(18, 22, 27, 0.08);
  font-size: 12px;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 0 16px;
  }

  .mode-tabs {
    display: none;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .nav-button:not(.cart-link) {
    display: none;
  }

  .home-shell,
  .grid-mode .home-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 24px 16px 36px;
  }

  .home-copy h1,
  .page-shell h1,
  .product-info h1,
  .cart-shell h1 {
    font-size: 42px;
  }

  .product-shell {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 16px;
  }
}

/* Homepage visual pass: rebuilt from scratch to match the Hachiware storefront mood. */
body.template-index {
  --page: #9eacbd;
  --ink: #20242a;
  background: var(--page);
  overflow: hidden;
}

.template-index .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 124px;
  padding: 76px 76px 0;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border: 0;
  backdrop-filter: none;
  align-items: start;
}

.template-index .brand-link,
.template-index .mode-button,
.template-index .nav-button {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 12px rgba(35, 45, 58, 0.18);
}

.template-index .mode-tabs,
.template-index .nav-actions {
  gap: 12px;
}

.template-index .mode-button.is-active,
.template-index .nav-button:hover,
.template-index .icon-button:hover {
  color: #fff;
  background: transparent;
  border-color: transparent;
}

.template-index .icon-button {
  min-height: 28px;
  width: 28px;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 0;
}

.template-index .icon-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
}

.template-index .localization-panel {
  color: var(--ink);
  text-shadow: none;
}

.template-index .site-main {
  min-height: 100svh;
}

.template-index .home-shell {
  position: relative;
  display: block;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(226, 234, 242, 0.22), rgba(226, 234, 242, 0) 34%),
    var(--page);
}

.template-index .product-stage {
  position: absolute;
  inset: 0;
  display: grid;
  min-height: 100svh;
  place-items: center;
  pointer-events: none;
}

.template-index .product-stack {
  width: min(416px, 76vw);
  height: min(476px, 62svh);
  aspect-ratio: auto;
  margin: 0;
  transform: translate(-54px, 30px);
  pointer-events: auto;
}

.template-index .stage-card {
  grid-template-rows: 66px minmax(0, 1fr) 64px;
  gap: 10px;
  padding: 18px 20px 16px;
  color: #fff;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card-color, #8faed8) 72%, #eef4fb) 0 12%,
    color-mix(in srgb, var(--card-color, #8faed8) 38%, #eaf2fb) 12% 83%,
    rgba(105, 117, 130, 0.22) 83% 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  box-shadow:
    0 26px 56px rgba(50, 60, 72, 0.22),
    0 12px 22px rgba(50, 60, 72, 0.14);
  transform:
    translateY(calc(var(--i, 0) * -12px))
    translateX(calc(var(--i, 0) * 12px))
    scale(calc(1 - var(--i, 0) * 0.035));
  transform-origin: center center;
  opacity: calc(1 - var(--i, 0) * 0.16);
}

.template-index .stage-card__top {
  align-items: flex-start;
}

.template-index .stage-card__title {
  margin: 0;
  max-width: 78%;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 900;
  line-height: 0.82;
  overflow-wrap: anywhere;
}

.template-index .stage-card__type {
  max-width: 76px;
  color: rgba(32, 36, 42, 0.52);
  font-size: 12px;
  line-height: 1.1;
  text-align: right;
}

.template-index .stage-card__visual {
  min-height: 0;
  margin: 0 0 2px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.58), rgba(255,255,255,0.08)),
    color-mix(in srgb, var(--card-color, #8faed8) 20%, #f1f6fb);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 4px;
  box-shadow:
    12px 18px 22px rgba(34, 42, 52, 0.34),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

.template-index .stage-card__visual img {
  object-fit: cover;
}

.template-index .placeholder-mark {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  color: rgba(32, 36, 42, 0.58);
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.36), rgba(255,255,255,0.08)),
    repeating-linear-gradient(135deg, rgba(32,36,42,0.035) 0 1px, transparent 1px 18px);
}

.template-index .stage-card__meta {
  position: relative;
  align-items: end;
}

.template-index .stage-card__specs {
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.template-index .stage-card__brand {
  position: absolute;
  left: 50%;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
  transform: translateX(-50%) skewX(-10deg);
}

.template-index .stage-card__link {
  position: absolute;
  inset: 0;
}

.template-index .stage-controls {
  display: none;
}

.template-index .social-links {
  position: absolute;
  left: 104px;
  bottom: 48px;
  z-index: 30;
  display: flex;
  gap: 12px;
}

.template-index .social-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: rgba(32, 36, 42, 0.78);
  border: 2px solid rgba(32, 36, 42, 0.46);
  background: rgba(255, 255, 255, 0.02);
}

.template-index .social-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.template-index .next-item {
  position: absolute;
  right: 103px;
  bottom: 42px;
  z-index: 30;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: rgba(32, 36, 42, 0.82);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.template-index .next-item svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.template-index .site-footer {
  display: none;
}

.grid-mode body.template-index,
body.template-index.grid-mode {
  overflow: auto;
}

.grid-mode .template-index .home-shell,
.template-index.grid-mode .home-shell {
  min-height: 100svh;
  overflow: auto;
}

.grid-mode .template-index .product-stage,
.template-index.grid-mode .product-stage {
  position: relative;
  display: block;
  min-height: 100svh;
  padding: 156px 76px 96px;
  pointer-events: auto;
}

.grid-mode .template-index .product-stack,
.template-index.grid-mode .product-stack {
  width: min(1120px, 100%);
  height: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 0 auto;
}

.grid-mode .template-index .stage-card,
.template-index.grid-mode .stage-card {
  min-height: 320px;
  transform: none !important;
  opacity: 1 !important;
}

.grid-mode .template-index .social-links,
.grid-mode .template-index .next-item,
.template-index.grid-mode .social-links,
.template-index.grid-mode .next-item {
  display: none;
}

@media (max-width: 940px) {
  body.template-index {
    overflow: auto;
  }

  .template-index .site-header {
    grid-template-columns: 1fr auto;
    min-height: 72px;
    padding: 24px 18px 0;
  }

  .template-index .mode-tabs {
    display: flex;
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 40;
    transform: translateX(-50%);
  }

  .template-index .nav-actions .nav-button:not(.cart-link) {
    display: none;
  }

  .template-index .product-stage {
    min-height: 100svh;
    padding: 86px 16px 110px;
  }

  .template-index .product-stack {
    width: min(360px, 88vw);
    height: min(440px, 58svh);
    transform: none;
  }

  .template-index .stage-card {
    grid-template-rows: 56px minmax(0, 1fr) 60px;
    padding: 14px;
  }

  .template-index .stage-card__title {
    font-size: clamp(34px, 13vw, 56px);
  }

  .template-index .social-links {
    left: 18px;
    bottom: 24px;
  }

  .template-index .next-item {
    right: 18px;
    bottom: 18px;
  }
}

/* Hachiware-scale homepage pass: original Hachiware layout with huge lower-half product stack. */
body.template-index {
  --stage-color: #9eacbd;
  width: 100%;
  height: 100svh;
  background: var(--stage-color);
  overflow: hidden;
  transition: background-color 420ms ease;
}

.template-index .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: 126px;
  padding: 76px 80px 0;
  grid-template-columns: minmax(120px, 1fr) auto minmax(260px, 1fr);
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.template-index .brand-link,
.template-index .mode-button,
.template-index .nav-button {
  min-height: auto;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 14px rgba(33, 40, 48, 0.2);
}

.template-index .mode-tabs,
.template-index .nav-actions,
.template-index .localization-actions {
  gap: 12px;
}

.template-index .mode-button.is-active,
.template-index .nav-button:hover,
.template-index .icon-button:hover {
  color: #fff;
  background: transparent;
  border-color: transparent;
}

.template-index .icon-button {
  min-height: 24px;
  width: 24px;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border: 0;
}

.template-index .localization-panel {
  color: var(--ink);
  background: rgba(248, 250, 251, 0.98);
  text-shadow: none;
}

.template-index .site-main,
.template-index .home-shell {
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

.template-index .home-shell {
  position: relative;
  display: block;
  padding: 0;
  background: var(--stage-color);
  transition: background-color 420ms ease;
}

.template-index .product-stage {
  position: absolute;
  inset: 0;
  display: block;
  min-height: 100svh;
  pointer-events: none;
}

.template-index .product-stack {
  position: absolute;
  left: 80px;
  top: 50vh;
  width: calc(100vw - 160px);
  height: calc(100vw - 160px);
  max-width: none;
  max-height: none;
  margin: 0;
  transform: none;
  pointer-events: auto;
  transition: top 1180ms cubic-bezier(0.18, 0.82, 0.16, 1);
}

body.template-index.stage-entered .product-stack {
  top: 39vh;
}

.template-index .stage-card {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: color-mix(in srgb, var(--card-color, #8faed8) 72%, #edf3f8);
  border: 0;
  border-radius: 0;
  box-shadow:
    0 26px 54px rgba(26, 34, 44, 0.22),
    0 10px 20px rgba(26, 34, 44, 0.12);
  opacity: var(--stack-opacity, 1);
  transform: translate3d(var(--stack-x, 0), var(--stack-y, 0), 0) scale(var(--stack-scale, 1));
  transform-origin: left top;
  transition:
    transform 520ms cubic-bezier(0.22, 0.7, 0.16, 1),
    opacity 520ms cubic-bezier(0.22, 0.7, 0.16, 1),
    box-shadow 520ms ease;
  will-change: transform, opacity;
}

.template-index .stage-card.is-active {
  pointer-events: auto;
  box-shadow:
    0 30px 62px rgba(26, 34, 44, 0.26),
    0 12px 22px rgba(26, 34, 44, 0.12);
}

.template-index .stage-card__visual {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.02)),
    color-mix(in srgb, var(--card-color, #8faed8) 32%, #edf3f8);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.template-index .stage-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-index .placeholder-mark {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  color: rgba(28, 33, 39, 0.44);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.06)),
    repeating-linear-gradient(135deg, rgba(28, 33, 39, 0.035) 0 1px, transparent 1px 18px);
  border: 0;
  border-radius: 0;
  font-size: clamp(34px, 8vw, 104px);
  letter-spacing: 0;
}

.template-index .stage-card__top,
.template-index .stage-card__meta {
  position: absolute;
  z-index: 2;
  display: flex;
  pointer-events: none;
}

.template-index .stage-card__top {
  top: 26px;
  left: 30px;
  right: 30px;
  align-items: flex-start;
}

.template-index .stage-card__title {
  max-width: min(720px, 72%);
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(58px, 11vw, 154px);
  font-weight: 900;
  line-height: 0.82;
  overflow-wrap: anywhere;
  text-shadow: 0 8px 28px rgba(28, 33, 39, 0.2);
}

.template-index .stage-card__type {
  max-width: 130px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  text-align: right;
  text-transform: uppercase;
}

.template-index .stage-card__meta {
  left: 30px;
  right: 30px;
  bottom: 26px;
  align-items: flex-end;
  min-height: 48px;
}

.template-index .stage-card__specs {
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.18;
  text-shadow: 0 3px 16px rgba(28, 33, 39, 0.22);
}

.template-index .stage-card__brand {
  position: absolute;
  left: 50%;
  bottom: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  transform: translateX(-50%) skewX(-10deg);
}

.template-index .stage-card--has-image .stage-card__top {
  top: 24px;
}

.template-index .stage-card--has-image .stage-card__title {
  max-width: 48%;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1;
  text-transform: uppercase;
}

.template-index .stage-card--has-image .stage-card__type,
.template-index .stage-card--has-image .stage-card__specs,
.template-index .stage-card--has-image .stage-card__brand {
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.26);
}

.template-index .stage-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.template-index .stage-controls {
  display: none;
}

.template-index .social-links {
  position: fixed;
  left: 80px;
  bottom: 48px;
  z-index: 45;
  display: flex;
  gap: 12px;
}

.template-index .social-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: rgba(29, 34, 40, 0.74);
  background: transparent;
  border: 2px solid rgba(29, 34, 40, 0.42);
}

.template-index .next-item {
  position: fixed;
  right: 80px;
  bottom: 40px;
  z-index: 45;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: rgba(29, 34, 40, 0.78);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.template-index .next-item svg {
  width: 64px;
  height: 64px;
}

.template-index .site-footer {
  display: none;
}

html.grid-mode,
body.template-index.grid-mode {
  height: auto;
  overflow: auto;
}

html.grid-mode .template-index .site-main,
body.template-index.grid-mode .site-main,
html.grid-mode .template-index .home-shell,
body.template-index.grid-mode .home-shell {
  height: auto;
  min-height: 100svh;
  overflow: visible;
}

html.grid-mode .template-index .product-stage,
body.template-index.grid-mode .product-stage {
  position: relative;
  min-height: 100svh;
  padding: 156px 80px 96px;
  pointer-events: auto;
}

html.grid-mode .template-index .product-stack,
body.template-index.grid-mode .product-stack {
  position: relative;
  left: auto;
  top: auto;
  width: min(1180px, 100%);
  height: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin: 0 auto;
}

html.grid-mode .template-index .stage-card,
body.template-index.grid-mode .stage-card {
  position: relative;
  inset: auto;
  aspect-ratio: 1;
  min-height: 0;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto;
}

html.grid-mode .template-index .social-links,
body.template-index.grid-mode .social-links,
html.grid-mode .template-index .next-item,
body.template-index.grid-mode .next-item {
  display: none;
}

@media (max-width: 940px) {
  body.template-index {
    height: 100svh;
    overflow: hidden;
  }

  .template-index .site-header {
    min-height: 88px;
    padding: 26px 18px 0;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .template-index .mode-tabs {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 55;
    display: flex;
    transform: translateX(-50%);
  }

  .template-index .nav-actions .nav-button:not(.cart-link) {
    display: none;
  }

  .template-index .product-stack {
    left: 16px;
    top: 50vh;
    width: calc(100vw - 32px);
    height: calc(100vw - 32px);
  }

  body.template-index.stage-entered .product-stack {
    top: 36vh;
  }

  .template-index .stage-card {
    transform: translate3d(var(--stack-x, 0), var(--stack-y, 0), 0) scale(var(--stack-scale, 1));
  }

  .template-index .stage-card__top {
    top: 16px;
    left: 16px;
    right: 16px;
  }

  .template-index .stage-card__title {
    max-width: 70%;
    font-size: clamp(42px, 17vw, 72px);
  }

  .template-index .stage-card__type {
    max-width: 92px;
    font-size: 10px;
  }

  .template-index .stage-card--has-image .stage-card__title {
    font-size: 12px;
  }

  .template-index .stage-card__meta {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .template-index .social-links {
    left: 18px;
    bottom: 24px;
  }

  .template-index .next-item {
    right: 18px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }

  html.grid-mode .template-index .product-stage,
  body.template-index.grid-mode .product-stage {
    padding: 110px 16px 98px;
  }

  html.grid-mode .template-index .product-stack,
  body.template-index.grid-mode .product-stack {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Centered full-product homepage: keep the whole artwork visible in the viewport. */
.template-index .product-stack {
  --home-product-size: min(620px, calc(100vw - 240px), calc(100svh - 250px));
  left: 50%;
  top: 50%;
  width: var(--home-product-size);
  height: var(--home-product-size);
  transform: translate(-50%, -50%);
  transition:
    transform 720ms cubic-bezier(0.2, 0.78, 0.18, 1),
    opacity 720ms ease;
}

body.template-index:not(.stage-entered) .product-stack {
  opacity: 0.96;
  transform: translate(-50%, calc(-50% + 28px));
}

body.template-index.stage-entered .product-stack {
  top: 50%;
  transform: translate(-50%, -50%);
}

.template-index .stage-card__visual img {
  object-fit: contain;
}

.template-index .stage-card__title {
  max-width: 68%;
  font-size: clamp(42px, 7vw, 88px);
}

.template-index .placeholder-mark {
  font-size: clamp(30px, 5vw, 72px);
}

.template-index .stage-card--has-image .stage-card__visual {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--card-color, #8faed8) 18%, #f3f6fa);
}

@media (max-width: 940px) {
  .template-index .product-stack {
    --home-product-size: min(calc(100vw - 34px), calc(100svh - 230px), 420px);
    left: 50%;
    top: 52%;
    width: var(--home-product-size);
    height: var(--home-product-size);
    transform: translate(-50%, -50%);
  }

  body.template-index:not(.stage-entered) .product-stack {
    transform: translate(-50%, calc(-50% + 22px));
  }

  body.template-index.stage-entered .product-stack {
    top: 52%;
    transform: translate(-50%, -50%);
  }
}

/* Unified Hachiware storefront pass. This is original styling inspired by the repaired theme's layout language. */
body.template-product,
body.template-page,
body.template-404 {
  --page: #6e95c7;
  --ink: rgba(18, 22, 27, 0.78);
  --panel: rgba(224, 236, 247, 0.74);
  --line: rgba(255, 255, 255, 0.34);
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.18), transparent 34%),
    radial-gradient(circle at 76% 66%, rgba(0, 0, 0, 0.1), transparent 36%),
    var(--page);
  overflow-x: hidden;
}

body.template-cart {
  --page: #101010;
  --ink: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.58);
  --line: rgba(255, 255, 255, 0.28);
  --panel: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.1), transparent 32%),
    radial-gradient(circle at 80% 70%, rgba(106, 146, 201, 0.18), transparent 34%),
    var(--page);
  overflow-x: hidden;
}

body:not(.template-index) .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 112px;
  padding: 62px 80px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

body.template-cart .site-header {
  color: rgba(255, 255, 255, 0.86);
}

body:not(.template-index) .brand-link,
body:not(.template-index) .mode-button,
body:not(.template-index) .nav-button {
  min-height: auto;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

body:not(.template-index) .mode-button.is-active,
body:not(.template-index) .nav-button:hover,
body:not(.template-index) .icon-button:hover {
  color: currentColor;
  background: transparent;
  border-color: transparent;
  opacity: 1;
}

body:not(.template-index) .mode-tabs,
body:not(.template-index) .nav-actions {
  gap: 12px;
}

body:not(.template-index) .icon-button {
  min-height: 24px;
  width: 24px;
  color: inherit;
  background: transparent;
  border: 0;
}

body:not(.template-index) .localization-panel {
  color: #161a20;
  background: rgba(248, 250, 251, 0.98);
}

.hachi-product-page {
  width: min(1480px, calc(100vw - 64px));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(126px, 14vh, 180px) 0 clamp(44px, 7vh, 80px);
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(320px, 0.58fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.product-art-card {
  justify-self: center;
  width: min(760px, 100%);
  display: grid;
  gap: 16px;
}

.hachi-product-page .product-media {
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(224, 236, 247, 0.48);
  border: 0;
  border-radius: 0;
  box-shadow:
    0 28px 76px rgba(20, 30, 42, 0.26),
    0 12px 24px rgba(20, 30, 42, 0.12);
}

.hachi-product-page .product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.product-thumb {
  appearance: none;
  padding: 0;
  display: grid;
  width: 74px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: border-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.product-thumb.is-active {
  border-color: rgba(255, 255, 255, 0.88);
}

.product-thumb:hover {
  border-color: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.product-thumb.is-active:hover {
  border-color: rgba(255, 255, 255, 0.88);
}

.product-thumb:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

.hachi-product-page .product-info {
  min-width: 0;
  padding: 0;
  color: var(--ink);
}

.hachi-product-page .home-kicker {
  color: currentColor;
  opacity: 0.66;
  font-size: clamp(16px, 1.2vw, 22px);
}

.hachi-product-page .product-info h1 {
  max-width: 9ch;
  font-size: clamp(54px, 6vw, 132px);
  line-height: 0.84;
  overflow-wrap: break-word;
}

.hachi-product-page .price-row {
  margin: clamp(16px, 2vw, 28px) 0;
}

.hachi-product-page .price {
  font-size: clamp(28px, 2.8vw, 56px);
}

.hachi-product-page .product-description {
  max-width: 56ch;
  color: currentColor;
  font-weight: 750;
  line-height: 1.55;
  opacity: 0.72;
}

.hachi-product-page .product-purchase {
  margin-top: clamp(18px, 3vw, 34px);
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  box-shadow: none;
}

.variant-select-label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.variant-select-label select {
  min-height: 44px;
  padding: 0 12px;
  color: inherit;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid currentColor;
  border-radius: 0;
}

.hachi-product-page .quantity-row {
  grid-template-columns: 44px minmax(64px, 1fr) 44px;
  margin: 0 0 14px;
}

.hachi-product-page .quantity-row input,
.hachi-product-page .quantity-button {
  color: inherit;
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 0;
}

.hachi-product-page .add-button {
  border-radius: 0;
  color: #fff;
  background: #111;
}

.hachi-product-page .add-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.cart-page {
  width: min(1480px, calc(100vw - 64px));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(126px, 14vh, 180px) 0 clamp(44px, 7vh, 80px);
}

.cart-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 5vw, 64px);
  font-weight: 900;
}

.cart-heading p,
.cart-heading h1 {
  margin: 0;
}

.cart-heading p {
  font-size: clamp(16px, 1.3vw, 22px);
  opacity: 0.66;
}

.cart-heading h1 {
  font-size: clamp(72px, 12vw, 156px);
  line-height: 0.74;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}

.cart-items {
  display: grid;
  gap: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: clamp(112px, 16vw, 220px) minmax(0, 1fr) auto;
  gap: clamp(16px, 2.6vw, 34px);
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line);
}

.cart-thumb {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-info {
  min-width: 0;
  font-weight: 900;
}

.cart-info p,
.cart-info h2 {
  margin: 0;
}

.cart-info p,
.cart-info span,
.remove-button {
  color: currentColor;
  font-size: 13px;
  opacity: 0.62;
}

.cart-info h2 {
  max-width: 14ch;
  font-size: clamp(30px, 5vw, 72px);
  line-height: 0.86;
  overflow-wrap: break-word;
}

.remove-button {
  display: inline-block;
  margin-top: 12px;
  text-transform: uppercase;
}

.cart-price {
  display: grid;
  justify-items: end;
  gap: 16px;
  font-weight: 900;
}

.line-price {
  font-size: clamp(24px, 2.6vw, 42px);
}

.cart-qty input {
  width: 76px;
  min-height: 42px;
  color: inherit;
  text-align: center;
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 0;
}

.cart-summary,
.cart-empty {
  padding: 22px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 0;
}

.summary-kicker {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.62;
}

.cart-summary dl {
  display: grid;
  gap: 14px;
  margin: 0 0 22px;
}

.cart-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-summary dt,
.cart-summary dd {
  margin: 0;
  font-weight: 900;
}

.cart-summary .action-button,
.cart-summary .checkout-button,
.continue-link {
  display: grid;
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  place-items: center;
  color: inherit;
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-summary .checkout-button {
  color: #111;
  background: #fff;
  border-color: #fff;
}

.cart-empty {
  width: min(520px, 100%);
}

.hachi-content-page {
  width: min(1180px, calc(100vw - 64px));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(126px, 14vh, 180px) 0 clamp(44px, 7vh, 80px);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page-heading {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(24px, 5vw, 54px);
}

.page-heading h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(70px, 12vw, 156px);
  line-height: 0.76;
  color: var(--ink);
}

.hachi-content-page .home-kicker {
  color: var(--ink);
  opacity: 0.66;
}

.page-body {
  max-width: none;
  color: var(--ink);
}

.page-body-inner {
  width: min(760px, 100%);
  padding: 26px;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.28);
  font-weight: 750;
  line-height: 1.7;
}

body:not(.template-index) .site-footer {
  padding: 28px 80px;
  color: var(--muted, rgba(18, 22, 27, 0.58));
  border-top: 0;
}

/* Home grid repair: keep cards aligned and compact regardless of product count. */
body.template-index.grid-mode {
  height: auto;
  overflow: auto;
}

body.template-index.grid-mode .site-main,
body.template-index.grid-mode .home-shell {
  height: auto;
  min-height: 100svh;
  overflow: visible;
}

body.template-index.grid-mode .product-stage {
  position: relative;
  min-height: 100svh;
  padding: 150px 80px 96px;
  pointer-events: auto;
}

body.template-index.grid-mode .product-stack {
  --home-product-size: auto;
  position: relative;
  left: auto;
  top: auto;
  width: min(1180px, 100%);
  height: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: center;
  gap: 18px;
  margin: 0 auto;
  opacity: 1;
  transform: none !important;
}

body.template-index.grid-mode .stage-card {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto;
}

body.template-index.grid-mode .stage-card__title {
  max-width: 64%;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

body.template-index.grid-mode .stage-card__visual img {
  object-fit: contain;
}

body.template-index.grid-mode .social-links,
body.template-index.grid-mode .next-item {
  display: none;
}

@media (max-width: 940px) {
  body:not(.template-index) .site-header {
    min-height: 88px;
    padding: 26px 18px 0;
    grid-template-columns: 1fr auto;
  }

  .hachi-product-page,
  .cart-page,
  .hachi-content-page {
    width: min(100vw - 36px, 760px);
    padding-top: 112px;
  }

  .hachi-product-page,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .hachi-product-page .product-info h1,
  .page-heading h1 {
    max-width: 100%;
    font-size: clamp(44px, 15vw, 76px);
  }

  .cart-heading {
    align-items: start;
    flex-direction: column;
  }

  .cart-heading h1 {
    font-size: clamp(64px, 22vw, 112px);
  }

  .cart-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .cart-price {
    grid-column: 1 / -1;
    justify-items: stretch;
  }

  .cart-qty input {
    width: 100%;
  }

  body.template-index.grid-mode .product-stage {
    padding: 112px 18px 96px;
  }

  body.template-index.grid-mode .product-stack {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }
}

/* Final polish after visual QA. */
.product-art-card {
  width: min(720px, calc(100svh - 180px), 100%);
}

.hachi-product-page .product-info h1 {
  max-width: 100%;
  font-size: clamp(42px, 4.4vw, 78px);
  line-height: 0.88;
}

body.template-cart .empty-copy {
  color: inherit;
  opacity: 0.72;
}

body.template-index.grid-mode .stage-card__top,
body.template-index.grid-mode .stage-card__meta {
  display: none;
}

body.template-index.grid-mode .stage-card__visual {
  display: grid;
  place-items: center;
}

body.template-index.grid-mode .stage-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 940px) {
  .product-art-card {
    width: 100%;
  }

  .hachi-product-page .product-info h1 {
    font-size: clamp(36px, 11vw, 58px);
  }
}

/* Make homepage product cards click through to the real Shopify product page. */
.template-index .stage-card__link {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: block;
  color: transparent;
  font-size: 0;
  pointer-events: auto;
}

/* Brand menu and liquid-glass distributors layer. */
.brand-menu {
  position: relative;
}

.brand-menu summary {
  list-style: none;
  cursor: pointer;
}

.brand-menu summary::-webkit-details-marker {
  display: none;
}

.brand-menu .brand-panel {
  top: calc(100% + 14px);
  right: auto;
  left: 50%;
  width: 168px;
  padding: 8px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 0;
  box-shadow: 0 18px 50px rgba(18, 28, 42, 0.12);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

body:not(.template-index) .brand-menu .brand-panel,
body.template-cart .brand-menu .brand-panel {
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
}

.brand-panel-button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
  text-transform: uppercase;
}

.brand-panel-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.distributors-glass,
.about-glass {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 84px 20px 32px;
  color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.18), transparent 34%),
    rgba(62, 91, 126, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

body.distributors-open .distributors-glass {
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.about-open .about-glass {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.distributors-glass:target {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.about-glass:target {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.distributors-glass__inner,
.about-glass__inner {
  position: relative;
  width: min(860px, calc(100vw - 40px));
  padding: clamp(24px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1)),
    rgba(210, 228, 244, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 34px 90px rgba(16, 28, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform: translateY(16px) scale(0.985);
  opacity: 0;
  transition: transform 420ms var(--snap), opacity 320ms var(--ease);
}

body.distributors-open .distributors-glass__inner {
  transform: translateY(0) scale(1);
  opacity: 1 !important;
}

body.about-open .about-glass__inner {
  transform: translateY(0) scale(1);
  opacity: 1 !important;
}

.distributors-glass:target .distributors-glass__inner {
  transform: translateY(0) scale(1);
  opacity: 1 !important;
}

.about-glass:target .about-glass__inner {
  transform: translateY(0) scale(1);
  opacity: 1 !important;
}

.glass-close {
  position: fixed;
  top: calc(env(safe-area-inset-top) + clamp(112px, 7.2vw, 132px));
  right: calc(env(safe-area-inset-right) + clamp(18px, 4.4vw, 80px));
  z-index: 4;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 14px 34px rgba(16, 28, 42, 0.16);
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.glass-kicker,
.glass-copy,
.distributors-glass h2,
.about-glass h2,
.about-glass__headline,
.about-glass__copy p {
  margin: 0;
}

.glass-kicker {
  font-size: 12px;
  font-weight: 850;
  opacity: 0.68;
  text-transform: uppercase;
}

.distributors-glass h2,
.about-glass h2 {
  margin-top: 10px;
  font-size: clamp(56px, 10vw, 118px);
  line-height: 0.78;
  letter-spacing: 0;
}

.about-glass__inner {
  width: min(920px, calc(100vw - 40px));
}

.about-glass h2 {
  font-size: clamp(54px, 9vw, 112px);
}

.about-glass__headline {
  width: min(660px, 100%);
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(25px, 3.3vw, 48px);
  font-weight: 900;
  line-height: 1;
  text-wrap: balance;
}

.about-glass__headline span {
  display: block;
  white-space: nowrap;
}

.about-glass__copy {
  display: grid;
  gap: 14px;
  width: min(690px, 100%);
  margin-top: clamp(24px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(14px, 1.28vw, 17px);
  font-weight: 720;
  line-height: 1.78;
  text-wrap: pretty;
}

.about-glass__copy a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.glass-copy {
  width: min(560px, 100%);
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  line-height: 1.65;
}

.distributors-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: clamp(28px, 4vw, 42px);
}

.distributor-logo-card {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 18px;
  color: inherit;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
  place-items: center;
  text-align: center;
  transition: transform 280ms var(--snap), background 220ms var(--ease), border-color 220ms var(--ease);
}

.distributor-logo-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.46);
}

.distributor-logo {
  display: grid;
  width: 82px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  color: rgba(18, 24, 32, 0.76);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 900;
}

.distributor-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.distributor-name {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.distributor-region {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 940px) {
  .brand-menu .brand-panel {
    left: auto;
    right: 0;
    transform: none;
  }

  .distributors-glass {
    align-items: start;
    padding-top: 96px;
  }

  .about-glass {
    align-items: start;
    padding-top: 96px;
  }

  .glass-close {
    top: calc(env(safe-area-inset-top) + 96px);
    right: calc(env(safe-area-inset-right) + 18px);
  }

  .about-glass h2 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .about-glass__headline {
    font-size: clamp(18.5px, 5.6vw, 28px);
    line-height: 1.08;
  }

  .distributors-list {
    grid-template-columns: 1fr;
  }
}

/* Premium rebuild layer: lighter Hachiware rhythm, no borrowed files. */
:root {
  --font-ui: "Space Grotesk", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --snap: cubic-bezier(0.16, 1, 0.3, 1);
  --intro-focus: cubic-bezier(0.22, 1, 0.36, 1);
  --hachi-blue: #6f97c8;
  --hachi-ink: rgba(18, 24, 32, 0.78);
  --hachi-white: rgba(255, 255, 255, 0.92);
}

body {
  font-family: var(--font-ui);
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.site-header {
  font-family: var(--font-ui);
}

.hachi-intro {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(ellipse at 50% 48%, rgba(255, 255, 255, 0.18), transparent 34%),
    radial-gradient(ellipse at 18% 78%, rgba(16, 28, 46, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(18, 26, 36, 0.06)),
    var(--stage-color, var(--hachi-blue, #6f97c8));
  background-color: var(--stage-color, var(--hachi-blue, #6f97c8));
  transform: scale(1);
  pointer-events: none;
  isolation: isolate;
  contain: layout style paint;
  will-change: opacity, transform, filter;
  transition:
    opacity 400ms var(--ease),
    transform 520ms var(--intro-focus),
    filter 420ms var(--ease);
}

html.hachi-intro-pending .hachi-intro {
  animation: hachi-intro-fallback-hide 2600ms steps(1, end) forwards;
}

.hachi-intro::before,
.hachi-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hachi-intro::before {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(255, 255, 255, 0.24), transparent 25%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transform: scale(1.035);
  filter: blur(12px);
}

.hachi-intro::after {
  inset: clamp(14px, 2.2vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  opacity: 0;
  transform: scale(0.992);
  filter: blur(2px);
}

.hachi-intro__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  mix-blend-mode: screen;
  transform: scale(1.02);
}

.hachi-intro__pad {
  position: absolute;
  z-index: 2;
  width: clamp(150px, 19vw, 320px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 5px;
  opacity: 0;
  filter: blur(10px) saturate(0.94);
  box-shadow: 0 26px 72px rgba(18, 28, 42, 0.2);
  will-change: transform, opacity, filter;
}

.hachi-intro__pad img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hachi-intro__pad--left {
  left: clamp(-34px, 5vw, 90px);
  top: 50%;
  transform: translate(-18%, -50%) rotate(-5deg) scale(0.94);
}

.hachi-intro__pad--right {
  right: clamp(-28px, 6vw, 110px);
  top: 43%;
  transform: translate(16%, -48%) rotate(4deg) scale(0.92);
}

.hachi-intro__pad--bottom {
  left: 50%;
  bottom: clamp(-70px, -4vw, -24px);
  width: clamp(130px, 16vw, 260px);
  transform: translate(-50%, 16%) rotate(2deg) scale(0.9);
}

.hachi-intro__frame {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 13px;
  min-width: min(420px, calc(100vw - 64px));
  transform: translateY(5px) scale(0.986);
  filter: blur(12px);
  opacity: 0;
  text-shadow: 0 12px 34px rgba(18, 28, 42, 0.18);
}

.hachi-intro__logo {
  width: clamp(76px, 10vw, 150px);
  aspect-ratio: 1;
  object-fit: contain;
  opacity: 0.94;
  transform: translateY(4px) scale(0.96);
  filter: drop-shadow(0 14px 30px rgba(18, 28, 42, 0.16));
}

.hachi-intro__word {
  font-size: clamp(18px, 2.6vw, 42px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
}

.hachi-intro__slot {
  position: relative;
  width: min(300px, 56vw);
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.18);
}

.hachi-intro__slot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.86);
  transform: scaleX(0);
  transform-origin: center;
}

.hachi-intro__caption {
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.66);
}

.hachi-intro.is-started::before {
  animation: hachi-intro-bloom 760ms var(--intro-focus) forwards;
}

.hachi-intro.is-started::after {
  animation: hachi-intro-border 720ms var(--intro-focus) forwards;
}

.hachi-intro.is-started .hachi-intro__canvas {
  animation: hachi-intro-canvas 1100ms var(--intro-focus) forwards;
}

.hachi-intro.is-started .hachi-intro__pad--left {
  animation: hachi-intro-pad-left 1050ms var(--intro-focus) 100ms forwards;
}

.hachi-intro.is-started .hachi-intro__pad--right {
  animation: hachi-intro-pad-right 1120ms var(--intro-focus) 140ms forwards;
}

.hachi-intro.is-started .hachi-intro__pad--bottom {
  animation: hachi-intro-pad-bottom 1120ms var(--intro-focus) 180ms forwards;
}

.hachi-intro.is-started .hachi-intro__frame {
  animation: hachi-intro-frame 760ms var(--intro-focus) 180ms forwards;
}

.hachi-intro.is-started .hachi-intro__slot::before {
  animation: hachi-intro-slot 680ms var(--intro-focus) 260ms forwards;
}

.hachi-intro.is-leaving {
  opacity: 0;
  transform: scale(1.012);
  filter: blur(8px);
}

html.hachi-intro-skip .hachi-intro,
html.hachi-intro-done .hachi-intro {
  display: none;
}

@keyframes hachi-intro-frame {
  0% {
    opacity: 0;
    transform: translateY(5px) scale(0.986);
    filter: blur(12px);
  }
  58% {
    opacity: 0.98;
    transform: translateY(0) scale(1.002);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes hachi-intro-canvas {
  0% {
    opacity: 0;
    transform: scale(1.03);
  }
  100% {
    opacity: 0.74;
    transform: scale(1);
  }
}

@keyframes hachi-intro-pad-left {
  0% {
    opacity: 0;
    transform: translate(-18%, -50%) rotate(-5deg) scale(0.94);
    filter: blur(10px) saturate(0.94);
  }
  100% {
    opacity: 0.24;
    transform: translate(0, -50%) rotate(-3deg) scale(1);
    filter: blur(1px) saturate(1);
  }
}

@keyframes hachi-intro-pad-right {
  0% {
    opacity: 0;
    transform: translate(16%, -48%) rotate(4deg) scale(0.92);
    filter: blur(10px) saturate(0.94);
  }
  100% {
    opacity: 0.22;
    transform: translate(0, -48%) rotate(3deg) scale(1);
    filter: blur(1px) saturate(1);
  }
}

@keyframes hachi-intro-pad-bottom {
  0% {
    opacity: 0;
    transform: translate(-50%, 16%) rotate(2deg) scale(0.9);
    filter: blur(10px) saturate(0.94);
  }
  100% {
    opacity: 0.18;
    transform: translate(-50%, 0) rotate(2deg) scale(1);
    filter: blur(1px) saturate(1);
  }
}

@keyframes hachi-intro-slot {
  0% {
    opacity: 0.25;
    transform: scaleX(0);
  }
  68% {
    opacity: 0.95;
  }
  100% {
    opacity: 0.78;
    transform: scaleX(1);
  }
}

@keyframes hachi-intro-border {
  0% {
    opacity: 0;
    transform: scale(0.992);
    filter: blur(2px);
  }
  100% {
    opacity: 0.82;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes hachi-intro-bloom {
  0% {
    opacity: 0;
    transform: scale(1.035);
    filter: blur(12px);
  }
  52% {
    opacity: 1;
  }
  100% {
    opacity: 0.74;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes hachi-intro-fallback-hide {
  0%,
  99% {
    visibility: visible;
  }
  100% {
    visibility: hidden;
    opacity: 0;
  }
}

@media (max-width: 700px) {
  .hachi-intro__logo {
    width: clamp(92px, 30vw, 132px);
  }

  .hachi-intro__word {
    font-size: clamp(20px, 7vw, 32px);
  }

  .hachi-intro__pad {
    width: clamp(104px, 34vw, 150px);
  }

  .hachi-intro__pad--left {
    left: -14vw;
    top: 42%;
  }

  .hachi-intro__pad--right {
    right: -13vw;
    top: 39%;
  }

  .hachi-intro__pad--bottom {
    bottom: -5vw;
    width: clamp(96px, 30vw, 136px);
  }
}

/* Opening orbit: Shopify product images load around the logo, then release into the home stage. */
.hachi-intro {
  color: rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 20%),
    radial-gradient(circle at 18% 24%, rgba(109, 151, 200, 0.12), transparent 24%),
    radial-gradient(circle at 78% 76%, rgba(205, 120, 92, 0.09), transparent 25%),
    linear-gradient(180deg, #050608, #020304);
  background-color: #030405;
  transition:
    opacity 420ms var(--ease),
    transform 620ms var(--intro-focus),
    filter 520ms var(--ease);
}

.hachi-intro::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(112, 152, 200, 0.14), transparent 34%);
  opacity: 0;
  transform: scale(0.78);
  filter: blur(24px);
}

.hachi-intro::after {
  inset: clamp(14px, 1.5vw, 22px);
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: scale(1.012);
  filter: blur(3px);
}

.hachi-intro__canvas {
  opacity: 0;
  mix-blend-mode: screen;
  transform: scale(1);
}

.hachi-intro__orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 1px;
  height: 1px;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) rotate(-10deg) scale(0.62);
  transform-origin: center;
  will-change: transform, opacity, filter;
}

.hachi-intro__orbit-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(132px, 14.5vw, 250px);
  overflow: hidden;
  border-radius: 5px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 26px 70px rgba(0, 0, 0, 0.26);
  filter: blur(28px) saturate(0.82) brightness(0.72);
  transform:
    translate3d(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px)), 0)
    rotate(var(--tilt, 0deg))
    scale(var(--scale-base, 0.52));
  transform-origin: center;
  will-change: transform, opacity, filter;
}

.hachi-intro__orbit-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: contrast(0.98) saturate(0.94);
}

.hachi-intro__frame {
  z-index: 5;
  min-width: min(460px, calc(100vw - 64px));
  gap: 12px;
  transform: translateY(7px) scale(0.94);
  filter: blur(14px);
  opacity: 0;
  text-shadow: 0 18px 56px rgba(0, 0, 0, 0.34);
}

.hachi-intro__logo {
  width: clamp(78px, 9vw, 132px);
  height: auto;
  max-height: clamp(78px, 9vw, 132px);
  opacity: 0.98;
  filter:
    drop-shadow(0 18px 48px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 34px rgba(255, 255, 255, 0.2));
}

.hachi-intro__word {
  font-size: clamp(20px, 2.7vw, 44px);
  color: rgba(255, 255, 255, 0.94);
}

.hachi-intro__slot {
  width: min(320px, 58vw);
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
}

.hachi-intro__caption {
  color: rgba(255, 255, 255, 0.58);
}

.hachi-intro.is-started::before {
  animation: hachi-intro-orbit-bloom 1180ms var(--intro-focus) forwards;
}

.hachi-intro.is-started::after {
  animation: hachi-intro-border 900ms var(--intro-focus) forwards;
}

.hachi-intro.is-started .hachi-intro__canvas {
  animation: hachi-intro-canvas 1150ms var(--intro-focus) forwards;
}

.hachi-intro.is-started .hachi-intro__orbit {
  animation: hachi-intro-orbit-field 2780ms var(--intro-focus) forwards;
}

.hachi-intro.is-started .hachi-intro__orbit-item {
  animation: hachi-intro-orbit-item 1280ms var(--intro-focus) var(--delay, 110ms) forwards;
}

.hachi-intro.is-started .hachi-intro__frame {
  animation: hachi-intro-frame 860ms var(--intro-focus) 260ms forwards;
}

.hachi-intro.is-started .hachi-intro__slot::before {
  animation: hachi-intro-slot 1560ms var(--intro-focus) 520ms forwards;
}

.hachi-intro.is-leaving {
  opacity: 0;
  transform: scale(1.018);
  filter: blur(10px);
}

@keyframes hachi-intro-orbit-field {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) rotate(-10deg) scale(0.62);
    filter: blur(7px);
  }
  38% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) rotate(4deg) scale(1.08);
    filter: blur(0);
  }
  72% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) rotate(13deg) scale(0.9);
    filter: blur(0);
  }
  100% {
    opacity: 0.96;
    transform: translate3d(-50%, -50%, 0) rotate(21deg) scale(0.98);
    filter: blur(0);
  }
}

@keyframes hachi-intro-orbit-item {
  0% {
    opacity: 0;
    filter: blur(28px) saturate(0.82) brightness(0.7);
    transform:
      translate3d(calc(-50% + var(--x-in, 0px)), calc(-50% + var(--y-in, 0px)), 0)
      rotate(calc(var(--tilt, 0deg) - 8deg))
      scale(var(--scale-in, 0.42));
  }
  46% {
    opacity: 0.72;
    filter: blur(12px) saturate(0.98) brightness(0.92);
    transform:
      translate3d(calc(-50% + var(--x-pop, 0px)), calc(-50% + var(--y-pop, 0px)), 0)
      rotate(var(--tilt, 0deg))
      scale(var(--scale-pop, 1.04));
  }
  100% {
    opacity: 0.56;
    filter: blur(4px) saturate(0.96) brightness(0.86);
    transform:
      translate3d(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px)), 0)
      rotate(var(--tilt, 0deg))
      scale(var(--scale-end, 0.88));
  }
}

@keyframes hachi-intro-orbit-bloom {
  0% {
    opacity: 0;
    transform: scale(0.78);
    filter: blur(24px);
  }
  44% {
    opacity: 0.86;
  }
  100% {
    opacity: 0.48;
    transform: scale(1.08);
    filter: blur(4px);
  }
}

@media (max-width: 700px) {
  .hachi-intro__orbit-item {
    width: clamp(112px, 35vw, 158px);
    filter: blur(24px) saturate(0.82) brightness(0.72);
  }

  .hachi-intro__frame {
    min-width: min(330px, calc(100vw - 42px));
    gap: 10px;
  }

  .hachi-intro__logo {
    width: clamp(96px, 29vw, 126px);
    max-height: clamp(96px, 29vw, 126px);
  }

  .hachi-intro__word {
    font-size: clamp(25px, 8vw, 36px);
  }

  .hachi-intro__slot {
    width: min(260px, 64vw);
  }
}

body.template-index:not(.stage-entered) .site-header {
  opacity: 0;
  transform: translateY(-10px);
}

body.template-index.stage-entered .site-header,
body:not(.template-index) .site-header {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms var(--ease), transform 720ms var(--snap);
}

body.template-product .site-header {
  will-change: transform, opacity, filter;
  transition:
    opacity 260ms var(--ease),
    top 520ms var(--snap),
    transform 520ms var(--snap),
    filter 320ms var(--ease);
}

body.template-product.product-header-retracted .site-header {
  top: -144px;
  opacity: 0;
  transform: translateY(calc(-100% - 16px)) scale(0.985);
  filter: blur(3px);
  pointer-events: none;
}

.brand-link,
.mode-button,
.nav-button {
  opacity: 0.84;
  transition: opacity 220ms var(--ease), transform 260ms var(--snap);
}

.brand-link:hover,
.mode-button:hover,
.nav-button:hover {
  opacity: 1;
  transform: translateY(-1px);
}

body.template-index {
  --stage-color: var(--hachi-blue);
}

.template-index .home-shell {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.13), transparent 30%),
    var(--stage-color);
}

.template-index .product-stack {
  --home-product-size: min(600px, calc(100vw - 260px), calc(100svh - 230px));
}

.template-index .stage-card {
  background: transparent;
  box-shadow:
    0 30px 80px rgba(18, 28, 42, 0.18),
    0 12px 28px rgba(18, 28, 42, 0.1);
  transition:
    transform 620ms var(--snap),
    opacity 460ms var(--ease),
    filter 460ms var(--ease);
}

.template-index .stage-card:not(.is-active) {
  filter: saturate(0.96) brightness(1.03);
}

.template-index .stage-card__visual {
  overflow: hidden;
  background: rgba(227, 239, 249, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 20px 52px rgba(18, 28, 42, 0.16);
}

.template-index .stage-card--has-image .stage-card__top,
.template-index .stage-card--has-image .stage-card__meta {
  display: none;
}

.template-index .stage-card--has-image .stage-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1);
  transition: transform 900ms var(--snap);
}

.template-index .stage-card--has-image.is-active:hover .stage-card__visual img {
  transform: scale(1.018);
}

.template-index .social-button {
  border-width: 1.5px;
  opacity: 0.7;
  transition: opacity 220ms var(--ease), transform 260ms var(--snap);
}

.template-index .social-button:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.template-index .next-item {
  opacity: 0.72;
  transition: opacity 220ms var(--ease), transform 260ms var(--snap);
}

.template-index .next-item:hover {
  opacity: 1;
  transform: translateX(4px);
}

body.template-index.grid-mode .product-stage {
  padding-top: 142px;
}

body.template-index.grid-mode .product-stack {
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  gap: 20px;
}

body.template-index.grid-mode .stage-card {
  background: rgba(224, 236, 247, 0.34);
  box-shadow: 0 22px 60px rgba(18, 28, 42, 0.14);
}

body.template-index.grid-mode .stage-card__visual {
  box-shadow: none;
}

body.template-product,
body.template-page,
body.template-404 {
  --page: var(--hachi-blue);
  --ink: var(--hachi-ink);
  background:
    radial-gradient(circle at 22% 26%, rgba(255, 255, 255, 0.12), transparent 32%),
    radial-gradient(circle at 76% 70%, rgba(18, 28, 42, 0.08), transparent 34%),
    var(--page);
}

body:not(.template-index) .site-header {
  padding-top: clamp(48px, 5.4vw, 76px);
  color: var(--hachi-ink);
}

body.template-cart .site-header {
  color: rgba(255, 255, 255, 0.86);
}

.hachi-product-page {
  min-height: 100svh;
  grid-template-columns: minmax(420px, 0.96fr) minmax(330px, 0.54fr);
  gap: clamp(38px, 6vw, 92px);
  align-items: center;
}

.product-art-card {
  width: min(700px, calc(100svh - 190px), 100%);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  animation: hachiSoftIn 820ms var(--snap) 80ms forwards;
}

.hachi-product-page .product-media {
  background: rgba(222, 236, 248, 0.42);
  box-shadow:
    0 30px 86px rgba(20, 30, 42, 0.18),
    0 12px 28px rgba(20, 30, 42, 0.1);
}

.hachi-product-page .product-info {
  opacity: 0;
  transform: translateY(16px);
  animation: hachiSoftIn 760ms var(--snap) 180ms forwards;
}

.hachi-product-page .home-kicker,
.cart-heading p,
.summary-kicker,
.hachi-content-page .home-kicker {
  letter-spacing: 0;
  opacity: 0.62;
}

.hachi-product-page .product-info h1 {
  color: var(--hachi-ink);
  font-size: clamp(42px, 4.1vw, 74px);
  line-height: 0.9;
}

.hachi-product-page .product-description {
  font-size: 15px;
  opacity: 0.64;
}

.hachi-product-page .product-purchase,
.cart-summary,
.cart-empty,
.page-body-inner {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.hachi-product-page .quantity-row input,
.hachi-product-page .quantity-button,
.variant-select-label select,
.cart-qty input,
.cart-summary .action-button,
.cart-summary .checkout-button,
.continue-link {
  border-width: 1.5px;
}

.hachi-product-page .add-button {
  background: rgba(17, 22, 29, 0.86);
  transition: opacity 220ms var(--ease), transform 260ms var(--snap);
}

.hachi-product-page .add-button:not(:disabled):hover {
  transform: translateY(-1px);
}

body.template-cart {
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.08), transparent 30%),
    radial-gradient(circle at 78% 76%, rgba(80, 116, 160, 0.18), transparent 34%),
    #101010;
}

.cart-heading h1,
.page-heading h1 {
  letter-spacing: 0;
}

.cart-empty,
.cart-item,
.cart-summary {
  opacity: 0;
  transform: translateY(18px);
  animation: hachiSoftIn 760ms var(--snap) 100ms forwards;
}

.page-body-inner {
  color: var(--hachi-ink);
}

@keyframes hachiSoftIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 940px) {
  .template-index .product-stack {
    --home-product-size: min(calc(100vw - 48px), calc(100svh - 260px), 390px);
  }

  body.template-index.grid-mode .product-stack {
    grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
    gap: 14px;
  }

  .hachi-product-page {
    gap: 28px;
  }

  .hachi-product-page .product-info h1 {
    font-size: clamp(36px, 10vw, 54px);
  }
}

/* R5 polish layer. */
:root {
  --radius: 5px;
  --r5: 5px;
}

.template-index .stage-card,
.template-index .stage-card__visual,
.template-index .stage-card__visual img,
.hachi-product-page .product-media,
.hachi-product-page .product-media img,
.product-thumb,
.cart-thumb,
.cart-thumb img {
  border-radius: var(--r5) !important;
}

.icon-button,
.mode-button,
.nav-button,
.action-button,
.quantity-button,
.add-button,
.checkout-button,
.continue-link,
.arrow-button,
.next-item,
.social-button,
.field-label select,
.field-label input,
.variant-select-label select,
.quantity-row input,
.cart-qty input,
.remove-button,
.brand-panel,
.brand-panel-button,
.localization-panel,
.glass-close,
.distributor-logo-card,
.about-glass__inner,
.cart-summary,
.cart-empty,
.page-body-inner,
.hachi-product-page .product-purchase,
.distributors-glass__inner {
  border-radius: var(--r5) !important;
}

.distributors-glass__inner,
.about-glass__inner {
  overflow: hidden;
}

/* Product regional distributor card. */
.product-distributor {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r5) !important;
  box-shadow: none;
}

.product-distributor__top,
.product-distributor__card {
  display: flex;
  align-items: center;
}

.product-distributor__top {
  justify-content: space-between;
  gap: 12px;
}

.product-distributor__kicker,
.product-distributor__country,
.product-distributor__region,
.product-distributor__note {
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
}

.product-distributor__kicker {
  opacity: 0.58;
}

.product-distributor__country {
  max-width: 42%;
  overflow: hidden;
  opacity: 0.78;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-distributor__card {
  gap: 12px;
  min-height: 70px;
  padding: 10px;
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r5) !important;
  transition: transform 260ms var(--snap), background 220ms var(--ease), border-color 220ms var(--ease);
}

.product-distributor__card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.46);
}

.product-distributor__logo {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  color: rgba(18, 24, 32, 0.78);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.product-distributor__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-distributor__text {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.product-distributor__name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-distributor__region {
  opacity: 0.6;
}

.product-distributor__arrow {
  display: grid;
  width: 28px;
  height: 28px;
  margin-left: auto;
  place-items: center;
  opacity: 0.72;
}

.product-distributor__arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.product-distributor__note {
  margin: 0;
  opacity: 0.58;
  text-transform: none;
}

.product-distributor__manual {
  display: inline-flex;
  width: max-content;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: rgba(18, 22, 27, 0.72);
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--r5) !important;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 260ms var(--snap), background 220ms var(--ease), border-color 220ms var(--ease);
}

.product-distributor__manual:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.42);
}

.product-distributor__chooser[hidden] {
  display: none !important;
}

.product-distributor__chooser {
  position: static !important;
  top: auto !important;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 20;
  display: grid;
  width: 100%;
  gap: 10px;
  margin-top: 2px;
  padding: 10px;
  color: rgba(18, 22, 27, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1)),
    rgba(210, 228, 244, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--r5) !important;
  box-shadow:
    0 18px 44px rgba(18, 28, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform-origin: top center;
  animation: productDistributorChooserIn 180ms var(--snap) both;
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.product-distributor__chooser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(18, 22, 27, 0.64);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.product-distributor__chooser-close {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  color: rgba(18, 22, 27, 0.64);
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--r5) !important;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.product-distributor__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-distributor__choice {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 9px;
  padding: 8px;
  color: rgba(18, 22, 27, 0.82);
  text-align: left;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--r5) !important;
  cursor: pointer;
  font-family: inherit;
  transition: transform 220ms var(--snap), background 180ms var(--ease), border-color 180ms var(--ease);
}

.product-distributor__choice:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.42);
}

.product-distributor__choice-logo {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.product-distributor__choice-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-distributor__choice span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.product-distributor__choice strong,
.product-distributor__choice em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-distributor__choice strong {
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.product-distributor__choice em {
  opacity: 0.58;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.1;
}

@keyframes productDistributorChooserIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 520px) {
  .product-distributor__chooser {
    width: 100%;
  }

  .product-distributor__choices {
    grid-template-columns: 1fr;
  }
}

/* Quiet performance polish: calmer surfaces, less paint, smoother motion. */
:root {
  --hachi-shadow-soft: 0 22px 48px rgba(18, 28, 42, 0.16);
  --hachi-shadow-subtle: 0 12px 26px rgba(18, 28, 42, 0.1);
  --hachi-panel-soft: rgba(255, 255, 255, 0.14);
}

.distributors-glass[hidden] {
  display: none !important;
}

.about-glass[hidden] {
  display: none !important;
}

.template-index .home-shell {
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.1), transparent 28%),
    var(--stage-color);
}

.template-index .product-stage,
.template-index .product-stack,
.template-index .stage-card,
.template-index .stage-card__visual,
.hachi-product-page,
.product-art-card,
.hachi-product-page .product-media,
.hachi-product-page .product-info {
  backface-visibility: hidden;
}

.template-index .product-stage {
  contain: layout paint;
}

.template-index .product-stack {
  --home-product-size: min(
    clamp(500px, 41.5vw, 900px),
    calc(100svh - clamp(190px, 15svh, 320px)),
    calc(100vw - clamp(64px, 18vw, 620px))
  );
}

.template-index .site-header {
  z-index: 90;
}

.template-index .brand-link,
.template-index .mode-button,
.template-index .nav-button {
  opacity: 0.96;
  font-size: 13px;
  text-shadow: 0 1px 14px rgba(24, 32, 42, 0.24);
}

.template-index .stage-card {
  box-shadow: var(--hachi-shadow-soft), var(--hachi-shadow-subtle);
  will-change: transform, opacity;
  transition:
    transform 720ms var(--snap),
    opacity 460ms var(--ease),
    filter 460ms var(--ease);
}

.template-index .stage-card__visual {
  background: rgba(230, 239, 248, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 16px 38px rgba(18, 28, 42, 0.12);
}

.template-index .stage-card--has-image .stage-card__visual img {
  transform: translateZ(0);
  will-change: transform;
}

.template-index .social-button,
.template-index .next-item,
.mode-button,
.nav-button,
.icon-button,
.brand-panel-button,
.distributor-logo-card,
.product-distributor__card,
.add-button,
.checkout-button,
.quantity-button {
  -webkit-tap-highlight-color: transparent;
}

.template-index .social-button {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(32, 36, 42, 0.34);
  opacity: 0.76;
}

.template-index .next-item {
  opacity: 0.68;
}

.hachi-product-page {
  width: min(1240px, calc(100vw - 112px));
  grid-template-columns: minmax(400px, 0.95fr) minmax(350px, 0.62fr);
  gap: clamp(42px, 5.2vw, 78px);
}

.product-art-card {
  width: min(650px, calc(100svh - 210px), 100%);
}

.hachi-product-page .product-media {
  box-shadow:
    0 24px 58px rgba(20, 30, 42, 0.14),
    0 10px 22px rgba(20, 30, 42, 0.08);
}

.hachi-product-page .product-info {
  max-width: 480px;
}

.hachi-product-page .product-info h1 {
  font-size: clamp(40px, 3.75vw, 64px);
  line-height: 0.92;
}

.hachi-product-page .product-description {
  max-width: 62ch;
  opacity: 0.7;
}

.hachi-product-page .product-purchase,
.product-distributor,
.product-distributor__card,
.cart-summary,
.cart-empty,
.page-body-inner {
  background: var(--hachi-panel-soft);
  border-color: rgba(255, 255, 255, 0.24);
}

.localization-panel,
.brand-menu .brand-panel {
  box-shadow: 0 18px 44px rgba(18, 28, 42, 0.14);
}

.localization-panel .field-label:has(select[name="country_code"]) {
  display: none !important;
}

@media (max-width: 940px) {
  .template-index .product-stack {
    --home-product-size: min(calc(100vw - 44px), calc(100svh - 220px), 400px);
  }

  .hachi-product-page {
    width: min(100vw - 36px, 760px);
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 40px;
  }

  .product-art-card,
  .hachi-product-page .product-info {
    max-width: 100%;
    width: 100%;
  }

  .product-art-card {
    justify-self: center;
    width: min(100%, 520px);
  }

  .hachi-product-page .product-media {
    width: 100%;
    min-height: 0;
  }

  .hachi-product-page .product-purchase,
  .product-distributor {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .template-index .site-header {
    padding-top: calc(22px + env(safe-area-inset-top));
    padding-right: calc(14px + env(safe-area-inset-right));
    padding-left: calc(14px + env(safe-area-inset-left));
  }

  .template-index .product-stack {
    --home-product-size: min(calc(100vw - 42px), calc(100svh - 220px), 360px);
  }

  .template-index .social-links {
    left: calc(14px + env(safe-area-inset-left));
    bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .template-index .next-item {
    right: calc(14px + env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .template-index .mode-tabs {
    bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 941px) and (max-width: 1120px) {
  .hachi-product-page {
    width: min(100vw - 48px, 1040px);
    grid-template-columns: minmax(0, 0.94fr) minmax(310px, 0.72fr);
    gap: 32px;
  }

  .product-art-card {
    width: min(560px, calc(100svh - 200px), 100%);
  }

  .hachi-product-page .product-info h1 {
    font-size: clamp(36px, 4.8vw, 52px);
  }
}

@media (min-width: 1800px) {
  .template-index .site-header {
    padding-top: clamp(76px, 5vh, 116px);
    padding-right: clamp(80px, 5vw, 180px);
    padding-left: clamp(80px, 5vw, 180px);
  }

  .template-index .brand-link,
  .template-index .mode-button,
  .template-index .nav-button {
    font-size: 14px;
  }

  .template-index .social-links {
    left: clamp(80px, 5vw, 180px);
    bottom: clamp(48px, 4.4vh, 96px);
  }

  .template-index .next-item {
    right: clamp(80px, 5vw, 180px);
    bottom: clamp(42px, 4vh, 88px);
  }

  body.template-index.grid-mode .product-stage {
    padding-top: clamp(160px, 9vh, 220px);
    padding-right: clamp(100px, 7vw, 260px);
    padding-left: clamp(100px, 7vw, 260px);
  }

  body.template-index.grid-mode .product-stack {
    width: min(1680px, 100%);
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    gap: 24px;
  }

  .hachi-product-page {
    width: min(1540px, calc(100vw - 180px));
    grid-template-columns: minmax(600px, 0.94fr) minmax(420px, 0.56fr);
    gap: clamp(72px, 5vw, 120px);
  }

  .product-art-card {
    width: min(780px, calc(100svh - 240px), 100%);
  }

  .hachi-product-page .product-info {
    max-width: 540px;
  }
}

@media (min-width: 3000px) {
  .template-index .product-stack {
    --home-product-size: min(
      clamp(900px, 26vw, 1000px),
      calc(100svh - 380px),
      calc(100vw - 900px)
    );
  }

  .template-index .site-header {
    padding-right: clamp(140px, 5vw, 240px);
    padding-left: clamp(140px, 5vw, 240px);
  }

  .template-index .brand-link,
  .template-index .mode-button,
  .template-index .nav-button {
    font-size: 14px;
  }

  .template-index .social-links {
    left: clamp(140px, 5vw, 240px);
  }

  .template-index .next-item {
    right: clamp(140px, 5vw, 240px);
  }

  body.template-index.grid-mode .product-stack {
    width: min(2100px, 100%);
    grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
    gap: 30px;
  }

  .hachi-product-page {
    width: min(1840px, calc(100vw - 320px));
  }

  .product-art-card {
    width: min(920px, calc(100svh - 340px), 100%);
  }

  .hachi-product-page .product-info h1 {
    font-size: clamp(58px, 2.2vw, 82px);
  }
}

/* Opening bridge: let the intro release into the homepage instead of cutting away. */
body.template-index.intro-hold #brand.home-shell {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.045), transparent 24%),
    #030405 !important;
  transition:
    background-color 980ms var(--intro-focus),
    background-image 980ms var(--intro-focus);
}

body.template-index.intro-hold .product-stack {
  opacity: 0.08 !important;
  filter: blur(22px) saturate(0.7) brightness(0.72);
  transform: translate(-50%, -50%) scale(0.94) !important;
  pointer-events: none;
}

body.template-index.intro-hold .stage-card {
  filter: blur(14px) saturate(0.74) brightness(0.68);
}

body.template-index.intro-hold .site-header,
body.template-index.intro-hold .social-links,
body.template-index.intro-hold .next-item {
  opacity: 0 !important;
  pointer-events: none;
}

body.template-index.intro-hold .site-header {
  transform: translateY(-14px) !important;
}

body.template-index.intro-hold .social-links,
body.template-index.intro-hold .next-item {
  transform: translateY(14px) !important;
}

body.template-index.intro-release #brand.home-shell {
  transition:
    background-color 980ms var(--intro-focus),
    background-image 980ms var(--intro-focus);
}

body.template-index.intro-release .product-stack {
  animation: hachi-home-bridge-stack 1040ms var(--intro-focus) both;
}

body.template-index.intro-release .stage-card.is-active {
  animation: hachi-home-bridge-card 980ms var(--intro-focus) both;
}

body.template-index.intro-release .site-header {
  animation: hachi-home-bridge-header 820ms var(--intro-focus) 120ms both;
}

body.template-index.intro-release .social-links,
body.template-index.intro-release .next-item {
  animation: hachi-home-bridge-tools 780ms var(--intro-focus) 220ms both;
}

body.template-index.intro-complete .site-header,
html.hachi-intro-done body.template-index .site-header {
  opacity: 1 !important;
  transform: translateY(0) !important;
  filter: blur(0) !important;
  pointer-events: auto !important;
}

body.template-index.intro-complete .social-links,
html.hachi-intro-done body.template-index .social-links {
  opacity: 1 !important;
  transform: translateY(0) !important;
  filter: blur(0) !important;
  pointer-events: auto !important;
}

body.template-index.intro-complete .next-item,
html.hachi-intro-done body.template-index .next-item {
  opacity: 0.68 !important;
  transform: translateY(0) !important;
  filter: blur(0) !important;
  pointer-events: auto !important;
}

html.hachi-intro-releasing .hachi-intro.is-leaving {
  opacity: 0;
  transform: scale(1.055);
  filter: blur(18px);
}

html.hachi-intro-releasing .hachi-intro__orbit {
  animation: hachi-intro-orbit-release 860ms var(--intro-focus) both;
}

html.hachi-intro-releasing .hachi-intro__frame {
  animation: hachi-intro-frame-release 760ms var(--intro-focus) both;
}

@keyframes hachi-home-bridge-stack {
  0% {
    opacity: 0.08;
    filter: blur(22px) saturate(0.72) brightness(0.72);
    transform: translate(-50%, -50%) scale(0.94);
  }
  58% {
    opacity: 1;
    filter: blur(1px) saturate(1.02) brightness(1.02);
    transform: translate(-50%, -50%) scale(1.012);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1) brightness(1);
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes hachi-home-bridge-card {
  0% {
    filter: blur(16px) saturate(0.74) brightness(0.68);
  }
  64% {
    filter: blur(1px) saturate(1.04) brightness(1.02);
  }
  100% {
    filter: blur(0) saturate(1) brightness(1);
  }
}

@keyframes hachi-home-bridge-header {
  0% {
    opacity: 0;
    transform: translateY(-14px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes hachi-home-bridge-tools {
  0% {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(7px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes hachi-intro-orbit-release {
  0% {
    opacity: 0.96;
    transform: translate3d(-50%, -50%, 0) rotate(21deg) scale(0.98);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) rotate(36deg) scale(1.18);
    filter: blur(18px);
  }
}

@keyframes hachi-intro-frame-release {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px) scale(0.94);
    filter: blur(14px);
  }
}

@media (max-width: 940px) {
  body.template-index.intro-hold .product-stack {
    transform: translate(-50%, -50%) scale(0.94) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hachi-intro {
    display: none !important;
  }

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

  body.template-index:not(.stage-entered) .site-header,
  body.template-product .site-header,
  .product-art-card,
  .hachi-product-page .product-info,
  .cart-empty,
  .cart-item,
  .cart-summary {
    opacity: 1 !important;
    transform: none !important;
  }
}

body.template-product.product-header-retracted .site-header {
  top: -144px !important;
  opacity: 0 !important;
  transform: translateY(calc(-100% - 16px)) scale(0.985) !important;
  filter: blur(3px) !important;
  pointer-events: none !important;
}

/* Mobile header: keep every primary action reachable without horizontal clipping. */
@media (max-width: 940px) {
  .site-header,
  .template-index .site-header,
  body:not(.template-index) .site-header {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    overflow: visible;
  }

  .site-header .brand-link,
  .template-index .brand-link,
  body:not(.template-index) .brand-link {
    min-width: 0;
    max-width: 92px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .site-header .nav-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 4px !important;
    min-width: 0;
    max-width: calc(100vw - 116px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }

  .site-header .nav-actions .brand-menu > summary.nav-button,
  .site-header .nav-actions > a.nav-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    height: 30px;
    padding: 0 7px;
    border-radius: var(--r5, 5px);
    font-size: 10px !important;
    line-height: 1;
    white-space: nowrap;
  }

  .site-header .nav-actions .cart-link {
    max-width: 54px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-header .localization-menu,
  .site-header .brand-menu {
    flex: 0 0 auto;
  }

  .site-header .icon-button {
    display: inline-grid;
    width: 30px;
    min-height: 30px;
    height: 30px;
    border-radius: var(--r5, 5px);
  }

  .site-header .icon-button svg {
    width: 16px;
    height: 16px;
  }

  .site-header .brand-menu .brand-panel,
  .site-header .localization-panel {
    position: fixed !important;
    top: calc(60px + env(safe-area-inset-top));
    right: calc(12px + env(safe-area-inset-right));
    left: auto !important;
    width: min(320px, calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));
    transform: none !important;
    z-index: 140;
  }
}

@media (max-width: 360px) {
  .site-header .nav-actions {
    gap: 3px !important;
    max-width: calc(100vw - 104px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }

  .site-header .brand-link,
  .template-index .brand-link,
  body:not(.template-index) .brand-link {
    max-width: 78px;
  }

  .site-header .nav-actions .brand-menu > summary.nav-button,
  .site-header .nav-actions > a.nav-button {
    min-height: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 9px !important;
  }

  .site-header .icon-button {
    width: 28px;
    min-height: 28px;
    height: 28px;
  }
}

/* Product review wall: quiet slots for real player posts and video reviews. */
.product-social-proof {
  width: min(1240px, calc(100vw - 112px));
  margin: -14px auto clamp(72px, 8vw, 132px);
  color: var(--ink);
}

.product-social-proof__inner {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}

.product-social-proof__header {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.38fr);
  gap: clamp(22px, 4vw, 72px);
  align-items: end;
}

.product-social-proof__label {
  margin: 0 0 10px;
  color: rgba(18, 24, 32, 0.58);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-social-proof h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5.2vw, 82px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
}

.product-social-proof__copy {
  max-width: 46ch;
  margin: 0;
  color: rgba(18, 24, 32, 0.68);
  font-size: 14px;
  line-height: 1.65;
}

.product-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-review-card {
  display: grid;
  grid-template-rows: auto minmax(180px, auto) 1fr auto;
  min-height: 420px;
  padding: 12px;
  color: rgba(18, 24, 32, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    color-mix(in srgb, var(--stage-color, #6c92c9) 62%, #ffffff);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r5, 5px);
  box-shadow: 0 18px 42px rgba(18, 28, 42, 0.12);
  overflow: hidden;
}

.product-review-card__top,
.product-review-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-review-card__top {
  min-height: 24px;
  margin-bottom: 10px;
}

.product-review-card__type,
.product-review-card__handle,
.product-review-card__source {
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-review-card__type {
  color: rgba(18, 24, 32, 0.74);
}

.product-review-card__handle {
  max-width: 52%;
  overflow: hidden;
  color: rgba(18, 24, 32, 0.54);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-review-card__media,
.product-review-card__placeholder {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r5, 5px);
}

.product-review-card__media img,
.product-review-card__media iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  border: 0;
}

.product-review-card__media img {
  object-fit: cover;
}

.product-review-card__media--video {
  aspect-ratio: 16 / 9;
}

.product-review-card__media--video iframe {
  aspect-ratio: 16 / 9;
}

.product-review-card__placeholder {
  display: grid;
  place-items: center;
}

.product-review-card__placeholder::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(18, 24, 32, 0.16);
  border-radius: var(--r5, 5px);
}

.product-review-card__placeholder span {
  position: relative;
  color: rgba(18, 24, 32, 0.42);
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.product-review-card__quote {
  margin: 18px 2px 20px;
  color: rgba(18, 24, 32, 0.78);
  font-size: clamp(16px, 1.45vw, 21px);
  font-weight: 650;
  line-height: 1.34;
  text-wrap: pretty;
}

.product-review-card__footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(18, 24, 32, 0.14);
}

.product-review-card__author {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-review-card__source {
  flex: 0 0 auto;
  padding: 8px 10px;
  color: #fff;
  background: rgba(17, 22, 29, 0.86);
  border-radius: var(--r5, 5px);
  transition: transform 260ms var(--snap), background 220ms var(--ease);
}

.product-review-card__source:hover {
  transform: translateY(-1px);
  background: rgba(17, 22, 29, 0.96);
}

.product-review-card__source--idle {
  opacity: 0.46;
}

@media (max-width: 940px) {
  .product-social-proof {
    width: min(100vw - 36px, 760px);
    margin-top: 8px;
    margin-bottom: 72px;
  }

  .product-social-proof__header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-social-proof h2 {
    font-size: clamp(34px, 11vw, 58px);
  }

  .product-review-grid {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 941px) and (max-width: 1120px) {
  .product-social-proof {
    width: min(100vw - 48px, 1040px);
  }

  .product-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1800px) {
  .product-social-proof {
    width: min(1540px, calc(100vw - 180px));
  }

  .product-review-grid {
    gap: 16px;
  }
}

@media (min-width: 3000px) {
  .product-social-proof {
    width: min(1840px, calc(100vw - 320px));
  }
}

/* Final polish: compact layers stay reachable on small screens. */
.product-distributor__chooser {
  position: static !important;
  inset: auto !important;
  width: 100%;
  margin-top: 2px;
  max-height: min(62svh, 430px);
  overflow: auto;
  scrollbar-width: thin;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1)),
    rgba(210, 228, 244, 0.18);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 18px 44px rgba(18, 28, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.product-distributor__chooser-close,
.product-distributor__manual,
.product-distributor__choice,
.product-distributor__card {
  -webkit-tap-highlight-color: transparent;
}

.product-distributor__chooser-close:focus-visible,
.product-distributor__manual:focus-visible,
.product-distributor__choice:focus-visible,
.product-distributor__card:focus-visible,
.localization-menu summary:focus-visible,
.brand-menu summary:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.74);
  outline-offset: 3px;
}

@media (max-width: 940px) {
  .site-header .brand-menu .brand-panel,
  .site-header .localization-panel {
    max-height: min(72svh, 520px);
    overflow: auto;
  }
}

@media (max-width: 520px) {
  .product-distributor__chooser {
    max-height: min(58svh, 390px);
  }

  .product-distributor__manual {
    width: 100%;
    justify-content: center;
  }
}

/* Home color sync: keep the full product stage tied to the active product image. */
body.template-index {
  --stage-color: var(--hachi-blue, #6c92c9);
}

body.template-index #brand.home-shell {
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.1), transparent 28%),
    var(--stage-color);
  background-color: var(--stage-color);
  transition:
    background-color 620ms var(--ease),
    --stage-color 620ms var(--ease);
}

/* Product color sync: mirror the home stage color behavior on product pages. */
body.template-product {
  --stage-color: var(--hachi-blue, #6c92c9);
  --page: var(--stage-color);
  background:
    radial-gradient(circle at 22% 26%, rgba(255, 255, 255, 0.12), transparent 32%),
    radial-gradient(circle at 76% 70%, rgba(18, 28, 42, 0.08), transparent 34%),
    var(--stage-color);
  background-color: var(--stage-color);
  transition:
    background-color 620ms var(--ease),
    --stage-color 620ms var(--ease);
}

body.template-product .hachi-product-page {
  --page: var(--stage-color);
}

@media (prefers-reduced-motion: reduce) {
  body.template-index #brand.home-shell,
  body.template-index .home-shell {
    transition:
      background-color 520ms var(--ease),
      --stage-color 520ms var(--ease) !important;
  }

  body.template-index .product-stack {
    transition: top 560ms var(--snap) !important;
  }

  body.template-index .stage-card {
    transition:
      transform 560ms var(--snap),
      opacity 360ms var(--ease),
      filter 360ms var(--ease) !important;
  }

  body.template-index .stage-card__visual img {
    transition: transform 620ms var(--snap) !important;
  }
}

/* GlassPad ranking page: control-to-speed map for Hachiware glass surfaces. */
body.template-suffix-glasspad,
body.template-suffix-glasspad-clean,
body.template-suffix-glasspad-topfix,
body.page-glasspad {
  --page: #a8b7c4;
  --ink: #202a31;
  --rank-muted: #52616c;
  background:
    radial-gradient(circle at 12% -10%, rgba(255, 255, 255, 0.54), transparent 34rem),
    linear-gradient(180deg, rgba(229, 238, 246, 0.6), rgba(171, 188, 202, 0.22) 45%, rgba(136, 154, 169, 0.5)),
    linear-gradient(135deg, #9eafbd 0%, #cad5de 50%, #91a1af 100%);
  background-color: var(--page);
}

.nav-button.is-active,
.glasspad-link:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.glasspad-rank {
  width: min(1180px, calc(100vw - 80px));
  min-height: calc(100svh - var(--header-h));
  margin: 0 auto;
  padding: 132px 0 78px;
}

.glasspad-rank__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 450px);
  gap: 42px;
  align-items: end;
  margin-bottom: 26px;
}

.glasspad-rank h1 {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(58px, 9vw, 128px);
  font-weight: 850;
  line-height: 0.88;
  text-shadow: 0 14px 42px rgba(32, 42, 50, 0.16);
}

.glasspad-rank__copy {
  max-width: 420px;
  margin: 0 0 8px;
  color: rgba(32, 42, 49, 0.76);
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 650;
  line-height: 1.42;
}

.glasspad-rank__track {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 13px 16px;
  color: rgba(32, 42, 49, 0.72);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  box-shadow:
    0 16px 44px rgba(30, 41, 52, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.glasspad-rank__rail {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(32, 42, 49, 0.48));
}

.glasspad-rank__rail i {
  position: absolute;
  top: 50%;
  left: var(--dot);
  width: 6px;
  height: 6px;
  background: rgba(32, 42, 49, 0.7);
  border-radius: 99px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.36);
  transform: translate(-50%, -50%);
}

.glasspad-rank__list {
  display: grid;
  gap: 10px;
}

.glasspad-rank__item {
  position: relative;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) minmax(220px, 280px) auto;
  gap: 18px;
  align-items: center;
  min-height: 160px;
  padding: 10px 12px 10px 10px;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.14)),
    rgba(226, 235, 244, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  box-shadow:
    0 20px 46px rgba(30, 41, 52, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  transition:
    background 220ms var(--snap, cubic-bezier(.16, 1, .3, 1)),
    border-color 220ms var(--snap, cubic-bezier(.16, 1, .3, 1)),
    transform 220ms var(--snap, cubic-bezier(.16, 1, .3, 1));
}

.glasspad-rank__item::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 30%, rgba(32, 42, 49, 0.04));
  opacity: 0.54;
}

.glasspad-rank__item:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.18)),
    rgba(226, 235, 244, 0.22);
  border-color: rgba(255, 255, 255, 0.54);
  transform: translateY(-1px);
}

.glasspad-rank__media {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 1;
  min-height: 136px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(238, 244, 249, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 12px 24px rgba(30, 41, 52, 0.14);
}

.glasspad-rank__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms var(--snap, cubic-bezier(.16, 1, .3, 1));
}

.glasspad-rank__item:hover .glasspad-rank__media img {
  transform: scale(1.035);
}

.glasspad-rank__body {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 4px 0;
}

.glasspad-rank__body h2 {
  margin: 0;
  max-width: 720px;
  color: rgba(32, 42, 49, 0.92);
  font-size: clamp(30px, 3.2vw, 52px);
  font-weight: 850;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.glasspad-rank__body p {
  max-width: 560px;
  margin: 9px 0 0;
  color: rgba(32, 42, 49, 0.68);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.42;
}

.glasspad-rank__position {
  position: relative;
  z-index: 1;
  height: 34px;
}

.glasspad-rank__position::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(32, 42, 49, 0.28);
}

.glasspad-rank__position span {
  position: absolute;
  top: 50%;
  left: var(--speed);
  width: 9px;
  height: 9px;
  background: var(--rank-color);
  border-radius: 99px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.34);
  transform: translate(-50%, -50%);
}

.glasspad-rank__open {
  position: relative;
  z-index: 1;
  align-self: center;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 38px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(32, 42, 49, 0.72);
  border: 1px solid rgba(32, 42, 49, 0.12);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 180ms var(--snap, cubic-bezier(.16, 1, .3, 1)),
    transform 180ms var(--snap, cubic-bezier(.16, 1, .3, 1));
}

.glasspad-rank__open:hover,
.glasspad-rank__open:focus-visible {
  color: #fff;
  background: rgba(32, 42, 49, 0.9);
  outline: 0;
}

.glasspad-rank__open:active {
  transform: translateY(1px);
}

@media (max-width: 940px) {
  .site-header .nav-actions .glasspad-link {
    display: inline-flex;
  }

  .glasspad-rank {
    width: min(720px, calc(100vw - 28px));
    padding: 108px 0 56px;
  }

  .glasspad-rank__intro {
    display: block;
    margin-bottom: 24px;
  }

  .glasspad-rank h1 {
    font-size: clamp(58px, 20vw, 112px);
  }

  .glasspad-rank__copy {
    max-width: 520px;
    margin-top: 12px;
  }

  .glasspad-rank__item {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    min-height: 154px;
  }

  .glasspad-rank__media {
    min-height: 112px;
  }

  .glasspad-rank__position {
    grid-column: 2;
    width: min(260px, 100%);
    height: 24px;
    margin-top: 4px;
  }

  .glasspad-rank__open {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

@media (max-width: 520px) {
  .glasspad-rank__track {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .glasspad-rank__track span:last-child {
    justify-self: end;
  }

  .glasspad-rank__item {
    grid-template-columns: 86px minmax(0, 1fr);
    padding: 10px;
  }

  .glasspad-rank__media {
    min-height: 86px;
  }

  .glasspad-rank__body h2 {
    font-size: clamp(24px, 9vw, 36px);
  }

  .glasspad-rank__body p {
    font-size: 12.5px;
  }

  .glasspad-rank__position {
    grid-column: 1 / -1;
  }
}
