/* Hotel cross-sell case study: dark, left-aligned editorial system. */

body.ref-mapped {
  --hotel-bg: oklch(0.115 0.012 255);
  --hotel-bg-soft: oklch(0.145 0.014 255);
  --hotel-surface: oklch(0.175 0.014 255);
  --hotel-surface-2: oklch(0.205 0.016 255);
  --hotel-ink: oklch(0.97 0.008 255);
  --hotel-copy: oklch(0.78 0.012 255);
  --hotel-muted: oklch(0.61 0.014 255);
  --hotel-line: color-mix(in oklch, var(--hotel-ink) 12%, transparent);
  --hotel-line-strong: color-mix(in oklch, var(--hotel-ink) 20%, transparent);
  --hotel-accent: oklch(0.72 0.015 255);
  --hotel-success: oklch(0.78 0.16 150);
  --hotel-shell: min(1180px, calc(100vw - 96px));
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 5%, color-mix(in oklch, var(--hotel-accent) 9%, transparent), transparent 26rem),
    var(--hotel-bg);
  color: var(--hotel-ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

html {
  scroll-padding-top: 112px;
}

body.ref-mapped *,
body.ref-mapped *::before,
body.ref-mapped *::after {
  box-sizing: border-box;
}

body.ref-mapped img,
body.ref-mapped video {
  display: block;
  max-width: 100%;
}

body.ref-mapped p {
  color: inherit;
}

body.ref-mapped ::selection {
  background: color-mix(in oklch, var(--hotel-accent) 40%, transparent);
  color: var(--hotel-ink);
}

body.ref-mapped #nav.scrolled .nav-inner {
  border-color: var(--hotel-line);
  background: color-mix(in oklch, var(--hotel-bg-soft) 88%, transparent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

body.ref-mapped #nav.scrolled .nav-logo,
body.ref-mapped #nav.scrolled .nav-links a {
  color: var(--hotel-ink);
}

body.ref-mapped #nav.scrolled .nav-resume {
  background: var(--hotel-surface-2);
}

body.ref-mapped #nav.scrolled .nav-links a:hover,
body.ref-mapped #nav.scrolled .nav-links a:focus-visible,
body.ref-mapped #nav.scrolled .nav-resume:hover,
body.ref-mapped #nav.scrolled .nav-resume:focus-visible {
  background: var(--hotel-surface-2) !important;
  color: var(--hotel-ink) !important;
  outline: none;
}

.hotel-main {
  width: 100%;
  padding-top: 142px;
}

.hotel-hero,
.hotel-story,
.outcome-inner,
.reflection-inner {
  width: var(--hotel-shell);
  margin-inline: auto;
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0 0 54px -14px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--hotel-copy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.case-back:hover,
.case-back:focus-visible {
  background: #ffffff;
  color: #050608;
  outline: none;
}

.hotel-hero-copy {
  width: min(900px, 100%);
}

.hotel-project-line {
  margin: 0 0 22px;
  color: var(--hotel-accent) !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hotel-hero h1,
.story-heading h2,
.trust-copy h2,
.research-quote p {
  font-family: "Fraunces", Georgia, serif;
}

.hotel-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--hotel-ink);
  font-size: clamp(52px, 7.2vw, 96px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.hotel-hero-summary {
  max-width: 700px;
  margin: 30px 0 0;
  color: var(--hotel-copy) !important;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hotel-meta {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.8fr 0.7fr;
  gap: 32px;
  width: min(760px, 100%);
  margin: 64px 0 52px;
  padding-top: 24px;
  border-top: 1px solid var(--hotel-line);
}

.hotel-meta div {
  min-width: 0;
}

.hotel-meta dt {
  color: var(--hotel-muted);
  font-size: 13px;
  line-height: 1.2;
}

.hotel-meta dd {
  margin: 8px 0 0;
  color: var(--hotel-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.hotel-meta .is-live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hotel-success);
}

.hotel-meta .is-live span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.hotel-hero-media {
  position: relative;
  margin: 0;
}

.hotel-hero-hand {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--hotel-line);
  border-radius: 24px;
  background: oklch(0.72 0.14 220);
  box-shadow: none;
}

.hotel-hero-hand .hand-mockup-base {
  transform: none;
}

.hotel-hero-hand .hand-mockup-device {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.hotel-hero-hand .hand-mockup-screen {
  left: 4.6%;
  top: 2.1%;
  width: 90.8%;
  height: 93.8%;
  object-fit: cover;
  object-position: top center;
}

.hotel-hero-media figcaption,
.native-phone-evidence figcaption,
.banner-evidence figcaption,
.final-video-stage figcaption {
  margin-top: 14px;
  color: var(--hotel-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.hero-video-toggle {
  position: absolute;
  right: 18px;
  bottom: 42px;
  z-index: 8;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(5, 6, 8, 0.78);
  color: #ffffff;
  font: 600 12px/1 "Plus Jakarta Sans", sans-serif;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-video-toggle:hover,
.hero-video-toggle:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  color: #050608;
  outline: none;
}

.hotel-story {
  padding-bottom: 40px;
}

.story-section,
.trust-section,
.outcome-band,
.reflection-section {
  position: relative;
  margin-top: clamp(96px, 12vw, 164px);
  padding-top: clamp(72px, 8vw, 108px);
  border-top: 1px solid var(--hotel-line);
  scroll-margin-top: 110px;
}

.story-heading {
  width: min(820px, 100%);
  margin: 0;
}

.story-heading h2,
.trust-copy h2 {
  margin: 0;
  color: var(--hotel-ink);
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.story-heading > p,
.trust-copy > p {
  max-width: 72ch;
  margin-top: 24px;
  color: var(--hotel-copy) !important;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.65;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid var(--hotel-line);
  border-bottom: 1px solid var(--hotel-line);
}

.metric-row article {
  min-width: 0;
  padding: 30px 28px 32px 0;
}

.metric-row article + article {
  padding-left: 28px;
  border-left: 1px solid var(--hotel-line);
}

.metric-row article:nth-child(3) {
  padding-left: 0;
}

.metric-row strong {
  display: block;
  color: var(--hotel-ink);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-row span {
  display: block;
  margin-top: 14px;
  color: var(--hotel-muted);
  font-size: 14px;
  line-height: 1.5;
}

.strategy-grid article > span,
.iteration-copy > span {
  color: var(--hotel-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.context-scroll-story {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(56px, 8vw, 112px);
  margin-top: clamp(92px, 11vw, 148px);
}

.context-sticky {
  position: sticky;
  top: 112px;
  align-self: start;
  height: calc(100vh - 152px);
  min-height: 620px;
}

.context-visual {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  opacity: 0;
  transform: translate3d(0, calc(24px + var(--context-parallax-y, 0px)), 0) scale(0.985);
  transition: opacity 440ms cubic-bezier(0.2, 0, 0, 1), transform 600ms cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
}

.context-visual.is-active {
  opacity: 1;
  transform: translate3d(0, var(--context-parallax-y, 0px), 0) scale(1);
}

.context-visual img {
  width: min(100%, 410px);
  max-height: calc(100% - 44px);
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.2));
}

.context-visual figcaption {
  margin-top: 14px;
  color: var(--hotel-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.context-steps {
  min-width: 0;
}

.context-mobile-visual {
  display: none;
}

.context-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 86vh;
  padding: 72px 0;
  opacity: 0.28;
  transform: translate3d(0, 22px, 0);
  transition: opacity 360ms ease, transform 480ms cubic-bezier(0.2, 0, 0, 1);
}

.context-step.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.context-step > span {
  color: var(--hotel-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.context-step h3,
.recovery-copy h3 {
  max-width: 20ch;
  margin: 18px 0 0;
  color: var(--hotel-ink);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.context-step ul {
  max-width: 600px;
  margin: 42px 0 0;
  padding: 0;
  border-top: 1px solid var(--hotel-line);
  list-style: none;
}

.context-step li {
  position: relative;
  padding: 24px 0 24px 34px;
  border-bottom: 1px solid var(--hotel-line);
  color: var(--hotel-copy);
  font-size: 16px;
  line-height: 1.65;
}

.context-step li::before {
  content: "";
  position: absolute;
  top: 35px;
  left: 2px;
  width: 12px;
  height: 1px;
  background: var(--hotel-accent);
}

.research-quote {
  max-width: 960px;
  margin: clamp(104px, 12vw, 168px) auto 0;
  padding: 0;
  border: 0;
  text-align: center;
}

.research-eyebrow {
  display: block;
  margin-bottom: 26px;
  color: var(--hotel-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.research-quote p {
  margin: 0;
  color: var(--hotel-ink) !important;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.research-quote cite {
  display: block;
  max-width: 52ch;
  margin: 28px auto 0;
  color: var(--hotel-muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 72px;
  border-top: 1px solid var(--hotel-line);
}

.story-heading #strategy-title {
  max-width: 820px;
  font-size: clamp(36px, 4.4vw, 58px);
}

.strategy-section .story-heading {
  width: 100%;
}

.story-heading > .strategy-highlight {
  width: max-content;
  max-width: 100%;
  margin-top: 28px;
  padding: 10px 14px;
  border-left: 2px solid var(--hotel-accent);
  background: color-mix(in oklch, var(--hotel-ink) 7%, transparent);
  color: var(--hotel-ink) !important;
  font-size: clamp(17px, 1.75vw, 20px);
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}

.story-heading > .strategy-subheading {
  margin-top: 18px;
}

.strategy-grid article {
  min-height: 250px;
  padding: 32px 48px 44px 0;
  border-bottom: 1px solid var(--hotel-line);
}

.strategy-grid article:nth-child(even) {
  padding-left: 48px;
  border-left: 1px solid var(--hotel-line);
}

.strategy-grid h3 {
  max-width: 18ch;
  margin: 58px 0 0;
  color: var(--hotel-ink);
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.strategy-grid p {
  max-width: 42ch;
  margin-top: 14px;
  color: var(--hotel-muted) !important;
  font-size: 15px;
  line-height: 1.6;
}

.confirmation-tree {
  position: relative;
  margin-top: 76px;
  padding-top: 68px;
}

.tree-root {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  padding: 16px 24px;
  border: 1px solid var(--hotel-line-strong);
  border-radius: 999px;
  background: var(--hotel-surface-2);
  color: var(--hotel-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.tree-root::after {
  content: "";
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 1px;
  height: 16px;
  background: var(--hotel-line-strong);
}

.tree-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  padding-top: 68px;
}

.tree-branches::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--hotel-line-strong);
}

.tree-branch {
  position: relative;
  min-width: 0;
  padding: 26px 20px 24px;
  border: 1px solid var(--hotel-line);
  background: var(--hotel-bg-soft);
}

.tree-branch::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 68px;
  background: var(--hotel-line-strong);
}

.tree-branch h3 {
  min-height: 44px;
  color: var(--hotel-ink);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.tree-branch ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--hotel-line);
  list-style: none;
}

.tree-branch li {
  position: relative;
  padding-left: 14px;
  color: var(--hotel-muted);
  font-size: 13px;
  line-height: 1.45;
}

.tree-branch li::before {
  content: "";
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 5px;
  height: 1px;
  background: var(--hotel-accent);
}

.solution-pair {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1fr);
  align-items: stretch;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 72px;
}

.solution-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.solution-step .phone-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 700px;
  padding: 44px;
  overflow: hidden;
  background: var(--hotel-bg-soft);
}

.solution-step .phone-shell {
  width: min(100%, 320px);
}

.solution-principle {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 700px;
  padding: clamp(36px, 5vw, 68px);
  background:
    radial-gradient(circle at 80% 14%, color-mix(in oklch, var(--hotel-accent) 24%, transparent), transparent 20rem),
    var(--hotel-surface);
}

.solution-principle > p {
  max-width: 16ch;
  margin: 0;
  color: var(--hotel-ink) !important;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.trust-section {
  padding: clamp(56px, 7vw, 84px);
  overflow: hidden;
  border-top: 0;
  background: #050608;
}

.trust-copy {
  max-width: 820px;
}

.trust-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-tag-grid figure {
  min-width: 0;
  margin: 0;
  padding: 32px 40px 34px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-tag-grid figure:nth-child(even) {
  padding-left: 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-tag-grid img {
  width: min(100%, 380px);
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.trust-tag-grid figcaption {
  max-width: 42ch;
  margin-top: 20px;
  color: var(--hotel-muted);
  font-size: 14px;
  line-height: 1.55;
}

.iteration-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(72px, 9vw, 120px) clamp(32px, 6vw, 72px);
  margin-top: 80px;
}

.iteration-card {
  min-width: 0;
}

.iteration-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 670px;
  padding: 44px;
  overflow: hidden;
  border: 1px solid var(--hotel-line);
  background: var(--hotel-bg-soft);
}

.iteration-card.is-selected .iteration-media {
  border-color: color-mix(in oklch, var(--hotel-accent) 48%, transparent);
  background:
    linear-gradient(145deg, color-mix(in oklch, var(--hotel-accent) 12%, transparent), transparent 60%),
    var(--hotel-bg-soft);
}

.iteration-media .phone-shell {
  width: min(100%, 290px);
}

.iteration-copy {
  padding-top: 26px;
}

.iteration-copy h3 {
  margin-top: 12px;
  color: var(--hotel-ink);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.iteration-copy p {
  max-width: 48ch;
  margin-top: 14px;
  color: var(--hotel-muted) !important;
  font-size: 15px;
  line-height: 1.65;
}

.phone-shell {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 7px solid #0a0b0e;
  border-radius: 42px;
  background: #f6f7fa;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  isolation: isolate;
}

.phone-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  pointer-events: none;
}

.phone-shell img,
.phone-shell video {
  width: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: top center;
  background: #f6f7fa;
}

.phone-shell img {
  height: auto;
}

.phone-shell video {
  aspect-ratio: 9 / 20;
  height: auto;
}

.recovery-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.64fr);
  align-items: center;
  gap: clamp(64px, 10vw, 132px);
  margin-top: 80px;
}

.recovery-copy {
  max-width: 600px;
}

.recovery-copy p {
  max-width: 58ch;
  margin-top: 20px;
  color: var(--hotel-copy) !important;
  font-size: 16px;
  line-height: 1.7;
}

.recovery-video {
  display: flex;
  justify-content: center;
}

.recovery-video .phone-shell {
  width: min(100%, 350px);
}

.recovery-video video::-webkit-media-controls-panel,
.final-video-stage video::-webkit-media-controls-panel {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.46));
}

.state-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(96px, 11vw, 148px);
}

.state-gallery article {
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid var(--hotel-line);
}

.state-media {
  width: 100%;
  margin-inline: auto;
}

.state-gallery h3 {
  margin-top: 26px;
  color: var(--hotel-ink);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.state-gallery p {
  margin-top: 10px;
  color: var(--hotel-muted) !important;
  font-size: 14px;
  line-height: 1.6;
}

.final-proof {
  padding-bottom: 0;
  text-align: center;
}

.final-proof .story-heading {
  margin-inline: auto;
}

.final-proof .story-heading > p {
  margin-inline: auto;
}

.final-video-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 520px);
  margin: 72px auto 0;
}

.final-video-stage .phone-shell {
  width: min(100%, 360px);
}

.final-video-stage figcaption {
  text-align: center;
}

.outcome-band {
  width: 100%;
  margin-top: clamp(112px, 13vw, 180px);
  padding-bottom: clamp(84px, 10vw, 128px);
  background: var(--hotel-bg);
}

.outcome-band .story-heading,
.reflection-section .story-heading {
  margin-left: 0;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid var(--hotel-line);
}

.outcome-grid article {
  min-height: 270px;
  padding: 32px 28px 0 0;
}

.outcome-grid article + article {
  padding-left: 28px;
  border-left: 1px solid var(--hotel-line);
}

.outcome-grid strong {
  display: block;
  color: var(--hotel-success);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}

.outcome-grid h3 {
  margin-top: 46px;
  color: var(--hotel-ink);
  font-size: 18px;
  line-height: 1.35;
}

.outcome-grid p {
  margin-top: 12px;
  color: var(--hotel-muted) !important;
  font-size: 14px;
  line-height: 1.6;
}

.reflection-section {
  width: 100%;
  margin-top: 0;
  padding-bottom: clamp(92px, 11vw, 144px);
  background: var(--hotel-bg-soft);
}

.reflection-inner ul {
  max-width: 980px;
  margin: 64px 0 0;
  padding: 0;
  border-top: 1px solid var(--hotel-line);
  list-style: none;
}

.reflection-inner li {
  position: relative;
  padding: 28px 0 28px 48px;
  border-bottom: 1px solid var(--hotel-line);
  color: var(--hotel-ink);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.reflection-inner li::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 4px;
  width: 18px;
  height: 2px;
  background: var(--hotel-accent);
}

/* One-shot entry motion. Items never hide again after entering the viewport. */
html.js-enhanced body.ref-mapped [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 560ms cubic-bezier(0.2, 0, 0, 1),
    transform 560ms cubic-bezier(0.2, 0, 0, 1);
  transition-delay: calc(var(--hotel-stagger, 0) * 90ms);
  will-change: opacity, transform;
}

html.js-enhanced body.ref-mapped [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 1000px) {
  body.ref-mapped {
    --hotel-shell: min(900px, calc(100vw - 56px));
  }

  .metric-row,
  .outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-row article:nth-child(3),
  .outcome-grid article:nth-child(3) {
    border-left: 0;
  }

  .metric-row article:nth-child(n + 3),
  .outcome-grid article:nth-child(n + 3) {
    border-top: 1px solid var(--hotel-line);
  }

  .context-scroll-story,
  .recovery-feature {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: 52px;
  }

  .context-sticky {
    min-height: 560px;
  }

  .tree-branches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tree-branches::before,
  .tree-branch::before {
    display: none;
  }

  .tree-root::after {
    display: none;
  }

  .tree-branches {
    gap: 18px;
    margin-top: 32px;
    padding-top: 0;
  }

  .state-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 72px 32px;
  }

  .state-media {
    width: min(100%, 330px);
  }
}

@media (max-width: 760px) {
  body.ref-mapped {
    --hotel-shell: calc(100vw - 36px);
  }

  .hotel-main {
    padding-top: 118px;
  }

  .case-back {
    margin-bottom: 40px;
  }

  .hotel-hero h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

  .hotel-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .hotel-hero-hand {
    width: calc(100vw - 20px);
    margin-left: calc((var(--hotel-shell) - (100vw - 20px)) / 2);
    border-radius: 18px;
  }

  .hero-video-toggle {
    right: 8px;
    bottom: 38px;
  }

  .story-section,
  .trust-section,
  .outcome-band,
  .reflection-section {
    margin-top: 96px;
    padding-top: 64px;
  }

  .solution-pair,
  .recovery-feature {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .recovery-video .phone-shell {
    width: min(100%, 380px);
  }

  .context-scroll-story {
    display: block;
  }

  .context-sticky {
    display: none;
  }

  .context-mobile-visual {
    display: block;
    width: min(100%, 330px);
    margin: 0 0 52px;
  }

  .context-mobile-visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.18));
  }

  .context-mobile-visual figcaption {
    margin-top: 12px;
    color: var(--hotel-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
  }

  .context-step {
    min-height: 0;
    padding: 72px 0;
  }

  .confirmation-tree {
    padding-top: 44px;
  }

  .story-heading > .strategy-highlight {
    width: 100%;
    white-space: normal;
  }

  .strategy-grid,
  .trust-tag-grid,
  .iteration-list {
    grid-template-columns: 1fr;
  }

  .strategy-grid article,
  .strategy-grid article:nth-child(even),
  .trust-tag-grid figure,
  .trust-tag-grid figure:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .trust-section {
    width: calc(100vw - 20px);
    margin-left: calc((var(--hotel-shell) - (100vw - 20px)) / 2);
    padding-inline: 26px;
  }

  .iteration-media {
    min-height: 620px;
    padding: 34px;
  }

  .solution-step .phone-stage,
  .solution-principle {
    min-height: 620px;
  }

  .outcome-grid article {
    min-height: 230px;
  }
}

@media (max-width: 520px) {
  body.ref-mapped {
    --hotel-shell: calc(100vw - 32px);
  }

  body.ref-mapped #nav.scrolled {
    padding-inline: 10px;
  }

  body.ref-mapped #nav.scrolled .nav-inner {
    padding-left: 14px;
  }

  .hotel-project-line {
    font-size: 12px;
  }

  .hotel-hero-summary {
    font-size: 17px;
  }

  .hotel-meta {
    margin-top: 46px;
  }

  .metric-row,
  .outcome-grid,
  .state-gallery {
    grid-template-columns: 1fr;
  }

  .metric-row article,
  .metric-row article + article,
  .outcome-grid article,
  .outcome-grid article + article {
    padding: 26px 0;
    border-left: 0;
    border-top: 1px solid var(--hotel-line);
  }

  .metric-row article:first-child,
  .outcome-grid article:first-child {
    border-top: 0;
  }

  .strategy-grid article,
  .strategy-grid article:nth-child(even) {
    min-height: 0;
    padding: 28px 0 34px;
  }

  .strategy-grid h3 {
    margin-top: 36px;
  }

  .solution-step .phone-stage,
  .iteration-media {
    min-height: 0;
    padding: 28px;
  }

  .solution-principle {
    min-height: 500px;
    padding: 34px 28px;
  }

  .phone-shell {
    border-width: 6px;
    border-radius: 34px;
  }

  .phone-shell::after {
    border-radius: 27px;
  }

  .trust-section {
    padding-inline: 22px;
  }

  .trust-tag-grid figure,
  .trust-tag-grid figure:nth-child(even) {
    padding: 26px 0;
  }

  .iteration-list {
    gap: 72px;
  }

  .state-gallery {
    gap: 64px;
  }

  .state-media {
    width: min(100%, 320px);
  }

  .outcome-grid h3 {
    margin-top: 28px;
  }

  .tree-branches {
    grid-template-columns: 1fr;
  }

  .tree-branch h3 {
    min-height: 0;
  }

  .context-mobile-visual {
    width: min(100%, 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js-enhanced body.ref-mapped [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .case-back {
    transition: none;
  }

  .context-visual,
  .context-step {
    transition: none;
  }

  .context-visual {
    transform: none;
  }
}
