/* Relievo — How it works */

/* ---------- Spin ---------- */
.spin {
  overflow-x: hidden;
  overflow-x: clip;
  padding: calc(var(--nav-h) + clamp(1.5rem, 5vh, 3.5rem)) 0 clamp(3rem, 8vh, 6rem);
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.spin__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.spin__title { margin-bottom: 1.5rem; }
.spin__viewer { display: grid; gap: 1.25rem; }
.spin__stage {
  position: relative;
  height: min(64svh, 600px);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.spin__stage.is-dragging { cursor: grabbing; }
.spin__view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(28, 28, 30, 0.18));
  pointer-events: none;
  -webkit-user-drag: none;
}
.spin__view:not([data-view="0"]) { opacity: 0; }
.spin__controls { width: min(100%, 420px); margin-inline: auto; }
.spin__label { display: block; text-align: center; font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 0.6rem; }
.spin__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  background: transparent;
  cursor: pointer;
}
.spin__range::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: var(--graphite); }
.spin__range::-moz-range-track { height: 3px; border-radius: 3px; background: var(--graphite); }
.spin__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  margin-top: -11.5px;
  border-radius: 50%;
  background: var(--signal);
  border: 3px solid var(--concrete);
  box-shadow: 0 0 0 1.5px var(--graphite);
}
.spin__range::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--signal);
  border: 3px solid var(--concrete);
  box-shadow: 0 0 0 1.5px var(--graphite);
}
.spin__ticks {
  display: flex;
  justify-content: space-between;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
}
@media (max-width: 900px) {
  .spin { min-height: 0; }
  .spin__grid { grid-template-columns: 1fr; }
  .spin__stage { height: min(52svh, 460px); }
}

/* ---------- Heat dial ---------- */
.dial {
  position: relative;
  overflow: hidden;
  background: var(--graphite);
  color: var(--on-dark);
  padding-block: clamp(4rem, 9vw, 7rem);
}
.dial__glow {
  position: absolute;
  left: 28%;
  top: 50%;
  width: 80vmin;
  height: 80vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 74, 18, 0.42), rgba(255, 74, 18, 0.1) 55%, transparent 75%);
  opacity: 0.7;
  pointer-events: none;
}
.dial__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.dial__bag {
  position: relative;
  height: min(76svh, 660px);
  aspect-ratio: 1000 / 1159;
  margin-inline: auto;
}
.dial__bag img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial__on { opacity: 0.8; }
.dial__bloom {
  opacity: 0.5;
  filter: blur(16px) saturate(1.5) brightness(1.3);
  mix-blend-mode: screen;
}
.dial__copy .body-copy { color: var(--on-dark-soft); margin-bottom: 2rem; }
.dial__control {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 0 1rem;
  padding: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  max-width: 30rem;
}
.dial__control label { position: relative; }
.dial__control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.dial__control span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 650;
  font-stretch: 100%;
  color: var(--on-dark-soft);
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.dial__control label:hover span { color: var(--on-dark); }
.dial__control input:checked + span { background: var(--ember); color: #fff; box-shadow: 0 0 22px rgba(255, 74, 18, 0.55); }
.dial__control input[value="0"]:checked + span { background: var(--on-dark); color: var(--graphite); box-shadow: none; }
.dial__control input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.dial__status { margin: 0 0 2.25rem; color: var(--on-dark-soft); min-height: 1.5em; }
.dial__power {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  max-width: 30rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.dial__power img { border-radius: var(--radius-s); }
.dial__power p { margin: 0; color: var(--on-dark-soft); font-size: var(--step--1); }
.dial__power strong { color: var(--on-dark); }
@media (max-width: 900px) {
  .dial__grid { grid-template-columns: 1fr; }
  .dial__bag { height: auto; width: min(100%, 380px); }
  .dial__glow { left: 50%; top: 28%; }
}

/* ---------- Anatomy ---------- */
.anatomy { padding-block: clamp(5rem, 10vw, 8rem); }
.anatomy__title { margin-bottom: 0.3em; }
.anatomy__intro { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.anatomy__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.anatomy__figure {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
}
.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 244, 243, 0.92);
  box-shadow: 0 0 0 2px var(--graphite), 0 6px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.hotspot::before,
.hotspot::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 2px;
  background: var(--graphite);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, background-color 0.2s ease;
}
.hotspot::after { transform: translate(-50%, -50%) rotate(90deg); }
.hotspot:hover { transform: scale(1.1); }
.hotspot[aria-pressed="true"] { background: var(--signal); }
.hotspot[aria-pressed="true"]::after { transform: translate(-50%, -50%) rotate(0deg); }
.js .hotspot { animation: hotspot-hint 1.6s ease-out 0.6s 2; }
@keyframes hotspot-hint {
  0% { box-shadow: 0 0 0 2px var(--graphite), 0 0 0 0 rgba(234, 122, 43, 0.6); }
  100% { box-shadow: 0 0 0 2px var(--graphite), 0 0 0 18px rgba(234, 122, 43, 0); }
}

.part {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-m);
  background: var(--paper);
}
.part__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-s);
  background: var(--concrete);
  margin-bottom: 1.5rem;
}
.part__media img { width: 100%; height: 100%; object-fit: cover; }
.part__media img.is-zoom { object-fit: cover; transform: scale(var(--zoom, 2)); transform-origin: var(--origin, 50% 50%); }
.part .h3 { font-size: var(--step-2); }
.part > p { color: var(--ink-soft); margin: 0 0 1.5rem; max-width: 46ch; min-height: 4.65em; }
.part__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}
.part__list button {
  min-height: 40px;
  padding: 0 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 600;
  font-size: var(--step--1);
  cursor: pointer;
}
.part__list button:hover { box-shadow: inset 0 0 0 1.5px var(--graphite); }
.part__list button[aria-pressed="true"] { background: var(--graphite); color: var(--on-dark); box-shadow: none; }
@media (max-width: 900px) {
  .anatomy__grid { grid-template-columns: 1fr; }
  .anatomy__figure { max-width: 400px; }
  .part { position: static; }
}

/* ---------- Specs ---------- */
.specs { background: var(--concrete-deep); padding-block: clamp(5rem, 10vw, 8rem); }
.specs__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
}
.spec-list { margin: 0; }
.spec {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.spec:last-child { border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 600; color: var(--ink-soft); }
.spec dd { margin: 0; }
.spec__big {
  display: block;
  font-size: var(--step-2);
  font-weight: 780;
  font-stretch: 100%;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.spec__small { display: block; margin-top: 0.3rem; color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 820px) {
  .specs__grid { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; gap: 0.2rem; }
}

.page-how .cta-band__img { max-height: 500px; }
