/*
 * Exhibit C — a look beneath the layers (#mosaic-entryway).
 *
 * .entryway-shell   wrapper for Exhibit C and the evidence verdict that follows
 * .entryway         the gold-edged frame holding a two-row mosaic of panels:
 *   top row     .lift (the LIFT exploded-layer view) + entry statement panel
 *   bottom row  ZERO TOLERANCE panel + detail image + wide image
 *
 * LIFT: a visually hidden checkbox drives the desktop explode (`:checked ~`);
 * js/home/entryway.js mirrors it as .is-exploded for the phone captions below
 * the image (.lift-notes) and dismisses the pill after first use.
 *
 * Routes (exact conditions of the original):
 *   mobile          ≤900px or compact touch landscape: stacked
 *   mobile land.    ≤900px landscape or compact touch landscape: one-line titles,
 *                   static 50/50 image pair
 *   tablet land.    768–1180px landscape, ≥501px tall: compositor-only lift
 *   desktop         the shared desktop route
 *   1080p/2160p     fine-pointer bands: the 1280×720 composition × --entry-s
 */

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

.entryway-shell {
  --entry-ease: cubic-bezier(0.22, 0.74, 0.22, 1);
  --entry-ease-heavy: cubic-bezier(0.19, 1, 0.22, 1);

  position: relative;
  width: 95vw;
  margin: 0 auto;
  padding-top: clamp(56px, 6vh, 88px);
  isolation: isolate;
  color: #efe3cf;
  font-family: var(--font-sans);
}

/* ---------- Frame and grid ---------- */

.entryway {
  position: relative;
  padding: 3px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgb(217 157 84 / 0.22);
  background:
    linear-gradient(135deg, rgb(255 229 182 / 0.055), transparent 26%),
    radial-gradient(circle at 18% 22%, rgb(163 94 44 / 0.16), transparent 28%),
    linear-gradient(180deg, rgb(25 20 17 / 0.62), rgb(9 8 7 / 0.78));
  box-shadow: 0 50px 130px rgb(0 0 0 / 0.48), inset 0 1px 0 rgb(255 239 201 / 0.08);
}

.entryway::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgb(255 208 143 / 0.09), transparent 36%);
}

.entryway__grid {
  display: grid;
  gap: 3px;
}

.entryway__top {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.58fr);
  gap: 3px;
  height: clamp(520px, 40.625vw, 780px);
}

.entryway__bottom {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: 3px;
  height: clamp(360px, 28.125vw, 540px);
}

.lift,
.entryway__panel,
.entryway__media {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(214 160 86 / 0.24);
  background: rgb(13 12 11 / 0.72);
  box-shadow: 0 28px 80px rgb(0 0 0 / 0.42), inset 0 1px 0 rgb(255 235 190 / 0.07);
}

/* ---------- LIFT: exploded layer view ---------- */

.lift {
  height: 100%;
  isolation: isolate;
  cursor: pointer;
  background: radial-gradient(circle at 50% 38%, rgb(215 162 92 / 0.12), transparent 44%);
}

.lift__toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The LIFT pill. */
.lift__button {
  position: absolute;
  left: 50%;
  top: 56%;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 36px 11px;
  border: 1px solid rgb(224 169 92 / 0.58);
  border-radius: 999px;
  background: linear-gradient(135deg, rgb(9 8 7 / 0.74), rgb(54 40 27 / 0.48));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 54px rgb(0 0 0 / 0.44), inset 0 1px 0 rgb(255 236 190 / 0.14);
  color: rgb(244 207 146 / 0.94);
  font-family: var(--font-sans);
  font-size: clamp(14px, calc(14px + (100vw - 1280px) * 0.00625), 18px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.21em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition:
    opacity 0.65s ease,
    transform 0.65s var(--entry-ease-heavy),
    border-color 0.45s ease,
    color 0.45s ease,
    background 0.45s ease;
}

.lift__button:hover {
  transform: translate(-50%, -50%) scale(1.045);
  border-color: rgb(246 192 107 / 0.8);
  color: rgb(255 228 178 / 0.98);
}

.lift__toggle:focus-visible + .lift__button {
  outline: 3px solid rgb(255 228 178 / 0.98);
  outline-offset: 4px;
}

/* Dismissed after first use (JS); from then on a tap anywhere on the figure toggles. */
.lift__button.is-dismissed {
  display: none;
}

.lift__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(232 172 88 / 0.96);
  box-shadow: 0 0 10px rgb(232 172 88 / 0.7), 0 0 26px rgb(232 172 88 / 0.35);
}

.lift__overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0.42;
  background:
    radial-gradient(circle at 50% 42%, transparent 42%, rgb(0 0 0 / 0.26) 100%),
    linear-gradient(180deg, rgb(0 0 0 / 0.08), rgb(0 0 0 / 0.22));
  transition: opacity 1s ease;
}

.lift__toggle:checked ~ .lift__overlay {
  opacity: 0.18;
}

/* The finished floor, and the four build-up layers stacked over it. */
.lift__base,
.lift__layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform, filter, opacity;
}

.lift__base {
  position: relative;
  z-index: 1;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02) brightness(0.8);
  transition: opacity 0.75s ease, filter 1s ease;
}

.lift__toggle:checked ~ .lift__base {
  opacity: 0.28;
  filter: saturate(0.8) contrast(0.95) brightness(0.56);
}

.lift__layer {
  object-fit: fill;
  transition: transform 1.35s var(--entry-ease-heavy), filter 1.1s ease;
}

.lift__layer--concrete {
  z-index: 2;
  inset: auto auto 0 50%;
  width: 113%;
  height: 28.46%;
  object-position: bottom center;
  transform-origin: center bottom;
  transform: translate3d(-50%, 0, 0);
  filter: saturate(0.75) contrast(0.96) brightness(0.9);
}

.lift__layer--leveling {
  z-index: 3;
  transform: translate3d(0, 0, 0) scaleX(1.18);
  filter: contrast(0.98) brightness(0.92) drop-shadow(0 16px 20px rgb(0 0 0 / 0.28));
}

.lift__layer--adhesive {
  z-index: 4;
  transform: translate3d(0, 0, 0) scaleX(1.34);
  filter: saturate(0.96) contrast(1) brightness(1.12) drop-shadow(0 18px 26px rgb(0 0 0 / 0.28));
}

.lift__layer--top {
  z-index: 5;
  object-fit: cover;
  transform: translate3d(0, 0, 0) scale(1.002);
  filter: drop-shadow(0 18px 34px rgb(0 0 0 / 0.72));
}

.lift__toggle:checked ~ .lift__layer--concrete {
  transform: translate3d(-50%, 5%, 0);
  filter: saturate(0.84) contrast(1.04) brightness(0.92);
}

.lift__toggle:checked ~ .lift__layer--leveling {
  transform: translate3d(0, -18%, 0) scaleX(1.18);
  filter: contrast(1.02) brightness(0.98) drop-shadow(0 24px 34px rgb(0 0 0 / 0.36));
}

.lift__toggle:checked ~ .lift__layer--adhesive {
  transform: translate3d(0, -36%, 0) scaleX(1.34);
  filter: saturate(1.02) contrast(1.02) brightness(1.24) drop-shadow(0 34px 46px rgb(0 0 0 / 0.38));
}

.lift__toggle:checked ~ .lift__layer--top {
  transform: translate3d(0, -54%, 0) scale(1.012);
  filter: drop-shadow(0 48px 66px rgb(0 0 0 / 0.68));
}

/* Desktop layer captions — one glass strip per layer, staggered in and out. */
.lift__caption {
  position: absolute;
  left: 10px;
  z-index: 82;
  width: fit-content;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 10px, 0) scaleX(0.985);
  filter: blur(4px);
  transition:
    opacity 0.72s var(--entry-ease),
    transform 0.72s var(--entry-ease),
    filter 0.72s var(--entry-ease);
  contain: layout paint;
}

.lift__toggle:checked ~ .lift__caption {
  opacity: 1;
  transform: translate3d(0, 0, 0) scaleX(1);
  filter: blur(0);
}

.lift__caption--straightness {
  --copy-fill: rgb(92 56 22);
  --copy-border: rgb(248 205 128 / 0.58);
  --copy-glow: rgb(235 181 92 / 0.25);
  --copy-line: rgb(255 219 147 / 0.95);
  --copy-title: rgb(255 221 157 / 0.98);
  top: 18%;
  transition-delay: 0.12s;
}

.lift__caption--uniformity {
  --copy-fill: rgb(134 100 58 / 0.82);
  --copy-border: rgb(238 198 139 / 0.54);
  --copy-glow: rgb(226 177 111 / 0.22);
  --copy-line: rgb(255 229 179 / 0.88);
  --copy-title: rgb(255 224 177 / 0.98);
  top: 48%;
  transition-delay: 0.24s;
}

.lift__caption--flatness {
  --copy-fill: rgb(112 108 98 / 0.78);
  --copy-border: rgb(214 207 188 / 0.46);
  --copy-glow: rgb(210 202 184 / 0.16);
  --copy-line: rgb(234 226 207 / 0.78);
  --copy-title: rgb(236 226 204 / 0.96);
  top: 68.5%;
  transition-delay: 0.36s;
}

.lift__caption--substrate {
  --copy-fill: rgb(35 35 32 / 0.84);
  --copy-border: rgb(157 137 112 / 0.42);
  --copy-glow: rgb(120 95 68 / 0.18);
  --copy-line: rgb(184 153 111 / 0.78);
  --copy-title: rgb(213 176 129 / 0.96);
  bottom: 1.5%;
  transition-delay: 0.48s;
}

/* Lifting reveals bottom-up; collapsing hides top-down. */
.lift__toggle:checked ~ .lift__caption--substrate {
  transition-delay: 0.12s;
}

.lift__toggle:checked ~ .lift__caption--flatness {
  transition-delay: 0.24s;
}

.lift__toggle:checked ~ .lift__caption--uniformity {
  transition-delay: 0.36s;
}

.lift__toggle:checked ~ .lift__caption--straightness {
  transition-delay: 0.48s;
}

.lift__caption-inner {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  gap: 30px;
  padding: 10px clamp(14px, 1.8vw, 24px);
  border: 1px solid var(--copy-border);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--copy-fill) 92%, rgb(0 0 0 / 0.42)),
    color-mix(in srgb, var(--copy-fill) 76%, rgb(0 0 0 / 0.36)) 52%,
    color-mix(in srgb, var(--copy-fill) 46%, rgb(0 0 0 / 0.28))
  );
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    inset 0 -1px 0 rgb(0 0 0 / 0.62),
    0 8px 18px rgb(0 0 0 / 0.34),
    0 0 16px var(--copy-glow);
  backdrop-filter: blur(4px) saturate(1.12) contrast(1.12);
  -webkit-backdrop-filter: blur(4px) saturate(1.12) contrast(1.12);
}

.lift__caption-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background: linear-gradient(90deg, var(--copy-line), transparent 24%, transparent 76%, var(--copy-line));
}

.lift__caption-inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copy-line), transparent);
  box-shadow: 0 0 18px var(--copy-glow);
}

.lift__kicker {
  position: relative;
  display: block;
  color: var(--copy-title);
  font-size: clamp(16px, calc(16px + (100vw - 1280px) * 0.00625), 20px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.82), 0 0 16px var(--copy-glow);
}

/* Hairline divider between the kicker and its sentence. */
.lift__kicker::after {
  content: "";
  position: absolute;
  top: 50%;
  right: clamp(-18px, -1.1vw, -10px);
  width: 1px;
  height: 22px;
  transform: translateY(-50%);
  opacity: 0.75;
  background: linear-gradient(to bottom, transparent, var(--copy-line), transparent);
}

.lift__caption p {
  position: relative;
  max-width: 680px;
  margin: 0;
  color: rgb(255 248 235 / 0.8);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.95), 0 0 10px rgb(0 0 0 / 0.55);
}

/* Phone colour keys (on the image) and layer notes (below it). */
.lift__key,
.lift-notes {
  display: none;
}

/* ---------- Statement panels ---------- */

.entryway__panel {
  display: flex;
  min-height: 100%;
}

.entryway__panel-inner {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 26px;
  background:
    radial-gradient(circle at 25% 0%, rgb(223 163 87 / 0.11), transparent 44%),
    linear-gradient(145deg, rgb(38 25 18 / 0.58), rgb(12 10 9 / 0.92));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Entry statement — Exhibit typography (css/home/exhibit.css) at full scale. */
.entryway__panel--entry .entryway__panel-inner {
  align-items: flex-start;
  gap: 0;
  padding: clamp(34px, 4vw, 58px) clamp(28px, 2.8vw, 42px);
  background:
    radial-gradient(circle at 30% 0%, rgb(227 165 86 / 0.12), transparent 46%),
    linear-gradient(145deg, rgb(50 27 17 / 0.58), rgb(11 10 9 / 0.95));
}

.entryway__panel--entry .exhibit__title > span {
  white-space: nowrap;
}

.entryway__panel--entry .exhibit__subline {
  width: 100%;
}

.entryway__panel--entry .exhibit__subline::before,
.entryway__panel--entry .exhibit__subline::after {
  width: 100%;
}

.entryway__panel--entry .exhibit__copy {
  max-width: none;
}

.entryway__details {
  display: grid;
  gap: clamp(12px, 1.4vh, 18px);
  margin-top: clamp(18px, 2.2vh, 28px);
}

/* ZERO TOLERANCE */
.entryway__zero-title {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  column-gap: 0.28em;
  margin: 0;
  color: rgb(244 235 219 / 0.98);
  font-family: var(--font-serif);
  font-size: clamp(32px, 2.7vw, 50px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-shadow: 0 20px 60px rgb(0 0 0 / 0.55);
}

/* Without the character reveal the lines carry the gradient themselves. */
.entryway__zero-title > .kt-character-reveal__line {
  display: block;
  color: transparent;
  background: linear-gradient(95deg, #e7c184, #8c5529 78%);
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}

.entryway__zero-title.is-character-ready > .kt-character-reveal__line {
  background: none;
}

.entryway__body {
  display: grid;
  gap: 17px;
  max-height: 320px;
  padding-right: 4px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgb(211 156 84 / 0.48) rgb(255 255 255 / 0.04);
}

.entryway__body p {
  margin: 0;
  color: rgb(238 227 207 / 0.86);
  font-size: clamp(15px, 1.2vw, 22px);
  font-weight: 430;
  line-height: 1.58;
}

.entryway__body p:first-child {
  color: rgb(242 232 213 / 0.9);
  font-size: clamp(16px, 1.25vw, 19px);
}

/* "Epoxy grout" opens the epoxy modal (owned by home-overlays). */
.entryway__epoxy {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgb(184 148 31 / 0.62);
  background: none;
  font: inherit;
  color: #c9a32c;
  text-shadow: 0 0 20px rgb(184 148 31 / 0.28);
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.22s ease, border-color 0.22s ease, text-shadow 0.22s ease;
}

.entryway__epoxy:hover,
.entryway__epoxy:focus-visible {
  color: #d4af37;
  border-bottom-color: rgb(212 175 55 / 0.86);
  text-shadow: 0 0 26px rgb(212 175 55 / 0.36);
  outline: none;
}

/* ---------- Detail + wide images ---------- */

/* A fixed 1.2% overscan; the images do not react to hover. */
.entryway__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.012);
  filter: saturate(0.9) contrast(1.02) brightness(0.86);
  transition: transform 1.4s var(--entry-ease-heavy), filter 1.4s ease;
}

.entryway__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgb(0 0 0 / 0.32));
}

/* ---------- Responsive ---------- */

/* Mobile (≤900px, or compact touch landscape): entry statement, LIFT image,
   its layer notes, ZERO TOLERANCE, then the image pair. */
@media (max-width: 900px),
       (pointer: coarse) and (orientation: landscape) and (min-width: 1100px) and (max-width: 1180px) and (max-height: 780px) {
  .entryway-shell {
    width: 100%;
  }

  .entryway__grid,
  .entryway__top {
    display: flex;
    flex-direction: column;
    gap: 3px;
    height: auto;
  }

  .entryway__panel--entry {
    order: 1;
    min-height: 0;
  }

  .entryway__panel--entry .entryway__panel-inner {
    min-height: 0;
    padding: 30px 22px;
  }

  .lift {
    order: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .entryway__bottom {
    display: flex;
    flex-wrap: wrap;
    height: auto;
  }

  .entryway__panel--zero {
    order: 1;
    flex: 0 0 100%;
    width: 100%;
    min-height: 0;
  }

  .entryway__panel--zero .entryway__panel-inner {
    min-height: 0;
    padding: 30px 22px;
  }

  .entryway__body {
    max-height: none;
    padding-right: 0;
    overflow: visible;
  }

  /* The image pair sits side by side, wide image first. */
  .entryway__media--wide {
    order: 2;
  }

  .entryway__media--detail {
    order: 3;
  }

  .entryway__bottom > .entryway__media {
    flex: 1 1 0;
    height: min(72vh, 560px);
    min-height: 360px;
  }

  .entryway__bottom > .entryway__media img {
    min-height: 100%;
  }

  .entryway__media--wide img {
    object-position: 0% 50%;
  }

  /* Phone portrait accordion (JS adds .is-accordion). */
  .entryway__bottom.is-accordion > .entryway__media {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: flex 520ms cubic-bezier(0.22, 1, 0.36, 1), filter 520ms ease;
  }

  .entryway__bottom.is-accordion > .entryway__media.is-open {
    flex: 6.2 1 0;
  }

  .entryway__bottom.is-accordion > .entryway__media:not(.is-open)::after {
    z-index: 1;
    opacity: 0.32;
    background: rgb(0 0 0 / 0.42);
    transition: opacity 520ms ease;
  }

  .entryway__bottom.is-accordion > .entryway__media.is-open::after {
    opacity: 0;
  }

  .entryway__bottom.is-accordion > .entryway__media:focus-visible {
    outline: 2px solid rgb(214 164 91 / 0.85);
    outline-offset: -2px;
  }

  /* Desktop captions give way to colour keys + notes under the image. */
  .lift__caption {
    display: none;
  }

  .lift__key {
    --layer-key: #ff3b30;
    position: absolute;
    right: 18px;
    z-index: 26;
    display: block;
    width: 15px;
    height: 15px;
    border: 2px solid rgb(255 255 255 / 0.96);
    border-radius: 50%;
    background: var(--layer-key);
    box-shadow: 0 0 0 3px rgb(0 0 0 / 0.48), 0 2px 9px rgb(0 0 0 / 0.82), 0 0 14px var(--layer-key);
    pointer-events: none;
    opacity: 0;
    transform: scale(0.55);
    transition: opacity 0.32s ease, transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .lift.is-exploded .lift__key {
    opacity: 1;
    transform: scale(1);
  }

  .lift__key--straightness {
    --layer-key: #ff3b30;
    top: 24%;
    transition-delay: 0.22s;
  }

  .lift__key--uniformity {
    --layer-key: #00b8e6;
    top: 46%;
    transition-delay: 0.16s;
  }

  .lift__key--flatness {
    --layer-key: #ffc400;
    top: 66%;
    transition-delay: 0.1s;
  }

  .lift__key--substrate {
    --layer-key: #62d62f;
    top: 84%;
    transition-delay: 0.04s;
  }

  .lift-notes {
    --notes-ease: cubic-bezier(0.22, 1, 0.36, 1);
    order: 3;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition:
      max-height 0.95s var(--notes-ease),
      gap 0.55s var(--notes-ease),
      padding 0.55s var(--notes-ease);
  }

  .lift.is-exploded + .lift-notes {
    max-height: 520px;
    gap: 8px;
    padding: 12px 0 6px;
    pointer-events: auto;
  }

  .lift-notes__item {
    --layer-key: #ff3b30;
    position: relative;
    display: grid;
    grid-template-rows: 0fr;
    width: 100%;
    padding: 0 48px 0 16px;
    border: 1px solid transparent;
    background: linear-gradient(90deg, rgb(92 56 22 / 0.94) 0%, rgb(70 46 24 / 0.9) 48%, rgb(48 34 22 / 0.88) 100%);
    opacity: 0;
    transform: translateY(-6px);
    transform-origin: top center;
    transition:
      grid-template-rows 0.62s var(--notes-ease),
      opacity 0.48s var(--notes-ease),
      transform 0.62s var(--notes-ease),
      padding 0.55s var(--notes-ease),
      border-color 0.4s ease,
      box-shadow 0.55s var(--notes-ease);
  }

  .lift-notes__item:nth-child(2) {
    --layer-key: #00b8e6;
  }

  .lift-notes__item:nth-child(3) {
    --layer-key: #ffc400;
  }

  .lift-notes__item:nth-child(4) {
    --layer-key: #62d62f;
  }

  /* Colour key matching the dot on the image. */
  .lift-notes__item::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 15px;
    height: 15px;
    border: 2px solid rgb(255 255 255 / 0.96);
    border-radius: 50%;
    background: var(--layer-key);
    box-shadow: 0 0 0 3px rgb(0 0 0 / 0.4), 0 2px 8px rgb(0 0 0 / 0.68);
    opacity: 0;
    transform: translateY(-50%) scale(0.55);
    transition: opacity 0.34s ease, transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .lift-notes__inner {
    min-height: 0;
    overflow: hidden;
  }

  .lift.is-exploded + .lift-notes .lift-notes__item {
    grid-template-rows: 1fr;
    padding: 14px 48px 14px 16px;
    border-color: rgb(248 205 128 / 0.5);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.14),
      inset 0 -1px 0 rgb(0 0 0 / 0.5),
      0 10px 22px rgb(0 0 0 / 0.28);
    opacity: 1;
    transform: translateY(0);
  }

  .lift.is-exploded + .lift-notes .lift-notes__item::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  /* Opening staggers top-down; closing bottom-up. */
  .lift.is-exploded + .lift-notes .lift-notes__item:nth-child(1) { transition-delay: 0.06s; }
  .lift.is-exploded + .lift-notes .lift-notes__item:nth-child(2) { transition-delay: 0.16s; }
  .lift.is-exploded + .lift-notes .lift-notes__item:nth-child(3) { transition-delay: 0.26s; }
  .lift.is-exploded + .lift-notes .lift-notes__item:nth-child(4) { transition-delay: 0.36s; }
  .lift:not(.is-exploded) + .lift-notes .lift-notes__item:nth-child(1) { transition-delay: 0.24s; }
  .lift:not(.is-exploded) + .lift-notes .lift-notes__item:nth-child(2) { transition-delay: 0.16s; }
  .lift:not(.is-exploded) + .lift-notes .lift-notes__item:nth-child(3) { transition-delay: 0.08s; }
  .lift:not(.is-exploded) + .lift-notes .lift-notes__item:nth-child(4) { transition-delay: 0s; }

  .lift-notes__kicker {
    position: relative;
    display: block;
    margin: 0 0 8px;
    color: rgb(255 221 157 / 0.98);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.75), 0 0 14px rgb(235 181 92 / 0.28);
  }

  .lift-notes p {
    margin: 0;
    color: rgb(255 246 230 / 0.9);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.7);
  }
}

@media (max-width: 767px) {
  .entryway__body p,
  .entryway__body p:first-child {
    font-size: 22px;
    line-height: 1.55;
  }

  /* Phone spacing of the Exhibit typography (as Exhibit A's phone layout). */
  .entryway__panel--entry .exhibit__kicker {
    margin: 28px 20px 18px;
  }

  .entryway__panel--entry .exhibit__title {
    padding-inline: 20px;
  }

  .entryway__panel--entry .exhibit__subline {
    margin: 16px 20px 0;
  }

  /* Keep "THE LAYERS" on one line. */
  .entryway__panel--entry .exhibit__title > .exhibit__title-gold {
    display: inline;
  }

  .entryway__panel--entry .exhibit__title > .exhibit__title-gold + .exhibit__title-gold::before {
    content: "\00a0";
  }
}

@media (max-width: 600px) {
  .entryway__zero-title {
    font-size: clamp(30px, 9.5vw, 42px);
  }
}

/* Mobile landscape: one-line titles; the image pair is a static 50/50 row. */
@media (max-width: 900px) and (orientation: landscape),
       (pointer: coarse) and (orientation: landscape) and (min-width: 1100px) and (max-width: 1180px) and (max-height: 780px) {
  .entryway__panel--entry .exhibit__title {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: baseline;
    column-gap: 0.28em;
    width: 100%;
    line-height: 0.95;
    white-space: nowrap;
  }

  .entryway__panel--entry .exhibit__title > span {
    display: inline-block;
    margin-top: 0;
    font-size: clamp(28px, 5vw, 44px);
  }

  .entryway__zero-title {
    font-size: clamp(28px, 5vw, 44px);
    line-height: 0.95;
    white-space: nowrap;
  }

  .entryway__panel--zero .entryway__panel-inner {
    padding: 22px 20px;
  }

  .entryway__bottom > .entryway__media {
    flex: 0 0 calc(50% - 1.5px);
    width: calc(50% - 1.5px);
    max-width: calc(50% - 1.5px);
    height: min(78vh, 520px);
    min-height: 320px;
    cursor: default;
    pointer-events: none;
  }
}

/* Phone landscape: slightly larger epoxy link. */
@media (orientation: landscape) and (max-width: 1000px) and (max-height: 700px),
       (pointer: coarse) and (orientation: landscape) and (min-width: 1100px) and (max-width: 1180px) and (max-height: 780px) {
  .entryway__epoxy {
    font-size: calc(1em + 2px);
  }
}

/* Short phone landscape (and compact touch landscape): no subline, as in Exhibit A. */
@media (orientation: landscape) and (max-width: 1000px) and (max-height: 500px),
       (pointer: coarse) and (orientation: landscape) and (min-width: 1100px) and (max-width: 1180px) and (max-height: 780px) {
  .entryway__panel--entry .exhibit__subline {
    display: none;
  }
}

/* Tablet landscape: ZERO / TOLERANCE on two lines, full-width layer captions,
   titles shown without the character reveal, and a compositor-only lift
   (transforms and opacity animate; filters switch instantly). */
@media (orientation: landscape) and (min-width: 768px) and (max-width: 1180px) and (min-height: 501px) {
  .entryway__zero-title {
    flex-direction: column;
    align-items: flex-start;
    white-space: normal;
  }

  .lift__caption {
    right: 10px;
    width: auto;
    max-width: calc(100% - 20px);
    filter: none;
    transition: opacity 0.72s var(--entry-ease), transform 0.72s var(--entry-ease);
  }

  .lift__toggle:checked ~ .lift__caption {
    filter: none;
  }

  .lift__caption-inner {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .lift__caption--straightness {
    top: 15%;
  }

  .lift__caption--uniformity {
    top: 42%;
  }

  .lift__caption--flatness {
    top: 66%;
  }

  .lift__caption--substrate {
    bottom: 2%;
  }

  .lift__kicker,
  .lift__caption p {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .entryway__panel [data-kt-character-reveal].is-character-ready .title-reveal__char {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }

  .lift__base,
  .lift__layer {
    transform-style: flat;
    will-change: transform, opacity;
  }

  .lift__base {
    transition: opacity 0.75s ease;
  }

  .lift__layer {
    transition: transform 1.35s var(--entry-ease-heavy);
  }

  /* After first use the pill becomes an invisible full-figure label, so every
     later tap is a native checkbox toggle. */
  .lift__button.is-dismissed {
    display: block;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    transform: none;
    pointer-events: auto;
  }
}

/* Compact touch landscape restores the one-line ZERO TOLERANCE. */
@media (pointer: coarse) and (orientation: landscape) and (min-width: 1100px) and (max-width: 1180px) and (max-height: 780px) {
  .entryway__zero-title {
    flex-direction: row;
    align-items: baseline;
    white-space: nowrap;
  }
}

/* Desktop composition. */
@media (min-width: 1181px),
       (min-width: 1025px) and (max-width: 1099px),
       (min-width: 1025px) and (pointer: fine),
       (min-width: 1025px) and (orientation: portrait),
       (min-width: 1025px) and (min-height: 781px) {
  .entryway-shell {
    margin-top: 40px;
  }

  .entryway,
  .entryway::before {
    border-radius: 0 0 3px 3px;
  }

  .lift__overlay,
  .entryway__media::after {
    display: none;
  }

  /* Desaturated, brighter imagery. */
  .lift__base,
  .lift__toggle:checked ~ .lift__base,
  .entryway__media--detail img {
    filter: saturate(0.68) brightness(1.1);
  }

  .entryway__media--wide img {
    filter: saturate(0.68) brightness(1.28);
  }

  .lift__layer--top {
    filter: saturate(0.7) brightness(1.06) drop-shadow(0 18px 34px rgb(0 0 0 / 0.72));
  }

  .lift__toggle:checked ~ .lift__layer--top {
    filter: saturate(0.7) brightness(1.06) drop-shadow(0 48px 66px rgb(0 0 0 / 0.68));
  }
}

/* ≥1921×1081 outside the scaled bands: the site-wide high-resolution type. */
@media (min-width: 1921px) and (min-height: 1081px) {
  .entryway__zero-title {
    font-size: clamp(50px, min(2.604167vw, 4.62963vh), 72.5px);
  }

  .entryway__body p {
    font-size: clamp(22px, min(1.145833vw, 2.037037vh), 33px);
  }

  .entryway__body p:first-child {
    font-size: clamp(19px, min(0.989583vw, 1.759259vh), 28.5px);
  }

  .lift__kicker,
  .lift__caption p {
    font-size: clamp(15px, min(0.78125vw, 1.388889vh), 22.5px);
  }
}

/* 1080p and 2160p (fine pointer): the 1280×720 composition, scaled uniformly. */
@media (min-width: 1600px) and (max-width: 2200px) and (min-height: 900px) and (max-height: 1250px) and (hover: hover) and (pointer: fine),
       (min-width: 3200px) and (max-width: 4400px) and (min-height: 1800px) and (max-height: 2500px) and (hover: hover) and (pointer: fine) {
  .entryway-shell {
    --entry-s: min(calc(100vw / 1280), calc(100vh / 720));
    padding-top: calc(56 * var(--entry-s));
  }

  .entryway {
    padding: calc(3 * var(--entry-s));
    border-width: calc(1 * var(--entry-s));
    border-radius: 0 0 calc(3 * var(--entry-s)) calc(3 * var(--entry-s));
  }

  .entryway__grid,
  .entryway__top,
  .entryway__bottom {
    gap: calc(3 * var(--entry-s));
  }

  .entryway__top {
    grid-template-columns: minmax(0, 1.9fr) minmax(calc(280 * var(--entry-s)), 0.58fr);
    height: calc(520 * var(--entry-s));
  }

  .entryway__bottom {
    grid-template-columns:
      minmax(calc(300 * var(--entry-s)), 0.72fr)
      minmax(calc(240 * var(--entry-s)), 0.55fr)
      minmax(0, 1fr);
    height: calc(360 * var(--entry-s));
  }

  .lift,
  .entryway__panel,
  .entryway__media {
    border-width: calc(1 * var(--entry-s));
  }

  .entryway__panel--entry .entryway__panel-inner {
    padding: calc(51.2 * var(--entry-s)) calc(35.84 * var(--entry-s));
  }

  .entryway__panel--entry .exhibit__kicker {
    margin-bottom: calc(14 * var(--entry-s));
    padding-bottom: calc(10 * var(--entry-s));
    border-bottom-width: calc(1 * var(--entry-s));
    font-size: calc(11 * var(--entry-s));
  }

  .entryway__panel--entry .exhibit__title {
    letter-spacing: calc(-1.2 * var(--entry-s));
  }

  .entryway__panel--entry .exhibit__title-ivory {
    font-size: calc(40.96 * var(--entry-s));
  }

  .entryway__panel--entry .exhibit__title-gold {
    font-size: calc(46.08 * var(--entry-s));
  }

  .entryway__panel--entry .exhibit__subline {
    margin-top: calc(12 * var(--entry-s));
    padding-block: calc(10 * var(--entry-s));
    font-size: calc(11.008 * var(--entry-s));
  }

  .entryway__panel--entry .exhibit__subline::before,
  .entryway__panel--entry .exhibit__subline::after {
    height: calc(1 * var(--entry-s));
  }

  .entryway__details {
    margin-top: calc(18 * var(--entry-s));
    gap: calc(12 * var(--entry-s));
  }

  .entryway__panel--entry .exhibit__copy {
    font-size: calc(15 * var(--entry-s));
  }

  .entryway__panel--zero .entryway__panel-inner {
    gap: calc(26 * var(--entry-s));
    padding: calc(26 * var(--entry-s));
  }

  .entryway__zero-title {
    column-gap: calc(9.6768 * var(--entry-s));
    font-size: calc(34.56 * var(--entry-s));
  }

  .entryway__body {
    gap: calc(17 * var(--entry-s));
    max-height: calc(320 * var(--entry-s));
    padding-right: calc(4 * var(--entry-s));
  }

  .entryway__body p,
  .entryway__body p:first-child {
    font-size: calc(16 * var(--entry-s));
  }

  .entryway__epoxy {
    border-bottom-width: calc(1 * var(--entry-s));
  }

  .lift__button {
    gap: calc(10 * var(--entry-s));
    padding: calc(12 * var(--entry-s)) calc(36 * var(--entry-s)) calc(11 * var(--entry-s));
    border-width: calc(1 * var(--entry-s));
    font-size: calc(14 * var(--entry-s));
  }

  .lift__dot {
    width: calc(7 * var(--entry-s));
    height: calc(7 * var(--entry-s));
  }

  .lift__caption {
    left: calc(10 * var(--entry-s));
  }

  .lift__caption-inner {
    min-height: calc(42 * var(--entry-s));
    gap: calc(30 * var(--entry-s));
    padding: calc(10 * var(--entry-s)) calc(23.04 * var(--entry-s));
    border-width: calc(1 * var(--entry-s));
  }

  .lift__caption-inner::after {
    height: calc(1 * var(--entry-s));
  }

  .lift__kicker {
    font-size: calc(16 * var(--entry-s));
  }

  .lift__kicker::after {
    right: calc(-14.08 * var(--entry-s));
    width: calc(1 * var(--entry-s));
    height: calc(22 * var(--entry-s));
  }

  .lift__caption p {
    max-width: calc(680 * var(--entry-s));
    font-size: calc(17 * var(--entry-s));
  }
}

/* Touch tablets and phones: no backdrop blurs or layer promotion (the
   original's page-wide performance rule, applied to this section). */
@media (max-width: 1180px), (pointer: coarse) and (min-width: 768px) {
  .entryway-shell * {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    will-change: auto;
  }
}
