/* TradJac — Temperature Section */
#temperature {
  --temp-accent: #197d7d;
  --temp-veil: 0;
  --temp-fog-deep: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #e4edf1;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  isolation: isolate;
}

.temp-bg-pin {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.temp-bg-stage {
  position: absolute;
  top: -3px;
  right: -3px;
  bottom: -3px;
  left: -3px;
  pointer-events: none;
  background-color: #e8eef2;
  overflow: hidden;
}

.temp-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  display: block;
}

.temp-bg-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(240, 248, 252, 0.42);
  opacity: var(--temp-veil, 0);
  transform: none !important;
  transition: none !important;
}

.temp-bg-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 18%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.26) 0%, transparent 16%),
    radial-gradient(ellipse 100% 90% at 50% 42%, transparent 48%, rgba(255, 255, 255, 0.04) 100%);
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

.temp-section-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: min(72rem, 96vw);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem) 0;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vh, 2.5rem);
  box-sizing: border-box;
}

.temp-header {
  text-align: center;
  padding-top: clamp(4.5rem, 10vh, 5.5rem);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  width: 100%;
}

/* ── Full-page scroll: fit header + slider + footer in one screen ── */
html.fullpage-scroll #temperature .temp-section-inner {
  height: 100%;
  min-height: 0;
  max-height: 100dvh;
  max-width: min(72rem, 96vw);
  margin-left: auto;
  margin-right: auto;
  padding: clamp(5rem, 11vh, 6.25rem) clamp(1rem, 3vw, 2rem) clamp(0.75rem, 2vh, 1.25rem);
  gap: clamp(0.35rem, 1vh, 0.65rem);
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-padding-top: 5rem;
  box-sizing: border-box;
}

html.fullpage-scroll #temperature .temp-header {
  flex-shrink: 0;
  padding-top: 0;
  width: 100%;
}

html.fullpage-scroll #temperature .temp-eyebrow {
  margin-bottom: 0.35rem;
  font-size: clamp(0.5625rem, 1.2vw, 0.6875rem);
}

html.fullpage-scroll #temperature .temp-title {
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  line-height: 1.15;
}

html.fullpage-scroll #temperature .temp-subtitle {
  font-size: clamp(0.75rem, 1.5vw, 0.9375rem);
}

html.fullpage-scroll #temperature .temp-hero-center {
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
  margin-top: clamp(1.25rem, 3.5vh, 2.75rem);
  gap: clamp(0.85rem, 2vh, 1.35rem);
}

html.fullpage-scroll #temperature .temp-hero-intro {
  padding-bottom: 0.35rem;
}

html.fullpage-scroll #temperature .temp-display-block {
  min-height: auto;
  margin-top: clamp(0.5rem, 1.5vh, 1rem);
  padding: clamp(0.5rem, 1.2vh, 1rem) 0.5rem 0.25rem;
  gap: 0.35rem;
}

html.fullpage-scroll #temperature .temp-value {
  font-size: clamp(1.85rem, 5vw, 3rem);
}

html.fullpage-scroll #temperature .temp-status {
  font-size: clamp(0.9375rem, 2vw, 1.2rem);
}

html.fullpage-scroll #temperature .temp-desc {
  font-size: clamp(0.75rem, 1.4vw, 0.875rem);
  line-height: 1.45;
  max-width: 22rem;
}

html.fullpage-scroll #temperature .temp-slider-zone {
  margin-top: clamp(1rem, 2.8vh, 2rem);
  padding-top: clamp(0.35rem, 1vh, 0.75rem);
}

html.fullpage-scroll #temperature .temp-slider-zone-label {
  margin-bottom: 0.45rem;
  font-size: 0.625rem;
}

html.fullpage-scroll #temperature .temp-slider-wrap {
  margin-bottom: 0.5rem !important;
}

html.fullpage-scroll #temperature .temp-markers-row {
  gap: 0.35rem 0.2rem;
}

html.fullpage-scroll #temperature .temp-marker {
  font-size: 0.6875rem;
  min-height: 2rem;
  min-width: 2rem;
}

html.fullpage-scroll #temperature .temp-footer {
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: clamp(0.35rem, 0.8vh, 0.6rem) clamp(1rem, 3vw, 2rem) clamp(0.5rem, 1.2vh, 0.85rem);
  overflow: visible;
}

html.fullpage-scroll #temperature #tempRangeHeadline.temp-range-block {
  padding: clamp(0.35rem, 0.8vh, 0.65rem) 0.35rem;
}

html.fullpage-scroll #temperature .temp-range-split {
  gap: clamp(0.5rem, 1.5vh, 1rem);
  padding: 0 clamp(0.25rem, 1vw, 0.5rem);
}

html.fullpage-scroll #temperature .temp-range-tag-line--light {
  font-size: clamp(0.9375rem, 2.2vw, 1.35rem);
  margin-bottom: 0.15rem;
}

html.fullpage-scroll #temperature .temp-range-tag-line--bold,
html.fullpage-scroll #temperature .temp-range-tag-line--accent {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
}

html.fullpage-scroll #temperature .temp-range-digit-cold,
html.fullpage-scroll #temperature .temp-range-digit-warm {
  font-size: clamp(2.25rem, 6.5vw, 4.75rem);
}

html.fullpage-scroll #temperature .temp-range-sign-cold,
html.fullpage-scroll #temperature .temp-range-sign-warm {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
}

html.fullpage-scroll #temperature .temp-range-unit-cold,
html.fullpage-scroll #temperature .temp-range-unit-warm {
  font-size: clamp(1.4rem, 3.5vw, 2.5rem);
}

html.fullpage-scroll #temperature .temp-range-connector {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
}

.temp-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #197d7d;
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  margin: 0 0 clamp(0.65rem, 1.5vh, 1rem);
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.9);
}

.temp-eyebrow::before,
.temp-eyebrow::after {
  content: '';
  width: 2.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(25, 125, 125, 0.5));
}

.temp-eyebrow::after {
  background: linear-gradient(90deg, rgba(25, 125, 125, 0.5), transparent);
}

.temp-title {
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 1px 24px rgba(255, 255, 255, 0.9), 0 0 40px rgba(255, 255, 255, 0.6);
}

.temp-subtitle {
  font-size: clamp(0.8125rem, 1.8vw, 1rem);
  font-weight: 500;
  color: #475569;
  letter-spacing: 0.01em;
  line-height: 1.55;
  margin: 0;
  padding: 0 1rem;
  max-width: 28rem;
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.85);
}

.temp-hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1.25rem, 2.5vh, 2rem);
  flex-shrink: 0;
  width: 100%;
  position: relative;
  z-index: 3;
}

.temp-hero-intro {
  flex-shrink: 0;
  width: 100%;
  max-width: 32rem;
  text-align: center;
  padding-bottom: clamp(0.75rem, 2vh, 1.25rem);
}

.temp-display-block {
  text-align: center;
  width: 100%;
  max-width: 28rem;
  padding: clamp(0.75rem, 2vh, 1.25rem) 0.75rem;
  flex-shrink: 0;
  min-height: clamp(8.5rem, 22vh, 11rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.2vh, 0.75rem);
}

.temp-value {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0;
  padding: 0.05em 0;
  font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 4px 30px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.5));
}

.temp-status {
  font-size: clamp(1rem, 2.4vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.95), 0 0 40px rgba(255, 255, 255, 0.65);
}

.temp-desc {
  font-size: clamp(0.8125rem, 1.7vw, 0.9375rem);
  font-weight: 500;
  color: #475569;
  line-height: 1.65;
  margin: 0;
  max-width: 22rem;
  padding: 0 0.5rem;
  text-shadow: 0 1px 20px rgba(255, 255, 255, 0.9);
}

.temp-slider-zone {
  flex-shrink: 0;
  width: 100%;
  max-width: 38rem;
  padding: 0 0.5rem;
  margin-top: clamp(0.5rem, 1.5vh, 1rem);
}

.temp-slider-zone-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
  text-align: center;
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.8);
}

.temp-footer {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding: clamp(0.75rem, 2vh, 1.5rem) clamp(1rem, 3vw, 2rem) clamp(1.5rem, 3vh, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vh, 2rem);
  position: relative;
  z-index: 5;
  box-sizing: border-box;
  background: transparent;
}

@media (min-width: 768px) {
  .temp-footer {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: clamp(1.25rem, 4vw, 2.5rem);
    padding-right: clamp(1.25rem, 4vw, 2.5rem);
    box-sizing: border-box;
  }
}

#tempRangeHeadline.temp-range-block {
  display: block;
  padding: clamp(1rem, 2.5vh, 1.75rem) clamp(0.5rem, 2vw, 1rem);
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  flex-shrink: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  box-sizing: border-box;
}

.temp-range-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .temp-range-split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    gap: clamp(1rem, 2vw, 1.5rem);
    text-align: left;
  }
}

.temp-range-copy {
  text-align: center;
  flex: 1;
  min-width: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .temp-range-copy {
    text-align: left;
    max-width: 18rem;
    flex: 0 1 auto;
    padding-left: 1rem;
    padding-right: 0.5rem;
    border-left: 3px solid rgba(25, 125, 125, 0.35);
    overflow: visible;
    transform: translateX(0);
  }
}

.temp-range-tag {
  margin: 0;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

@media (min-width: 768px) {
  .temp-range-tag {
    align-items: flex-start;
  }
}

.temp-range-tag-line {
  display: block;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.95), 0 0 40px rgba(255, 255, 255, 0.6);
}

.temp-range-tag-line--light {
  font-size: clamp(1.125rem, 2.8vw, 1.5rem);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  text-shadow: none;
}

.temp-range-tag-line--bold {
  font-size: clamp(1.5rem, 4.2vw, 2.25rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.temp-range-tag-line--accent {
  font-size: clamp(1.5rem, 4.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  background: linear-gradient(135deg, #0c4c47 0%, #0f6860 55%, #1e8b80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.temp-range-stack {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  background: transparent;
}

@media (min-width: 768px) {
  .temp-range-stack {
    justify-content: flex-start;
    gap: clamp(0.75rem, 2.5vw, 1.25rem);
  }
}

.temp-range-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.04em;
  line-height: 0.88;
  flex-shrink: 0;
}

.temp-range-sign-cold {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  color: #0a4a4a;
  letter-spacing: -0.04em;
  margin-right: 0.05em;
}

.temp-range-sign-warm {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  color: #8a6910;
  letter-spacing: -0.04em;
  margin-right: 0.05em;
}

.temp-range-digit-cold {
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #051919 0%, #0f4b4b 25%, #197d7d 55%, #47b7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.temp-range-digit-warm {
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #5c4206 0%, #9a7209 30%, #d4a017 65%, #f0d078 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.temp-range-unit-cold,
.temp-range-unit-warm {
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  align-self: flex-end;
  padding-bottom: 0.12em;
}

.temp-range-unit-cold {
  color: #197d7d;
}

.temp-range-unit-warm {
  color: #c88e1e;
}

.temp-range-connector {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.1em;
  color: #0f172a;
  align-self: center;
  padding: 0 0.15rem 0.35rem;
}

.temp-cinema-atmosphere {
  --temp-fog-deep: 0;
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  min-height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.temp-fog-cold-wrap {
  position: absolute;
  inset: 0;
  opacity: var(--temp-fog-deep);
  pointer-events: none;
}

.temp-fog-layer {
  position: absolute;
  pointer-events: none;
}

.temp-volumetric-base {
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(224, 242, 254, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 20% 60%, rgba(186, 230, 253, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 90% 70% at 80% 55%, rgba(207, 250, 254, 0.3) 0%, transparent 50%),
    linear-gradient(180deg, rgba(240, 249, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(224, 242, 254, 0.2) 100%);
  animation: temp-haze-breathe 20s ease-in-out infinite;
}

.temp-chilled-haze {
  inset: -5%;
  background: radial-gradient(ellipse 100% 65% at 50% 55%, rgba(255, 255, 255, 0.5) 0%, rgba(186, 230, 253, 0.25) 40%, transparent 70%);
  filter: blur(48px);
  animation: temp-chilled-drift 28s ease-in-out infinite alternate;
}

.temp-freezer-ambient {
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 70%, rgba(147, 197, 253, 0.2) 0%, transparent 65%);
  filter: blur(36px);
  animation: temp-ambient-pulse 14s ease-in-out infinite alternate;
}

.temp-fog-drift-zone {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.temp-fog-bank {
  position: absolute;
  left: -25%;
  width: 150%;
  border-radius: 50%;
  filter: blur(44px);
}

.temp-fog-bank-1 {
  bottom: 8%;
  height: 42%;
  background: radial-gradient(ellipse 55% 80% at 30% 80%, rgba(255, 255, 255, 0.88) 0%, rgba(224, 242, 254, 0.5) 35%, transparent 68%),
    radial-gradient(ellipse 45% 70% at 70% 75%, rgba(255, 255, 255, 0.7) 0%, transparent 65%);
  animation: temp-ice-drift-1 32s ease-in-out infinite;
}

.temp-fog-bank-2 {
  bottom: 22%;
  height: 38%;
  background: radial-gradient(ellipse 50% 75% at 55% 70%, rgba(255, 255, 255, 0.75) 0%, rgba(207, 250, 254, 0.4) 40%, transparent 70%);
  animation: temp-ice-drift-2 26s ease-in-out infinite;
  animation-delay: -8s;
}

.temp-fog-bank-3 {
  bottom: 35%;
  height: 32%;
  background: radial-gradient(ellipse 60% 65% at 40% 60%, rgba(255, 255, 255, 0.6) 0%, transparent 72%);
  filter: blur(52px);
  animation: temp-ice-drift-3 38s ease-in-out infinite;
  animation-delay: -14s;
}

.temp-fog-floor {
  inset: 0;
  top: auto;
  height: 50%;
  background: linear-gradient(0deg, rgba(224, 242, 254, 0.5) 0%, transparent 45%);
  filter: blur(10px);
}

.temp-fog-floor::before,
.temp-fog-floor::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 80%;
  height: 55%;
  filter: blur(36px);
  border-radius: 50%;
}

.temp-fog-floor::before {
  left: -10%;
  background: radial-gradient(ellipse 70% 90% at 40% 100%, rgba(255, 255, 255, 0.85) 0%, transparent 65%);
  animation: temp-floor-roll-l 22s ease-in-out infinite;
}

.temp-fog-floor::after {
  right: -10%;
  background: radial-gradient(ellipse 70% 90% at 60% 100%, rgba(255, 255, 255, 0.8) 0%, transparent 65%);
  animation: temp-floor-roll-r 27s ease-in-out infinite;
  animation-delay: -11s;
}

.temp-fog-mid {
  inset: 0;
  background: radial-gradient(ellipse 90% 55% at 50% 55%, rgba(255, 255, 255, 0.65) 0%, transparent 68%);
  filter: blur(44px);
  animation: temp-fog-breathe 14s ease-in-out infinite;
}

.temp-fog-rise {
  inset: 0;
  background: radial-gradient(ellipse 35% 25% at 35% 80%, rgba(255, 255, 255, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 30% 22% at 58% 75%, rgba(255, 255, 255, 0.5) 0%, transparent 68%),
    radial-gradient(ellipse 28% 20% at 72% 82%, rgba(255, 255, 255, 0.45) 0%, transparent 65%),
    radial-gradient(ellipse 32% 24% at 22% 78%, rgba(255, 255, 255, 0.48) 0%, transparent 66%);
  filter: blur(28px);
  animation: temp-vapor-rise 12s ease-in-out infinite;
}

.temp-fog-glow {
  inset: 0;
  opacity: 0.7;
  background: radial-gradient(ellipse 85% 55% at 50% 48%, rgba(147, 197, 253, 0.22) 0%, transparent 72%);
  filter: blur(20px);
  animation: temp-fog-glow-pulse 11s ease-in-out infinite alternate;
}

@keyframes temp-haze-breathe {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes temp-chilled-drift {
  0% { transform: translate(-2%, 1%); }
  100% { transform: translate(3%, -2%); }
}

@keyframes temp-ambient-pulse {
  0% { opacity: 0.5; }
  100% { opacity: 0.9; }
}

@keyframes temp-ice-drift-1 {
  0%, 100% { transform: translate(-4%, 1%); opacity: 0.55; }
  50% { transform: translate(8%, -2%); opacity: 0.85; }
}

@keyframes temp-ice-drift-2 {
  0%, 100% { transform: translate(6%, 0); opacity: 0.5; }
  50% { transform: translate(-8%, -3%); opacity: 0.78; }
}

@keyframes temp-ice-drift-3 {
  0%, 100% { transform: translate(-8%, -1%); opacity: 0.4; }
  50% { transform: translate(10%, -4%); opacity: 0.72; }
}

@keyframes temp-floor-roll-l {
  0%, 100% { transform: translateX(-4%); }
  50% { transform: translateX(14%); }
}

@keyframes temp-floor-roll-r {
  0%, 100% { transform: translateX(5%); }
  50% { transform: translateX(-16%); }
}

@keyframes temp-fog-breathe {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.85; }
}

@keyframes temp-vapor-rise {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}

@keyframes temp-fog-glow-pulse {
  0% { opacity: 0.5; }
  100% { opacity: 0.8; }
}

.temp-icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.9));
}

.temp-slider-wrap {
  --slider-pct: 40%;
  position: relative;
  height: 3rem;
  touch-action: none;
  cursor: pointer;
  user-select: none;
}

.temp-slider-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  width: var(--slider-pct);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 15;
  background: linear-gradient(90deg, rgba(10, 74, 74, 0.25) 0%, rgba(25, 125, 125, 0.35) 100%);
  transition: width 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.temp-slider-track {
  height: 8px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #0a4a4a 0%, #197d7d 22%, #3daba0 42%, #8fbc8f 62%, #c9a227 82%, #d4a017 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.5);
  opacity: 0.92;
}

.temp-slider-thumb {
  position: absolute;
  top: 50%;
  left: var(--slider-pct);
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--temp-accent, #197d7d);
  border: 3px solid #fff;
  pointer-events: none;
  z-index: 25;
  box-shadow: 0 0 0 5px rgba(25, 125, 125, 0.12), 0 8px 24px rgba(15, 23, 42, 0.15);
  transition: background 0.4s ease, box-shadow 0.3s ease, transform 0.2s ease;
  will-change: left, transform;
}

.temp-slider-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 30;
  -webkit-appearance: none;
  appearance: none;
}

.temp-marker {
  transition: color 0.25s ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.25rem 0.125rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.85);
}

@media (min-width: 640px) {
  .temp-marker {
    font-size: 0.8125rem;
  }
}

.temp-marker.active {
  color: #197d7d;
  font-weight: 700;
}

.temp-display-value,
.temp-value {
  transition: opacity 0.35s ease;
}

#tempDisplayValue {
  background: linear-gradient(160deg, #051919 0%, #0f4b4b 30%, #197d7d 65%, #47b7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.temp-display-value.updating {
  opacity: 0;
}

.temp-fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.temp-fade-up.temp-animate {
  opacity: 0;
  transform: translateY(24px);
}

.temp-fade-up.temp-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.temp-markers-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 0.35rem;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 767px) {
  #temperature {
    min-height: auto;
    -webkit-overflow-scrolling: touch;
  }

  html.fullpage-scroll #temperature {
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  html.fullpage-scroll #temperature .temp-section-inner {
    padding-top: clamp(4.75rem, 12vh, 5.75rem);
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    gap: 0.3rem;
  }

  html.fullpage-scroll #temperature .temp-title {
    font-size: clamp(1.05rem, 4.2vw, 1.4rem);
  }

  html.fullpage-scroll #temperature .temp-hero-center {
    margin-top: clamp(0.85rem, 2.5vh, 1.5rem);
    gap: 0.75rem;
  }

  html.fullpage-scroll #temperature .temp-display-block {
    min-height: auto;
    margin-top: 0.4rem;
    padding: 0.5rem 0.25rem 0.2rem;
  }

  html.fullpage-scroll #temperature .temp-slider-zone {
    margin-top: clamp(0.75rem, 2vh, 1.35rem);
    padding-top: 0.35rem;
  }

  html.fullpage-scroll #temperature .temp-value {
    font-size: clamp(1.65rem, 10vw, 2.25rem);
  }

  html.fullpage-scroll #temperature .temp-range-digit-cold,
  html.fullpage-scroll #temperature .temp-range-digit-warm {
    font-size: clamp(1.85rem, 9vw, 2.85rem);
  }

  html.fullpage-scroll #temperature .temp-range-sign-cold,
  html.fullpage-scroll #temperature .temp-range-sign-warm {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  html.fullpage-scroll #temperature .temp-range-unit-cold,
  html.fullpage-scroll #temperature .temp-range-unit-warm {
    font-size: clamp(1.1rem, 5vw, 1.65rem);
  }

  html.fullpage-scroll #temperature .temp-range-tag-line--light {
    font-size: clamp(0.8125rem, 3.5vw, 1rem);
  }

  html.fullpage-scroll #temperature .temp-range-tag-line--bold,
  html.fullpage-scroll #temperature .temp-range-tag-line--accent {
    font-size: clamp(1.15rem, 5vw, 1.5rem);
  }

  html.fullpage-scroll #temperature .temp-range-split {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  html.fullpage-scroll #temperature .temp-range-copy {
    text-align: center;
    border-left: none;
    padding-left: 0;
  }

  html.fullpage-scroll #temperature .temp-range-tag {
    align-items: center;
  }

  .temp-section-inner {
    max-width: 100%;
    min-height: auto;
    padding: 1rem 1rem 1.25rem;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    gap: 1.25rem;
  }

  .temp-header {
    padding-top: clamp(4.25rem, 12vh, 5.5rem);
  }

  html.fullpage-scroll #temperature .temp-header {
    padding-top: 0.25rem;
  }

  .temp-eyebrow {
    font-size: 0.625rem;
    gap: 0.5rem;
    letter-spacing: 0.16em;
    flex-wrap: wrap;
    justify-content: center;
  }

  .temp-eyebrow::before,
  .temp-eyebrow::after {
    width: 1.25rem;
  }

  .temp-title {
    font-size: clamp(1.25rem, 5.5vw, 1.75rem);
    padding: 0 0.25rem;
    line-height: 1.25;
  }

  .temp-subtitle {
    font-size: 0.8125rem;
    padding: 0 0.5rem;
  }

  .temp-hero-center {
    gap: 1rem;
  }

  .temp-display-block {
    min-height: 7rem;
    padding: 0.5rem 0.25rem;
    max-width: 100%;
  }

  .temp-value {
    font-size: clamp(2rem, 12vw, 2.75rem);
  }

  .temp-status {
    font-size: 1rem;
  }

  .temp-desc {
    font-size: 0.8125rem;
    max-width: 18rem;
  }

  .temp-slider-zone {
    max-width: 100%;
    padding: 0;
    margin-top: 0.25rem;
  }

  .temp-slider-zone-label {
    margin-bottom: 0.875rem;
  }

  .temp-slider-wrap {
    height: 3.25rem;
    touch-action: pan-x;
    -webkit-tap-highlight-color: transparent;
  }

  .temp-slider-thumb {
    width: 36px;
    height: 36px;
    box-shadow: 0 0 0 6px rgba(25, 125, 125, 0.14), 0 6px 20px rgba(15, 23, 42, 0.18);
  }

  .temp-slider-input {
    min-height: 44px;
  }

  .temp-markers-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem 0.25rem;
  }

  .temp-marker {
    font-size: 0.6875rem;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.2rem;
    margin: 0 auto;
  }

  .temp-footer {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 1rem 1rem 1.5rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    gap: 1.25rem;
  }

  .temp-range-split {
    gap: 1.25rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .temp-range-copy {
    max-width: 100%;
    padding: 0;
    border-left: none;
    text-align: center;
  }

  .temp-range-tag {
    align-items: center;
  }

  .temp-range-stack {
    justify-content: center;
    width: 100%;
  }

  .temp-range-tag-line--light {
    font-size: 1rem;
  }

  .temp-range-tag-line--bold,
  .temp-range-tag-line--accent {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }

  .temp-range-stack {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
  }

  .temp-range-row {
    justify-content: center;
  }

  .temp-range-sign-cold,
  .temp-range-sign-warm {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .temp-range-digit-cold,
  .temp-range-digit-warm {
    font-size: clamp(2.25rem, 14vw, 3.5rem);
  }

  .temp-range-unit-cold,
  .temp-range-unit-warm {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .temp-range-connector {
    font-size: 0.9375rem;
    padding: 0.2rem 0;
  }

  .temp-bg-pin {
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
  }

  .temp-bg-stage {
    top: -6px;
    right: -6px;
    bottom: -6px;
    left: -6px;
    transform: translateZ(0);
  }

  .temp-bg-img {
    object-position: 50% 36%;
  }

  .temp-bg-scrim {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 14%),
      linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0%, transparent 12%),
      radial-gradient(ellipse 130% 85% at 50% 40%, transparent 52%, rgba(255, 255, 255, 0.03) 100%);
  }

  #temperature {
    background-color: #e8eef2;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .temp-bg-img {
    object-position: 50% 45%;
  }
}

@media (max-width: 380px) {
  .temp-markers-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .temp-marker {
    font-size: 0.625rem;
  }

  .temp-eyebrow::before,
  .temp-eyebrow::after {
    display: none;
  }

  .temp-bg-img {
    object-position: 50% 32%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .temp-volumetric-base,
  .temp-chilled-haze,
  .temp-freezer-ambient,
  .temp-fog-bank,
  .temp-fog-floor::before,
  .temp-fog-floor::after,
  .temp-fog-mid,
  .temp-fog-rise,
  .temp-fog-glow {
    animation: none;
  }
}
