@font-face {
  font-family: "RC Type";
  src: url("fonts/dinpro-regular.woff2") format("woff2"), url("fonts/dinpro-regular.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RC Type";
  src: url("fonts/dinpro-regular.woff2") format("woff2"), url("fonts/dinpro-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RC Type";
  src: url("fonts/dinpro-medium.woff2") format("woff2"), url("fonts/dinpro-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RC Type";
  src: url("fonts/dinpro-bold.woff2") format("woff2"), url("fonts/dinpro-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RC Type Cond";
  src: url("fonts/dinpro-cond-regular.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RC Type Cond";
  src: url("fonts/dinpro-cond-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RC Type Cond";
  src: url("fonts/dinpro-cond-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "RC Type", Arial, Helvetica, sans-serif;
  color: #1d1d1b;
  background: #ffffff;
  overflow: hidden;
}

body {
  --ui-scale: 1;
  --logo-size: clamp(648px, 17vw, 1040px);
  --node-size: calc(clamp(210px, 5.5vw, 310px) / var(--ui-scale));
  opacity: 0;
  transition: opacity 180ms ease;
}

body.is-ready {
  opacity: 1;
}

.page {
  width: 3840px;
  height: 2160px;
  transform: translate(-50%, -50%) scale(var(--ui-scale));
  transform-origin: center center;
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(20px / var(--ui-scale));
  height: calc(170px / var(--ui-scale));
  flex: 0 0 calc(170px / var(--ui-scale));
}

.logo-link img {
  width: calc(var(--logo-size) * 0.9);
  height: auto;
  display: block;
}

.page-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 180px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.page-stand .page-main {
  padding: 0;
}

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.page-index .section,
.page-range .section {
  justify-content: center;
  padding-top: 30px;
  padding-bottom: 170px;
}

h1 {
  margin: 0;
  font-size: 70px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 34px;
  text-decoration: none;
  font-weight: 700;
  font-size: 40px;
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: #e2001a;
  color: #fff;
}

.btn-outline {
  border-color: #e2001a;
  color: #e2001a;
  background: transparent;
}

.hub-title {
  position: relative;
  transform: translateY(77px);
  width: auto;
  margin-top: 6px;
  text-align: center;
  padding: 14px 34px 12px;
  background: #fff;
  border-radius: 6px;
  z-index: 4;
}

.hub-title h1 {
  color: #e2001a;
  font-size: 62px;
  line-height: 1;
  margin-bottom: 3px;
}

.hub-title p {
  margin: 0;
  font-family: "RC Type Cond", Arial, sans-serif;
  font-style: italic;
  font-size: 38px;
  color: #1d1d1b;
}

.node-grid {
  --line-inset: 260px;
  --node-w: 500px;
  --node-gap: 290px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--node-gap);
  position: relative;
  margin-top: 200px;
  z-index: 1;
}

.node-grid::before {
  content: "";
  position: absolute;
  top: -210px;
  left: var(--line-inset);
  right: var(--line-inset);
  height: 2px;
  background: #c6a7ad;
}

.page-index .hub-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.page-index .node-grid::before,
.page-index .node::before {
  display: none;
}

.node {
  text-decoration: none;
  color: #1d1d1b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  position: relative;
  flex: 0 0 var(--node-w);
  width: var(--node-w);
  min-width: var(--node-w);
  max-width: var(--node-w);
  transition: transform 180ms ease;
}

.node::before {
  content: "";
  position: absolute;
  top: -210px;
  height: 210px;
  width: 2px;
  background: #c6a7ad;
  transition: top 180ms ease, height 180ms ease;
}

.node:hover,
.node:focus-visible {
  transform: scale(0.95);
}

.node:hover::before,
.node:focus-visible::before {
  height: calc(210px * 1.12) !important;
  top: calc(-210px * 1.12) !important;
}

.node-circle {
  width: var(--node-size);
  height: var(--node-size);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 180ms ease;
}

.node-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.node-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(226, 35, 26, 0.9);
  transform: scale(1);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.node:hover .node-circle::after,
.node:focus-visible .node-circle::after {
  animation: nodeWaveHover 380ms ease-out forwards;
}

.node:hover .node-circle,
.node:focus-visible .node-circle {
  border-color: transparent;
}

.node:active .node-circle::after {
  animation: nodeWaveClick 520ms ease-out forwards;
}

.node:hover .node-circle,
.node:focus-visible .node-circle {
  filter: brightness(0.95);
}

.node:active .node-circle {
  filter: brightness(0.78);
}

@keyframes nodeWaveHover {
  0% {
    transform: scale(1);
    opacity: 0;
  }
  35% {
    opacity: 0.75;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

@keyframes nodeWaveClick {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.38);
    opacity: 0;
  }
}

.node--red .node-circle {
  background: transparent;
}

.node--white .node-circle {
  background: #fff;
  border: 3px solid #e2001a;
}

.page-index .node-grid--2 {
  --node-gap: 700px;
  --line-inset: calc((100% - (2 * var(--node-w) + var(--node-gap))) / 2 + (var(--node-w) / 2));
  margin-top: 0;
}

.page-range .node-grid--2 {
  --line-inset: calc((100% - (2 * var(--node-w) + var(--node-gap))) / 2 + (var(--node-w) / 2));
}

.node-grid--5 {
  --line-inset: 480px;
  gap: 200px;
}

.node-grid--5 .node {
  flex: 0 0 430px;
  width: 430px;
  min-width: 430px;
  max-width: 430px;
}

.node-grid--5 .node-circle {
  width: var(--node-size);
  height: var(--node-size);
}

.node-label-en {
  margin: 0;
  font-weight: 700;
  color: #b3122b;
  font-size: 48px;
  letter-spacing: 0.01em;
  line-height: 1.04;
  text-align: center;
  text-wrap: balance;
}

.node-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-range .node-label {
  visibility: hidden;
}

.node-label-fr {
  margin-top: -10px;
  font-family: "RC Type Cond", Arial, sans-serif;
  font-style: italic;
  font-size: 36px;
  color: #1d1d1b;
}

.previous-btn {
  margin-top: 0;
  gap: 10px;
  min-width: 280px;
  padding: 14px 28px;
  font-size: 40px;
}

.arrow-left {
  font-size: 40px;
  line-height: 1;
}

.stand {
  width: 100%;
  min-height: 0;
  gap: 30px;
  justify-content: flex-start;
  padding-top: 14px;
  padding-bottom: 170px;
}

.pano-wrap {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stand-image {
  width: 100%;
  max-width: 3460px;
  max-height: 1460px;
  object-fit: contain;
  background: transparent;
}

.page-stand .stand-image {
  max-height: 100%;
}

.stand-placeholder {
  width: 100%;
  max-width: 3000px;
  min-height: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 4px dashed #c6a7ad;
  border-radius: 26px;
  background: #f6f6f6;
  color: #707784;
  font-size: 46px;
}

.stand-placeholder strong {
  color: #e2001a;
  font-size: 58px;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.page-range .previous-btn {
  position: absolute;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  z-index: 3;
}

.action-bar {
  position: absolute;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%);
  z-index: 3;
  padding-bottom: 0;
}

.action-bar .btn {
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.action-bar .btn:hover,
.action-bar .btn:focus-visible {
  background: #e2001a;
  color: #fff;
  border-color: #e2001a;
}

.home-round-btn {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid transparent;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.home-round-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  transition: filter 160ms ease;
}

.home-round-btn:hover,
.home-round-btn:focus-visible {
  transform: scale(1.06);
  background: #e2001a;
  border-color: #e2001a;
  filter: brightness(0.95);
}

.page-index .node-circle img,
.page-range .node-grid--2 .node-circle img,
.page-range .node-grid--5 .node-circle img {
  width: 100%;
  height: 100%;
}
