/* Relievo — home page */

/* ---------- Intro ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(1.5rem, 4vh, 2.5rem);
  background: var(--concrete);
}
html.no-js .intro,
.intro.is-done { display: none; }
.intro__mark {
  position: relative;
  width: min(42vw, 250px);
  aspect-ratio: 919 / 827;
}
.intro__piece {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.intro__word { width: min(56vw, 330px); height: auto; }
.intro__skip {
  position: absolute;
  right: var(--pad);
  bottom: 1.5rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink-soft);
  font-weight: 600;
  cursor: pointer;
}
.intro__skip:hover { color: var(--graphite); box-shadow: inset 0 0 0 1.5px var(--graphite); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: max(100svh, 640px);
  max-width: var(--max);
  margin-inline: auto;
  padding: calc(var(--nav-h) + clamp(1rem, 4vh, 3rem)) var(--pad) clamp(2rem, 5vh, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas: "copy bag";
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.hero__copy { grid-area: copy; max-width: 36rem; }
.hero__title { margin-bottom: 1.5rem; }
.hero__line { display: block; }
.hero__bag-wrap {
  grid-area: bag;
  justify-self: center;
  width: min(100%, 520px);
  pointer-events: none;
}
.hero__bag {
  width: 100%;
  height: auto;
  max-height: 78svh;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(28, 28, 30, 0.22));
}
.hero__lede { margin-bottom: 2rem; max-width: 32rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
}
.hero__facts li { padding-right: 1rem; margin-right: 1rem; border-right: 1px solid var(--line); }
.hero__facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

@media (max-width: 900px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "bag";
    padding-bottom: 3rem;
  }
  .hero__bag-wrap { width: min(74vw, 380px); }
  /* phone order: title, bag, then the words */
  .hero__copy { display: contents; }
  .hero__title { order: 1; margin-bottom: 0; }
  .hero__bag-wrap { order: 2; }
  .hero__lede { order: 3; margin-bottom: 0; }
  .hero__actions { order: 4; }
  .hero__facts { order: 5; margin-top: 0.5rem; }
}

/* ---------- Tension ---------- */
.tension { padding-block: clamp(5rem, 12vw, 9rem); border-top: 1px solid var(--line); }
.tension__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  align-items: start;
}
.tension__title { margin: 0; max-width: 16ch; }
.tension__copy { font-size: var(--step-1); line-height: 1.5; max-width: 34rem; }
.tension__copy p:last-child { margin-bottom: 0; }
@media (max-width: 820px) { .tension__grid { grid-template-columns: 1fr; } }

/* ---------- Heat chamber ---------- */
.heat {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  color: var(--graphite);
}
.heat__bg {
  position: absolute;
  inset: 0;
  background: var(--graphite);
  opacity: 0;
}
.heat__ambient {
  position: absolute;
  left: 62%;
  top: 55%;
  width: 90vmin;
  height: 90vmin;
  transform: translate(-50%, -50%) scale(0.6);
  background: radial-gradient(closest-side, rgba(255, 74, 18, 0.42), rgba(255, 74, 18, 0.12) 55%, transparent 75%);
  opacity: 0;
  pointer-events: none;
}
.heat__stage {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-top: var(--nav-h);
  padding-bottom: 2rem;
}
.heat__title { max-width: 12ch; }
.heat__steps {
  display: grid;
  max-width: 30rem;
  min-height: 7.5em;
  margin-bottom: 2rem;
}
.heat__step {
  grid-area: 1 / 1;
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.4;
  color: inherit;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.heat__step.is-active { opacity: 0.86; transform: none; }

.heat__meter { display: flex; align-items: center; gap: 1rem; }
.heat__meter-label { font-weight: 700; font-stretch: 100%; }
.heat__meter ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(3.6rem, 4.6rem));
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.heat__meter li {
  position: relative;
  padding-top: 14px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--on-dark-soft);
  transition: color 0.3s ease;
}
.heat__meter li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.heat__meter li[data-level="0"]::before { background: rgba(255, 255, 255, 0.28); }
.heat__meter li.is-on::before { background: var(--ember); box-shadow: 0 0 14px rgba(255, 74, 18, 0.7); }
.heat__meter li.is-current { color: var(--on-dark); }
.heat__meter li[data-level="0"].is-current::before { background: var(--on-dark); }

.heat__figure { margin: 0; justify-self: start; }
.heat__bag {
  position: relative;
  height: min(76svh, 720px);
  aspect-ratio: 1000 / 1141;
}
.heat__bag img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.heat__on { clip-path: inset(0 0 100% 0); }
.heat__bloom {
  z-index: 2;
  opacity: 0;
  filter: blur(16px) saturate(1.5) brightness(1.3);
  mix-blend-mode: screen;
  pointer-events: none;
}
.heat__zone {
  position: absolute;
  z-index: 3;
  top: var(--y);
  left: 74%;
  right: -8.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(-50%);
  font-size: var(--step--1);
  font-weight: 650;
  font-stretch: 100%;
  color: var(--on-dark);
  white-space: nowrap;
  opacity: 0;
}
.heat__zone::before {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.heat__zone::after {
  content: "";
  order: -1;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ember-hot);
  box-shadow: 0 0 10px var(--ember);
}
.heat__lumbar {
  position: absolute;
  z-index: 3;
  left: 36%;
  top: 62%;
  width: 44%;
  height: 22%;
  border: 2px dashed rgba(255, 138, 61, 0.9);
  border-radius: 48%;
  opacity: 0;
  transform: scale(1.15);
}

/* heat: no JS or reduced motion shows the finished, lit state */
html.no-js .heat,
.heat.is-static { height: auto; min-height: 0; color: var(--on-dark); }
html.no-js .heat__bg,
.heat.is-static .heat__bg { opacity: 1; }
html.no-js .heat__on,
.heat.is-static .heat__on { clip-path: none; }
html.no-js .heat__ambient,
.heat.is-static .heat__ambient { opacity: 1; transform: translate(-50%, -50%) scale(1); }
html.no-js .heat__step,
.heat.is-static .heat__step { grid-area: auto; opacity: 0.86; transform: none; margin-bottom: 0.9em; }
html.no-js .heat__zone,
.heat.is-static .heat__zone { opacity: 1; }
html.no-js .heat__stage,
.heat.is-static .heat__stage { padding-block: 6rem; }

@media (max-width: 900px) {
  .heat__stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: 0.5rem;
    padding-top: calc(var(--nav-h) + 1rem);
  }
  .heat__copy { order: 2; }
  .heat__title { font-size: var(--step-2); max-width: none; margin-bottom: 0.4em; }
  .heat__steps { min-height: 6.6em; margin-bottom: 1rem; }
  .heat__step { font-size: 1rem; }
  .heat__figure { order: 1; justify-self: center; }
  .heat__bag { height: min(44svh, 420px); }
  .heat__zone { left: 70%; right: auto; }
  .heat__zone::before { flex: none; width: 1rem; }
  .heat__ambient { left: 50%; top: 34%; }
  .heat__meter ol { grid-template-columns: repeat(4, minmax(3.2rem, 1fr)); }
}
@media (max-width: 900px) and (max-height: 700px) {
  .heat__bag { height: 36svh; }
}
@media (max-width: 600px) {
  .heat__zone { display: none; }
}

/* ---------- Trade-off ---------- */
.tradeoff { padding-block: clamp(5rem, 12vw, 10rem); }
.tradeoff__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step-0);
}
.matrix thead th {
  padding: 0 0.5rem 1rem;
  font-size: var(--step--1);
  font-weight: 650;
  color: var(--ink-soft);
  text-align: center;
  vertical-align: bottom;
  width: 26%;
}
.matrix tbody th {
  position: relative;
  padding: 1.35rem 1rem 1.35rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-stretch: 100%;
}
.matrix tbody td { text-align: center; padding: 1.35rem 0.5rem; }
.matrix tbody tr { border-top: 1px solid var(--line); }
.matrix__us { background: var(--paper); }
.matrix__us th { font-weight: 800; font-stretch: 100%; font-size: var(--step-1); }
.matrix__us th::before {
  content: "";
  position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 5px;
  background: var(--signal);
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  vertical-align: middle;
}
.mark--yes { background: var(--graphite); }
.mark--yes::after {
  content: "";
  width: 11px; height: 6px;
  border-left: 2.5px solid var(--concrete);
  border-bottom: 2.5px solid var(--concrete);
  transform: translateY(-2px) rotate(-45deg);
}
.mark--no { box-shadow: inset 0 0 0 1.5px rgba(28, 28, 30, 0.35); }
.mark--no::after { content: ""; width: 11px; height: 2px; background: rgba(28, 28, 30, 0.45); }
.mark--hot { background: var(--ember); box-shadow: 0 0 0 6px rgba(255, 74, 18, 0.14); }
.mark--hot::after { border-color: #fff; }

@media (max-width: 900px) {
  .tradeoff__grid { grid-template-columns: 1fr; }
  .matrix tbody th { padding-left: 1rem; font-size: 0.95rem; }
  .matrix__us th { font-size: 1.15rem; }
}

/* ---------- Street ---------- */
.street { position: relative; background: var(--graphite); color: var(--on-dark); }
.street__media {
  height: min(90svh, 52vw);
  min-height: 420px;
  overflow: hidden;
}
.street__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 40%;
  transform-origin: 45% 50%;
}
.street__caption {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(31%, 460px);
  display: flex;
  align-items: flex-end;
  padding: 0 var(--pad) clamp(2.5rem, 6vw, 5rem) 1.5rem;
  background: linear-gradient(to left, rgba(20, 20, 22, 0.88), rgba(20, 20, 22, 0.7) 75%, rgba(20, 20, 22, 0));
}
.street__line { margin: 0; color: var(--on-dark); --title-sub: rgba(236, 235, 232, 0.74); }
@media (max-width: 820px) {
  .street__media { height: 62svh; min-height: 340px; }
  .street__media img { object-position: 46% 40%; }
  .street__caption {
    position: static;
    width: auto;
    background: none;
    padding: 2rem var(--pad) 3rem;
  }
}

/* ---------- Inside ---------- */
.inside { padding-block: clamp(5rem, 10vw, 8rem); }
.inside__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.inside__head .h2 { margin: 0; max-width: 16ch; }
.inside__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(240px, auto);
  gap: 12px;
}
.feature {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.feature img { width: 100%; object-fit: cover; }
.feature__text { padding: 1.4rem 1.5rem 1.6rem; }
.feature__text p { margin: 0; color: var(--ink-soft); max-width: 40ch; }
.feature--heat {
  grid-column: span 7;
  grid-row: span 2;
  background: #120d0b;
  color: var(--on-dark);
  justify-content: flex-end;
}
.feature--heat img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-position: 60% 40%;
}
.feature--heat .feature__text {
  position: relative;
  padding: 2rem;
  background: linear-gradient(to top, rgba(18, 13, 11, 0.95) 30%, rgba(18, 13, 11, 0));
  padding-top: 6rem;
}
.feature--heat .feature__text p { color: var(--on-dark-soft); }
.feature--heat .h3 { font-size: var(--step-2); }
.feature--clavicle { grid-column: span 5; flex-direction: row; }
.feature--clavicle img {
  width: 44%;
  height: auto;
  object-fit: cover;
  transform: scale(2.3);
  transform-origin: 72% 20%;
}
.feature--clavicle { isolation: isolate; }
.feature--clavicle .feature__text { position: relative; z-index: 1; background: var(--paper); }
.feature--foam { grid-column: span 5; flex-direction: row; }
.feature--foam img { width: 44%; height: auto; }
.feature--bottle { grid-column: span 12; flex-direction: row; align-items: stretch; min-height: 220px; }
.feature--bottle img { width: min(40%, 420px); height: auto; }
.feature--clavicle .feature__text,
.feature--foam .feature__text,
.feature--bottle .feature__text { align-self: center; }
@media (max-width: 900px) {
  .inside__grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .feature--heat { grid-column: auto; grid-row: auto; min-height: 380px; }
  .feature--clavicle,
  .feature--foam,
  .feature--bottle { grid-column: auto; flex-direction: column; }
  .feature--clavicle img,
  .feature--foam img,
  .feature--bottle img { width: 100%; height: 220px; }
  .feature--clavicle img { transform: scale(1.5); transform-origin: 70% 12%; object-position: 50% 10%; }
  .feature--clavicle .feature__text,
  .feature--foam .feature__text,
  .feature--bottle .feature__text { align-self: stretch; }
}

/* ---------- Origin ---------- */
.origin { background: var(--concrete-deep); padding-block: clamp(5rem, 10vw, 8rem); }
.origin__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.origin__mark img { width: min(100%, 380px); margin-inline: auto; }
.stat {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}
.stat__num {
  margin: 0;
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-stretch: 100%;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__label { margin: 0; color: var(--ink-soft); max-width: 36ch; font-size: var(--step--1); line-height: 1.5; }
@media (max-width: 820px) {
  .origin__grid { grid-template-columns: 1fr; }
  .origin__mark img { width: 180px; margin: 0; }
  .stat { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* ---------- CTA title ---------- */
.cta-band__title { margin-bottom: 1.25rem; }
