/* One motif: a dot is one person. Burgundy ground, bubblegum ink, Jost throughout. */
:root {
  --bg: #3d0012;
  --surface: #4d0519;
  --surface-2: #631029;
  --dot-off: #6e1a33;
  --ink: #ff99d3;
  --muted: #d78bb3;
  --accent: #ff99d3;
  --accent-ink: #3d0012;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);

  --gap: 12px;
  --pad: clamp(20px, 3vw, 40px);
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2 {
  margin: 0;
  font-weight: 700;
  font-size: var(--step-head);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}

p {
  margin: 0;
}

.lead {
  font-size: var(--step-lead);
  line-height: 1.3;
}

.small,
.hint,
figcaption {
  font-size: var(--step-small);
  color: var(--muted);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

figure {
  margin: 0;
}

/* Bar */
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px calc(var(--gap) + var(--pad));
}
.wordmark {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.bar nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 32px);
}
.bar nav a {
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}
.bar nav a:hover {
  opacity: 0.65;
}

/* Hero: the card beside the room */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  padding: 0 var(--gap);
  align-items: start;
}
.card,
.room {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--pad);
}
.card--form {
  grid-column: 1;
  padding-top: 0;
  overflow: hidden;
}
.card--costs {
  grid-column: 1;
}
.room {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: var(--gap);
}



.dotband {
  display: flex;
  justify-content: space-between;
  margin: 0 calc(var(--pad) * -1) var(--pad);
  padding: 18px var(--pad);
  background: var(--accent);
}

.dotband i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-ink);
  flex: none;
}

.dotband i.is-one {
  background: var(--surface-2);
  transform: scale(1.35);
}

.card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(96px, 11vw, 168px);
  gap: 20px;
  align-items: start;
  margin-bottom: 32px;
}

.card__head .lead {
  margin-top: 16px;
  max-width: 30ch;
}

.lovers,
.round,
.ten__one {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
}

.lovers img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.lovers img.is-on {
  opacity: 1;
}

/* Landmarks on a slider: where the average person sits */
.slider--marked {
  margin-bottom: 22px;
}
.slider__mark {
  position: absolute;
  left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--at, 0));
  top: calc(50% + 14px);
  transform: translateX(-50%);
  font-size: var(--step-small);
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
}
.slider__mark--start {
  transform: translateX(-6px);
}
.slider__mark i {
  position: absolute;
  left: 50%;
  top: -21px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--muted);
}
.slider__mark--start i {
  left: 6px;
}

/* The dot grid says so when it changes scale */
.grid {
  position: relative;
  margin-top: 24px;
}
.grid.is-zooming .dots {
  animation: zoom 0.6s var(--ease);
}
@keyframes zoom {
  0% {
    transform: scale(1.12);
    opacity: 0.3;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
.zoom {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  max-width: 90%;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.grid.is-zooming .zoom {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* Nobody fits: the circle empties out */
.room.is-none .disc {
  background: none;
  color: var(--ink);
  box-shadow: inset 0 0 0 clamp(8px, 1.2vw, 14px) var(--accent);
}

.costs__bar {
  grid-column: 1 / -1;
  height: 6px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--bg);
}
.costs__bar b {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}
.costs li:first-child .costs__bar {
  background: #e07fba;
}
.costs li:first-child .costs__bar b {
  background: var(--accent-ink);
}
.close__foot a {
  text-underline-offset: 3px;
}

/* Paintings tell you who they are on hover, focus or tap */
.art {
  position: relative;
  cursor: help;
  border-radius: var(--radius);
}
.art--hero,
.art--round {
  border-radius: 50%;
}
.art img {
  transition:
    opacity 1.6s ease,
    transform 0.5s var(--ease);
}
.art.is-open img {
  transform: scale(1.07);
}
.plate {
  position: absolute;
  z-index: 5;
  width: min(300px, 72vw);
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 2px var(--accent),
    0 16px 40px rgba(0, 0, 0, 0.5); /* taste-skill-ignore: a floating caption */
  font-size: var(--step-small);
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.art.is-open .plate {
  opacity: 1;
  transform: none;
}
.plate strong {
  display: block;
  font-size: var(--step-body);
  font-weight: 700;
  line-height: 1.15;
}
.plate span {
  display: block;
  margin: 2px 0 8px;
  font-weight: 500;
}
.art--hero .plate {
  top: calc(100% + 10px);
  right: 0;
}
.art--round .plate {
  top: calc(100% + 10px);
  left: 0;
}
/* The tile is too short for the caption, so there it rises out of the tile instead of being cut off. */
.art--tile {
  overflow: visible;
}
.art--tile img {
  border-radius: var(--radius);
}
.art--tile.is-open img {
  transform: none;
}
.art--tile .plate {
  right: 10px;
  bottom: 10px;
}
.art--tile.is-open figcaption,
.art--round.is-open figcaption {
  opacity: 0;
}

/* Form */

.presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.presets > span {
  margin-right: 4px;
  color: var(--muted);
}
.chip--try {
  background: none;
  box-shadow: inset 0 0 0 2px var(--surface-2);
}
.chip,
.button {
  font: inherit;
  font-weight: 500;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition:
    transform 0.15s var(--ease),
    opacity 0.2s var(--ease);
}
.chip {
  padding: 8px 16px;
  background: var(--surface-2);
  color: var(--ink);
}
.button {
  padding: 12px 22px;
  background: var(--accent);
  color: var(--accent-ink);
}
.button--quiet {
  background: var(--surface-2);
  color: var(--ink);
}
.chip:hover,
.button:hover {
  transform: translateY(-2px);
}
.chip:active,
.button:active {
  transform: scale(0.96);
}

.field {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field > label,
.field > legend {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 0;
  margin-bottom: 10px;
  font-weight: 500;
}
output {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.hint {
  display: none;
  margin-top: 8px;
}
.field:focus-within .hint,
.field.is-set .hint,
.hint--always {
  display: block;
}
.field--last {
  margin-bottom: 0;
}

.more {
  margin-top: 4px;
}
.more summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--surface-2);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.more summary::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.2s var(--ease);
}
.more[open] summary::before {
  transform: scale(0.5);
}
.more summary span {
  color: var(--muted);
}
.more[open] summary {
  margin-bottom: 28px;
}

.pills {
  display: flex;
  gap: 8px;
}
.pills--wrap {
  flex-wrap: wrap;
}
.pill {
  position: relative;
  cursor: pointer;
}
.pills:not(.pills--wrap) .pill {
  flex: 1;
}
.pill input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pill span {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  white-space: nowrap;
  transition: transform 0.15s var(--ease);
}
.pill small {
  font-size: var(--step-small);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pill:hover span {
  transform: translateY(-2px);
}
.pill input:active + span {
  transform: scale(0.96);
}
.pill input:checked + span {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}
.pill input:checked + span small {
  color: var(--accent-ink);
}
.pill input:focus-visible + span {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* Sliders: the thumb is a dot */
.slider {
  --lo: 0;
  --hi: 0;
  --thumb: 34px;
  position: relative;
  height: 44px;
}
.slider::before,
.slider__fill {
  content: '';
  position: absolute;
  top: calc(50% - 4px);
  height: 8px;
  border-radius: 4px;
}
.slider::before {
  left: 0;
  right: 0;
  background: var(--surface-2);
}
.slider__fill {
  left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--lo));
  width: calc((100% - var(--thumb)) * (var(--hi) - var(--lo)));
  background: var(--accent);
}
.slider input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.slider input::-webkit-slider-runnable-track {
  background: none;
  height: 44px;
}
.slider input::-moz-range-track {
  background: none;
  height: 44px;
}
.slider input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb);
  height: var(--thumb);
  border: 6px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  cursor: grab;
  transition: transform 0.15s var(--ease);
}
.slider input::-moz-range-thumb {
  width: var(--thumb);
  height: var(--thumb);
  border: 6px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-sizing: border-box;
  cursor: grab;
}
.slider input:active::-webkit-slider-thumb {
  transform: scale(1.2);
}
.slider input:focus-visible {
  outline: none;
}
.slider input:focus-visible::-webkit-slider-thumb {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.slider--dual input {
  pointer-events: none;
}
.slider--dual input::-webkit-slider-thumb {
  pointer-events: auto;
}
.slider--dual input::-moz-range-thumb {
  pointer-events: auto;
}

/* The room: the answer */
.room__top {
  display: grid;
  grid-template-columns: clamp(150px, 17vw, 250px) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  align-items: center;
}
.disc {
  container-type: inline-size;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.disc small {
  font-size: 11cqw;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2cqw;
}
.disc small:empty {
  display: none;
}
.disc span {
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-size: calc(var(--fit, 40) * 1cqw);
  font-variant-numeric: tabular-nums;
}
.room__say p + p {
  margin-top: 10px;
}
.verdict {
  margin-top: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.verdict strong {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.textlink {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 12px 8px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.textlink:hover {
  color: var(--ink);
}
.meter {
  display: inline-flex;
  gap: 5px;
}
.meter i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dot-off);
}
.meter i.is-on {
  background: var(--accent);
}

.dots {
  display: grid;
  grid-template-columns: repeat(50, 1fr);
  gap: 3px;
}
.dots i {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--dot-off);
}
.dots i.is-on {
  background: var(--accent);
  animation: lit 0.4s var(--ease);
}
.dots i.is-part {
  background: var(--accent);
  transform: scale(0.45);
}
@keyframes lit {
  0% {
    transform: scale(0.2);
  }
  60% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}
#dotsCaption {
  margin-top: 10px;
}
#swipe {
  margin-top: 18px;
  max-width: 44ch;
}
.actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Costs */
.card--costs h2 {
  font-size: var(--step-lead);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.card--costs > p {
  margin-top: 10px;
  color: var(--muted);
}
.costs {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.costs li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.costs li:first-child {
  background: var(--accent);
  color: var(--accent-ink);
}
.costs li:first-child .small {
  color: var(--accent-ink);
}
.costs strong {
  font-weight: 700;
}
.costs .small {
  grid-column: 1;
}
.costs .costs__do {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.costs .chip {
  background: var(--bg);
  color: var(--ink);
  white-space: nowrap;
}

/* Sections */
.method,
.sources,
.faq {
  padding: clamp(96px, 13vw, 190px) calc(var(--gap) + var(--pad)) 0;
}

.agebar {
  margin-top: 56px;
  display: flex;
  gap: 6px;
  height: 22vh;
  min-height: 150px;
}
.agebar div {
  min-width: 12%;
  padding: 18px 20px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.agebar div {
  background: var(--accent);
  color: var(--accent-ink);
}
.agebar div.is-out {
  background: var(--surface-2);
  color: var(--muted);
}
.agebar strong {
  font-size: var(--step-lead);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.method__text {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr);
  gap: clamp(20px, 4vw, 64px);
}
.method__text p {
  max-width: 48ch;
}

.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.tile {
  aspect-ratio: 3 / 2;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  overflow: hidden;
}
a.tile {
  transition: background-color 0.2s var(--ease);
}
a.tile:hover {
  background: var(--surface-2);
}
.tile strong {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.tile span {
  font-size: var(--step-small);
  line-height: 1.4;
}
.tile--head {
  grid-column: span 2;
  aspect-ratio: auto;
  background: var(--accent);
  color: var(--accent-ink);
}
.tile--picture {
  position: relative;
  padding: 0;
}
.tile--picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}
.tile--picture figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
}
.faq__head {
  position: sticky;
  top: 96px;
}
.round {
  width: min(70%, 260px);
  margin-top: 32px;
  aspect-ratio: auto;
  overflow: visible;
  background: none;
}
.round img {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 45%;
}
.round figcaption {
  margin-top: 10px;
}
.faq__list {
  display: grid;
  gap: 8px;
}
.faq details {
  border-radius: var(--radius);
  background: var(--surface);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 16px 24px;
  font-size: var(--step-lead);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker,
.more summary::marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}
.faq details[open] {
  background: var(--accent);
  color: var(--accent-ink);
}
.faq details[open] summary::after {
  background: var(--accent-ink);
  transform: scale(0.5);
}
.faq details p {
  padding: 0 24px 24px;
  max-width: 58ch;
}

/* Close */
.close {
  margin-top: clamp(96px, 13vw, 190px);
  padding: clamp(40px, 6vw, 88px) calc(var(--gap) + var(--pad)) 40px;
  background: var(--accent);
  color: var(--accent-ink);
}
.ten {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: clamp(4px, 1vw, 14px);
}
.ten i {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-ink);
}
.ten__one img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.close__name {
  margin-top: clamp(24px, 4vw, 56px);
  font-weight: 700;
  font-size: clamp(3rem, 17vw, 22rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.close__foot {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
}
.close__foot p {
  max-width: 46ch;
}
.close .small {
  color: var(--accent-ink);
}

/* Share sheet */
.sheet {
  width: min(640px, calc(100vw - 24px));
  padding: var(--pad);
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); /* taste-skill-ignore: a dialog floats */
}
.sheet::backdrop {
  background: rgba(20, 0, 6, 0.75);
}
.sheet img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: var(--surface-2);
}
.sheet img[hidden] + p {
  margin-top: 0;
}
.sheet .lead {
  margin-top: 20px;
}

/* Phone result dock */
.dock {
  display: none;
}

/* Entrances: only hidden when the script is there to reveal them */
.js [data-reveal] > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.js [data-reveal].is-in > * {
  opacity: 1;
  transform: none;
}
.js [data-reveal].is-in > *:nth-child(2) {
  transition-delay: 80ms;
}
.js [data-reveal].is-in > *:nth-child(3) {
  transition-delay: 160ms;
}
.js [data-reveal].is-in > *:nth-child(4) {
  transition-delay: 210ms;
}
.js [data-reveal].is-in > *:nth-child(5) {
  transition-delay: 280ms;
}
.js [data-reveal].is-in > *:nth-child(6) {
  transition-delay: 350ms;
}
.js [data-reveal].is-in > *:nth-child(7) {
  transition-delay: 420ms;
}
.js [data-reveal].is-in > *:nth-child(8) {
  transition-delay: 490ms;
}
.js [data-reveal].is-in > *:nth-child(9) {
  transition-delay: 560ms;
}
.js [data-reveal].is-in > *:nth-child(10) {
  transition-delay: 630ms;
}

@media (max-width: 1320px) {
  .card__head {
    grid-template-columns: minmax(0, 1fr) clamp(88px, 12vw, 128px);
    gap: 16px;
    align-items: center;
  }
  .card__head > div:first-child {
    display: contents;
  }
  .card__head h1 {
    grid-column: 1 / -1;
  }
  .card__head .lead {
    margin-top: 0;
  }
}

@media (max-width: 1100px) {
  .room__top {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .disc {
    width: clamp(150px, 22vw, 220px);
  }
}

@media (max-height: 820px) and (min-width: 861px) {
  .room {
    position: static;
  }
}

@media (max-width: 860px) {
  .bar nav a:not(:last-child) {
    display: none;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .card--form,
  .card--costs,
  .room {
    grid-column: 1;
    grid-row: auto;
  }
  .room {
    position: static;
  }
  .room__top {
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
  }
  .disc {
    width: auto;
  }
  .dotband i {
    width: 12px;
    height: 12px;
  }
  .dotband {
    padding: 14px var(--pad);
  }
  .art--round .plate {
    left: auto;
    right: 0;
  }
  .pills:not(.pills--wrap) .pill span {
    padding-inline: 8px;
  }
  .dots {
    grid-template-columns: repeat(40, 1fr);
    gap: 2px;
  }
  .costs li {
    grid-template-columns: minmax(0, 1fr);
  }
  .costs .costs__do {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    margin-top: 8px;
  }
  .agebar {
    flex-direction: column;
    height: auto;
  }
  .agebar div {
    flex-direction: row;
    align-items: baseline;
    min-height: 72px;
    flex-basis: auto !important;
  }
  .method__text,
  .faq,
  .close__foot {
    grid-template-columns: minmax(0, 1fr);
  }
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .tile {
    padding: 16px;
    aspect-ratio: auto;
    min-height: 150px;
  }
  .tile--picture {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
  }
  .faq__head {
    position: static;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
  }
  .round {
    width: 96px;
    margin: 0;
  }
  .round figcaption {
    display: none;
  }
  .faq summary {
    min-height: 64px;
    padding: 14px 20px;
  }
  .faq details p {
    padding: 0 20px 20px;
  }

  .dock {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 20px;
    border-radius: 999px;
    background: var(--bg);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5); /* taste-skill-ignore: a floating bar */
    transition:
      transform 0.3s var(--ease),
      opacity 0.3s var(--ease);
  }
  .dock strong {
    font-size: var(--step-lead);
    font-variant-numeric: tabular-nums;
  }
  .dock span {
    font-size: var(--step-small);
    color: var(--muted);
  }
  .dock.is-away {
    transform: translateY(140%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] > * {
    opacity: 1;
    transform: none;
  }
}
