/* UNLOCK — the sales page as a run of thermal diptychs: the visitor's product
   today on the cold side, what comes out of the session on the hot side. The
   world (tokens, field, doors, panel, actions) lives in ../base.css; this sheet
   lays the page out and restyles the shared minichat from the outside. */

@property --seam {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 100%;
}

.site-header,
main,
.site-footer {
  max-width: 82rem;
  margin-inline: auto;
}

body.dialog-open {
  overflow: hidden;
}

/* ---------- Page rhythm ---------- */

.section {
  padding-top: clamp(5rem, 13vh, 8.5rem);
}

.section__head {
  max-width: 54rem;
  margin-bottom: clamp(2rem, 5vh, 3.25rem);
}

.section__head--split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: var(--column-gap);
  align-items: end;
  max-width: none;
}

.section__head--split .prose p {
  max-width: 46ch;
}

/* ---------- The promise ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: var(--column-gap);
  align-items: center;
  min-height: calc(100svh - 9rem);
  padding: clamp(1.75rem, 6vh, 4rem) 0 clamp(2.5rem, 7vh, 4.5rem);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin-bottom: clamp(1.25rem, 3.6vh, 2.25rem);
  color: var(--cold);
  font-size: 0.8125rem;
  font-weight: 550;
  font-stretch: 112%;
  line-height: 1.3;
}

.crumbs a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--kitsunebi);
  text-decoration-thickness: 1px;
}

.crumbs [aria-current] {
  color: var(--kitsunebi);
}

.hero__title .display__warm {
  margin-top: 0.06em;
}

/* A heated word keeps its comma or full stop on its own line. */
.keep {
  white-space: nowrap;
}

.hero__lead {
  margin-top: clamp(1.25rem, 3.6vh, 2.1rem);
}

.hero__lead p {
  max-width: 54ch;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  margin: clamp(1.1rem, 3vh, 1.6rem) 0 0;
  padding: 0;
  color: var(--cold);
  font-size: 0.8125rem;
  font-weight: 550;
  font-stretch: 112%;
  list-style: none;
}

.meta li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin: 0 0.8rem;
  background: var(--frame-strong);
  vertical-align: -0.1em;
}

/* The close is one calm panel: price, what it holds, one action. */
.closing__buy {
  justify-self: end;
  width: min(100%, 26rem);
}

.price {
  margin: 0.55rem 0 0;
  font-size: clamp(2.6rem, 3.8vw, 3.4rem);
  font-weight: 800;
  font-stretch: 116%;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price small {
  margin-left: 0.12em;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0;
}

.price-note {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.price-note__name {
  color: var(--ink);
  font-weight: 600;
  font-stretch: 108%;
}

.ticks {
  display: grid;
  gap: 0.55rem;
  margin: 1.2rem 0 1.4rem;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--frame);
  font-size: 0.9375rem;
  line-height: 1.4;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 1.45rem;
}

/* A drawn check in the cold ink: included, measured, settled. */
.ticks li::before {
  content: "";
  position: absolute;
  top: 0.38em;
  left: 0.1rem;
  width: 0.7rem;
  height: 0.36rem;
  border-bottom: 1.5px solid var(--kitsunebi);
  border-left: 1.5px solid var(--kitsunebi);
  transform: rotate(-45deg);
}

.offer__cta {
  justify-content: space-between;
  width: 100%;
  padding: 0.95rem 1.1rem;
}

/* ---------- The camera ---------- */

.camera {
  margin: 0;
}

.camera__frame {
  position: relative;
  height: clamp(26rem, 74vh, 42rem);
  overflow: hidden;
  border: 1px solid var(--frame);
  border-radius: var(--radius);
  background: #000;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.camera__frame.is-sweeping {
  transition: --seam 1.2s var(--ease-out);
}

.camera__frame.is-dragging {
  cursor: grabbing;
}

.camera__sensor {
  position: absolute;
  z-index: 0;
  inset: -2px;
  width: calc(100% + 4px);
  max-width: none;
  height: calc(100% + 4px);
  filter: blur(2px);
}

/* The face reading rides the thermal picture; the colour side covers it. */
.camera__spot {
  position: absolute;
  z-index: 0;
  top: 12%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  color: var(--ink);
  pointer-events: none;
}

.camera__spot .spot__reading {
  right: calc(100% + 0.3rem);
  left: auto;
}

.camera__colour {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: #000;
  clip-path: inset(0 0 0 var(--seam));
}

.camera__colour video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.camera__seam {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.camera__seam::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--seam);
  width: 1px;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(18, 9, 9, 0.35);
  translate: -50% 0;
}

.camera__handle {
  position: absolute;
  top: 50%;
  left: clamp(1.4rem, var(--seam), calc(100% - 1.4rem));
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 3.25rem;
  border: 1px solid var(--frame-strong);
  border-radius: var(--radius);
  background: rgba(18, 9, 9, 0.9);
  color: var(--ink);
  box-shadow: 0 0.75rem 1.5rem -0.5rem rgba(0, 0, 0, 0.7);
  translate: -50% -50%;
  transition: border-color 0.25s var(--ease-out);
}

.camera__frame:hover .camera__handle,
.camera__frame.is-dragging .camera__handle {
  border-color: var(--kitsunebi);
}

.camera:has(.camera__range:focus-visible) .camera__handle {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.camera__handle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The viewfinder: four measured corners, never a gunsight. */
.camera__frame::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0.9rem;
  pointer-events: none;
  background:
    linear-gradient(rgba(244, 233, 228, 0.55) 0 0) left top / 1.1rem 1px,
    linear-gradient(rgba(244, 233, 228, 0.55) 0 0) left top / 1px 1.1rem,
    linear-gradient(rgba(244, 233, 228, 0.55) 0 0) right top / 1.1rem 1px,
    linear-gradient(rgba(244, 233, 228, 0.55) 0 0) right top / 1px 1.1rem,
    linear-gradient(rgba(244, 233, 228, 0.55) 0 0) left bottom / 1.1rem 1px,
    linear-gradient(rgba(244, 233, 228, 0.55) 0 0) left bottom / 1px 1.1rem,
    linear-gradient(rgba(244, 233, 228, 0.55) 0 0) right bottom / 1.1rem 1px,
    linear-gradient(rgba(244, 233, 228, 0.55) 0 0) right bottom / 1px 1.1rem;
  background-repeat: no-repeat;
}

.camera__controls {
  position: absolute;
  z-index: 4;
  bottom: 1.6rem;
  left: 1.6rem;
  display: flex;
  gap: 0.5rem;
}

.camera__pause {
  padding-inline: 0.7rem;
}

.camera__play-icon,
.camera.is-paused .camera__pause-icon {
  display: none;
}

.camera.is-paused .camera__play-icon {
  display: block;
}

/* Read from disk the sensor cannot see its own video: colour only, no seam. */
.camera.is-colour-only .camera__frame {
  cursor: default;
}

.camera.is-colour-only .camera__seam,
.camera.is-colour-only .camera__toggle,
.camera.is-colour-only .camera__range {
  display: none;
}

/* ---------- Situations ---------- */

/* Three doors to a row; the one you open lays its diptych under its own row. */
.situations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(0.75rem, 1.4vw, 1.25rem);
}

.situation {
  display: flex;
  margin: 0 0 clamp(0.75rem, 1.4vw, 1.25rem);
  font-size: 1rem;
  font-weight: inherit;
  line-height: inherit;
}

h3.situation:nth-of-type(-n + 3) {
  grid-row: 1;
}

h3.situation:nth-of-type(n + 4) {
  grid-row: 3;
}

.situation__panel:nth-of-type(-n + 3) {
  grid-row: 2;
}

.situation__panel:nth-of-type(n + 4) {
  grid-row: 4;
}

.situation__door {
  min-height: 10.5rem;
}

.situation__door .door__answer {
  max-width: 22ch;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
}

.situation__door .door__glint {
  animation: door-glint-six 15s linear infinite;
}

h3.situation:nth-of-type(1) .door__glint { animation-delay: 1.2s; }
h3.situation:nth-of-type(2) .door__glint { animation-delay: 3.7s; }
h3.situation:nth-of-type(3) .door__glint { animation-delay: 6.2s; }
h3.situation:nth-of-type(4) .door__glint { animation-delay: 8.7s; }
h3.situation:nth-of-type(5) .door__glint { animation-delay: 11.2s; }
h3.situation:nth-of-type(6) .door__glint { animation-delay: 13.7s; }

.has-hot-door .situation__door .door__glint {
  animation: none;
}

.door__toggle {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  transition: transform 0.4s var(--ease-out);
}

.situation__door[aria-expanded="true"] .door__toggle {
  transform: rotate(45deg);
}

.situation__panel {
  grid-column: 1 / -1;
  margin: 0 0 clamp(1.5rem, 3.5vh, 2.25rem);
}

/* ---------- Diptychs ---------- */

.diptych {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.diptych__cold,
.diptych__hot {
  padding: clamp(1.25rem, 2.6vw, 2.25rem);
}

/* The cold half is drawn in the isotherm; the hot half is lit by the field
   behind it and edged in flame. */
.diptych__cold {
  border: 1px solid var(--frame);
  border-radius: var(--radius) 0 0 var(--radius);
}

.diptych__hot {
  border: 1px solid rgba(255, 106, 31, 0.42);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 1.45vw, 1.35rem);
  font-weight: 600;
  font-stretch: 106%;
  line-height: 1.38;
}

.diptych__hot p {
  max-width: 44ch;
  margin: 0 0 0.8em;
}

.diptych__hot p:last-child {
  margin-bottom: 0;
}

.diptych__hot strong {
  font-weight: 800;
}

.diptych__close {
  color: var(--ink-soft);
  font-size: 0.85em;
  font-weight: 500;
}

@starting-style {
  .situation__panel {
    opacity: 0;
    translate: 0 -0.5rem;
  }
}

.situation__panel {
  transition: opacity 0.4s var(--ease-out), translate 0.5s var(--ease-out);
}

.cold-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: var(--body);
  line-height: 1.45;
  list-style: none;
}

.cold-list li {
  position: relative;
  padding-left: 1.2rem;
}

.cold-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 0.6rem;
  height: 1px;
  background: var(--cold);
}

.cold-list--quotes li {
  color: var(--ink);
}

/* The reflexes, cold and narrow; the method, warm and wide. */
.diptych--wide .diptych__cold {
  display: grid;
  align-content: center;
  gap: 1.1rem;
}

.refusal {
  max-width: 30ch;
  margin: 0;
  color: var(--cold);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  font-weight: 400;
  line-height: 1.3;
}

.diptych--wide .diptych__hot > p:first-child {
  color: var(--ink-soft);
  font-size: var(--body);
  font-weight: 500;
}

.tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.25rem;
  margin: 1rem 0 1.75rem;
  padding: 0;
  list-style: none;
}

.tools li {
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255, 180, 58, 0.3);
  font-size: var(--body);
  font-weight: 650;
  font-stretch: 110%;
  line-height: 1.3;
}

.tools__close {
  display: grid;
  gap: 0.45rem;
}

.tools__close strong {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 800;
  font-stretch: 116%;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.tools__close span {
  color: var(--ink-soft);
  font-size: var(--body);
  font-weight: 500;
}

/* ---------- Method ---------- */

/* One isotherm across the three steps, cold to hot, with a reading at each:
   the same line the case stories read down. */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--column-gap);
  margin: 0;
  padding: 1.9rem 0 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(127, 214, 203, 0.5), #5a2034 28%, #8a1a2b 46%, #e0401c 64%, #ff6a1f 80%, #ffb43a);
}

.step {
  position: relative;
}

.step::before {
  content: "";
  position: absolute;
  top: -1.9rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  translate: 0 -50%;
}

.step:nth-child(1)::before { color: var(--kitsunebi); }
.step:nth-child(2)::before { color: var(--flame); }
.step:nth-child(3)::before { color: var(--amber); }

/* Each step's phase is the cold line of its heading, tinted by where it sits on the rail. */
.step:nth-child(1) .split-title__cold { color: var(--kitsunebi); }
.step:nth-child(2) .split-title__cold { color: var(--flame); }
.step:nth-child(3) .split-title__cold { color: var(--amber); }

.step__title {
  margin: -0.2rem 0 0.8rem;
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  font-weight: 750;
  font-stretch: 116%;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.step p,
.step__list {
  max-width: 42ch;
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9875rem;
  line-height: 1.55;
}

.step .step__lead {
  color: var(--ink);
  font-weight: 600;
}

.step__list {
  display: grid;
  gap: 0.3rem;
  padding: 0;
  list-style: none;
}

.step__list li {
  position: relative;
  padding-left: 1.1rem;
}

.step__list li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 0.55rem;
  height: 1px;
  background: var(--amber);
}

/* ---------- Cases ---------- */

.cases {
  display: grid;
  gap: clamp(3.5rem, 9vh, 5.5rem);
}

.case {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  column-gap: var(--column-gap);
  align-items: center;
}

.case--flip .case__media {
  order: 2;
}

.case__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--frame);
  border-radius: var(--radius);
}

.case__media img {
  width: 100%;
  height: auto;
}

.case__media--tall {
  justify-self: center;
  width: min(100%, 25rem);
}

.case__name {
  margin: 0 0 1.4rem;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  font-weight: 800;
  font-stretch: 116%;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Problem to change, read down one isotherm from cold to hot. */
.story {
  position: relative;
  display: grid;
  gap: 1.2rem;
  margin: 0;
  padding-left: 1.5rem;
}

.story::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  bottom: 0.45rem;
  left: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--kitsunebi), var(--flame) 55%, var(--amber));
}

.story dt {
  position: relative;
  margin-bottom: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 650;
  font-stretch: 112%;
}

.story dt::before {
  content: "";
  position: absolute;
  top: 0.32em;
  left: -1.5rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  translate: calc(-50% + 0.5px) 0;
}

.story dd {
  max-width: 56ch;
  margin: 0;
  font-size: var(--body);
  line-height: 1.55;
}

.story dd p {
  margin: 0 0 0.7em;
}

.story dd p:last-child {
  margin-bottom: 0;
}

.story__row:nth-child(1) dt { color: var(--kitsunebi); }
.story__row:nth-child(1) dd { color: var(--ink-soft); }
.story__row:nth-child(2) dt { color: var(--flame); }
.story__row:nth-child(2) dd { color: var(--ink); }
.story__row:nth-child(3) dt { color: var(--amber); }
.story__row:nth-child(3) dd { color: var(--ink); font-weight: 550; }

/* ---------- Who ---------- */

.me {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: var(--column-gap);
  align-items: start;
}

.me__photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--frame);
  border-radius: var(--radius);
}

.me__photo img {
  width: 100%;
  height: auto;
}

.me__copy .split-title {
  margin-bottom: clamp(1.25rem, 3vh, 1.75rem);
}

.quote {
  max-width: 22ch;
  margin: 1.1rem 0 1.25rem;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  font-weight: 750;
  font-stretch: 116%;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem var(--column-gap);
  margin: clamp(1.75rem, 4vh, 2.5rem) 0 0;
}

.facts div {
  padding-top: 0.9rem;
  border-top: 1px solid var(--frame);
}

.facts dt {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 750;
  font-stretch: 116%;
}

.facts dd {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Other people's marks, read in the cold ink so none of them outshines the page. */
.logos {
  grid-column: 1 / -1;
  margin: clamp(3rem, 8vh, 4.5rem) 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--frame-frozen);
}

.logos__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logos img {
  width: auto;
  height: var(--h);
  filter: brightness(0) invert(1) sepia(0.5) hue-rotate(125deg) saturate(1.6);
  opacity: 0.62;
}

.logos figcaption {
  margin-top: 1.25rem;
  color: var(--cold);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* ---------- After UNLOCK ---------- */

.diptych--after {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
}

.next__body p {
  max-width: 54ch;
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: var(--body);
  line-height: 1.55;
}

/* A frozen route reads cold on both lines of its name. */
.next__name {
  margin: 0 0 1rem;
  color: var(--cold);
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.next__name .split-title__warm {
  color: var(--ink-soft);
  font-weight: 600;
  font-stretch: 108%;
}

.diptych--after .carry {
  display: grid;
  align-content: center;
  font-size: clamp(1.2rem, 1.75vw, 1.6rem);
  font-weight: 650;
  font-stretch: 110%;
  line-height: 1.3;
  border-left: 1px solid rgba(255, 106, 31, 0.42);
  border-radius: var(--radius);
}

/* ---------- FAQ ---------- */

.faq-block {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: var(--column-gap);
  align-items: start;
}

.faq-block .section__head {
  position: sticky;
  top: 2rem;
  margin: 0;
}

.faq details {
  border-top: 1px solid var(--frame);
}

.faq details:last-child {
  border-bottom: 1px solid var(--frame);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.2vw, 1.15rem);
  font-weight: 600;
  font-stretch: 108%;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: var(--kitsunebi);
  stroke-width: 1.6;
  stroke-linecap: round;
  transition: transform 0.4s var(--ease-out), stroke 0.3s var(--ease-out);
}

.faq details[open] summary svg {
  stroke: var(--amber);
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 0 1.35rem;
  color: var(--ink-soft);
  font-size: var(--body);
  line-height: 1.55;
}

.faq__answer p {
  max-width: 62ch;
  margin: 0 0 0.7em;
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

.faq__answer a {
  color: var(--ink);
  text-decoration-color: var(--kitsunebi);
  text-decoration-thickness: 1px;
}

/* ---------- The close ---------- */

.closing {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: var(--column-gap);
  align-items: center;
  padding-top: clamp(5.5rem, 15vh, 9.5rem);
}

.closing__text {
  max-width: 54ch;
  margin: clamp(1.1rem, 3vh, 1.6rem) 0 clamp(1.5rem, 4vh, 2.25rem);
  color: var(--ink-soft);
  font-size: var(--body);
  line-height: 1.55;
}

.closing__text strong,
.ticks--rich strong {
  color: var(--ink);
  font-weight: 600;
}

.ticks--rich {
  max-width: 54ch;
  margin: 0.8rem 0 0;
  padding: 0;
  border-top: 0;
  color: var(--ink-soft);
  font-size: var(--body);
}

.closing__after {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.closing__after strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Dialog and the shared minichat ---------- */

.project-dialog {
  width: min(36rem, calc(100vw - 2rem));
  max-height: min(48rem, calc(100svh - 2rem));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--frame);
  border-radius: var(--radius);
  background: var(--night);
  color: var(--ink);
  box-shadow: 0 1.5rem 3rem -1rem rgba(0, 0, 0, 0.65);
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.3s var(--ease-out), translate 0.45s var(--ease-out), overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}

@starting-style {
  .project-dialog[open] {
    opacity: 0;
    translate: 0 0.75rem;
  }
}

.project-dialog::backdrop {
  background: rgba(8, 3, 3, 0.78);
}

.dialog-shell {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.85rem);
}

.dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.dialog-title {
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
}

.dialog-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--frame);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out);
}

.dialog-close:hover {
  border-color: var(--kitsunebi);
}

.dialog-close svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.dialog-intro {
  max-width: 52ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.project-chat .minichat {
  --accent: var(--amber);
  --accent-rgb: 255, 180, 58;
  --mc-radius: var(--radius);
  --mc-bot: rgba(17, 42, 45, 0.55);
  --mc-user: rgba(255, 106, 31, 0.12);
  min-height: 20rem;
}

.project-chat .minichat__head {
  color: var(--cold);
  font: 550 0.75rem/1.2 var(--font-display);
  font-stretch: 112%;
  letter-spacing: 0.02em;
  text-transform: none;
}

.project-chat .minichat__progress b {
  color: var(--kitsunebi);
}

.project-chat .minichat__log {
  scrollbar-color: var(--wine) transparent;
}

.project-chat .minichat__msg {
  font-size: 0.9875rem;
}

.project-chat .minichat__msg--bot,
.project-chat .minichat__typing {
  box-shadow: inset 0 0 0 1px rgba(127, 214, 203, 0.22);
}

.project-chat .minichat__msg--user {
  box-shadow: inset 0 0 0 1px rgba(255, 106, 31, 0.42);
}

.project-chat .minichat__choice {
  border-color: var(--frame-strong);
}

.project-chat .minichat__choice:hover,
.project-chat .minichat__choice:focus-visible {
  border-color: var(--kitsunebi);
  background: rgba(127, 214, 203, 0.1);
  transform: none;
}

.project-chat .minichat__input,
.project-chat .minichat__textarea {
  border-color: var(--frame);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  caret-color: var(--amber);
}

.project-chat .minichat__input::placeholder,
.project-chat .minichat__textarea::placeholder {
  color: rgba(196, 179, 173, 0.72);
}

.project-chat .minichat__send,
.project-chat .minichat__wa {
  border: 0;
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--char);
  font-weight: 650;
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out);
}

.project-chat .minichat__send:hover,
.project-chat .minichat__wa:hover,
.project-chat .minichat__wa:focus-visible {
  background: #ff8a2a;
}

.project-chat .minichat__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-chat .minichat__wa svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-chat .minichat__back,
.project-chat .minichat__escape {
  color: var(--ink-soft);
  text-decoration-color: var(--frame-strong);
  text-underline-offset: 0.2em;
}

.project-chat .minichat__back:hover,
.project-chat .minichat__escape:hover {
  color: var(--ink);
}

/* ---------- Narrow screens ---------- */

@media (max-width: 820px) {
  .section {
    padding-top: clamp(3.75rem, 10vh, 5rem);
  }

  .hero,
  .section__head--split,
  .me,
  .faq-block,
  .closing,
  .case,
  .diptych,
  .diptych--after {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    row-gap: 2rem;
    min-height: 0;
    padding-top: clamp(1.5rem, 5vh, 2.5rem);
  }

  .closing__buy {
    justify-self: stretch;
    width: 100%;
  }

  .section__head--split {
    row-gap: 1.25rem;
  }

  .camera__controls {
    bottom: 1.25rem;
    left: 1.25rem;
  }

  .situations {
    grid-template-columns: minmax(0, 1fr);
  }

  h3.situation:nth-of-type(n),
  .situation__panel:nth-of-type(n) {
    grid-row: auto;
  }

  .situation__door {
    min-height: 0;
  }

  .situation__panel {
    margin-top: -0.25rem;
  }

  .diptych__cold {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .diptych__hot {
    border-top: 0;
    border-left: 1px solid rgba(255, 106, 31, 0.42);
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .diptych--after .carry {
    border-top: 1px solid rgba(255, 106, 31, 0.42);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.25rem;
    padding: 0 0 0 1.4rem;
  }

  .step::before {
    top: 0.62rem;
    left: -1.4rem;
    translate: -50% -50%;
  }

  .steps::before {
    top: 0.35rem;
    right: auto;
    bottom: 0.35rem;
    width: 1px;
    height: auto;
    background: linear-gradient(to bottom, rgba(127, 214, 203, 0.5), #5a2034 28%, #8a1a2b 46%, #e0401c 64%, #ff6a1f 80%, #ffb43a);
  }

  .case {
    row-gap: 1.5rem;
  }

  .case--flip .case__media {
    order: 0;
  }

  .case__media--tall {
    justify-self: start;
    width: min(100%, 20rem);
  }

  .me {
    row-gap: 2rem;
  }

  .me__photo {
    width: min(100%, 22rem);
  }

  .faq-block {
    row-gap: 1.75rem;
  }

  .faq-block .section__head {
    position: static;
  }

  .closing {
    row-gap: 2rem;
  }

  .site-footer {
    padding-bottom: 6rem;
  }
}

@media (max-width: 560px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .tools {
    column-gap: 1rem;
  }

  .logos__row {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .camera__frame.is-sweeping,
  .camera__handle,
  .situation__panel,
  .door__toggle,
  .faq summary svg,
  .project-dialog,
  .dialog-close,
  .project-chat .minichat__send,
  .project-chat .minichat__wa {
    transition: none;
  }

  .situation__door .door__glint {
    animation: none;
  }

  /* Nothing in the camera moves, so there is nothing to stop. */
  .camera__pause {
    display: none;
  }
}
