/* The public profile uses the same black-gold palette as the BM tour. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.landing-page {
  --gutter: clamp(.875rem, 5.3vw, 2.625rem);
  --card-inset: clamp(2px, .55vw, 4px);
  --profile-radius: clamp(.625rem, 2.4vw, 1.125rem);
  --profile-gold: #f5a13c;
  --profile-section: 1.1875rem;
  --profile-item: .9375rem;
  --profile-lead: .875rem;
  --profile-label: .875rem;
  --profile-meta: .8125rem;
  --row-icon: 1.5rem;
  container: profile / inline-size;
  width: min(100%, 50rem);
  padding: max(.375rem, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
}
.landing-page .hero {
  align-items: center;
  min-height: clamp(12rem, 42vw, 21rem);
  margin: 0 calc(-1 * var(--gutter)) 0 0;
}
.landing-page .hero-content { max-width: 76%; padding: .2rem 0 .25rem var(--card-inset); }
.landing-page .brand {
  --logo-width: clamp(5.5rem, 23vw, 8.5rem);
  height: calc(var(--logo-width) * .285);
  margin-bottom: clamp(.45rem, 1.7vw, .875rem);
}
.landing-page .logo-image {
  width: var(--logo-width);
  height: 100%;
  background-size: 418% auto;
  background-position: 5.85% 4.04%;
}
.landing-page .hero h1 {
  font-size: clamp(2rem, calc(1.75rem + 1.65vw), 2.75rem);
  font-weight: 675;
  letter-spacing: -.03em;
  line-height: 1.02;
}
.landing-page .hero-role {
  font-size: var(--profile-lead);
  line-height: 1.36;
  margin-top: .5rem;
  color: var(--copy);
}
.landing-page .hero-links { gap: 0 clamp(.625rem, 3vw, 1.15rem); margin-top: clamp(0rem, .25vw, .25rem); }
.landing-page .about-link {
  position: relative;
  min-height: max(44px, 1.6em);
  margin: 0;
  font-size: var(--profile-label);
  font-weight: 500;
  color: var(--profile-gold);
}
.landing-page .hero-message { background: none; padding: 0; border: 0; text-decoration: underline; text-underline-offset: .17em; }
.landing-page .hero-photo {
  inset: -1.25% 4.5% auto auto;
  height: 107.5%;
  width: auto;
  max-width: 61%;
  object-position: center center;
  mask-image: linear-gradient(90deg, transparent, #000 19%, #000 94%, transparent);
}
.landing-page .hero::after {
  background: linear-gradient(90deg, var(--bg) 26%, color-mix(in srgb,var(--bg) 84%,transparent) 38%, transparent 59%),
              linear-gradient(0deg, color-mix(in srgb,var(--bg) 82%,transparent), transparent 8%),
              linear-gradient(180deg, color-mix(in srgb,var(--bg) 60%,transparent), transparent 6%);
}

/* The whole poster is one link. Its cropped phone is an illustration, so
   touching a miniature control also starts the full narrated presentation. */
.tour-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0,1fr) min(31.5%,10rem);
  column-gap: clamp(.5rem, 2.5vw, 1.25rem);
  align-items: center;
  overflow: hidden;
  min-height: 7.5rem;
  margin: 0 var(--card-inset) clamp(.875rem, 3.4vw, 1.25rem);
  padding: 0 6.5% 0 5.1%;
  border: 1px solid #725738;
  border-radius: var(--profile-radius);
  background: linear-gradient(115deg,#2c261e,#201c17 62%,#161513);
  color: var(--text);
  transition: border-color .18s ease;
}
.tour-card-copy { display: grid; grid-template-columns: minmax(0,1fr); justify-items: start; min-width: 0; padding-block: clamp(.65rem, 2.5vw, 1.35rem); }
.tour-card-copy > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.tour-card-copy strong {
  font-size: var(--profile-section);
  line-height: 1.15;
  font-weight: 620;
  letter-spacing: -.016em;
}
.tour-card-subtitle {
  margin-top: clamp(.3rem, 1.3vw, .625rem);
  font-size: var(--profile-meta);
  line-height: 1.35;
  color: #c9c4bb;
}
.tour-card-subtitle > span { white-space: nowrap; }
.tour-card-play {
  display: inline-grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: .45rem;
  min-width: 0;
  max-width: 100%;
  min-height: 2.25rem;
  padding: .5rem .7rem;
  margin-top: clamp(.55rem, 2.7vw, 1.3rem);
  background: var(--profile-gold);
  border-radius: .6rem;
  font-size: var(--profile-label);
  line-height: 1.2;
  font-weight: 650;
  color: var(--primary-ink);
  transition: background-color .18s ease;
}
.play-disc {
  display: grid;
  place-items: center;
  width: 1.05rem;
  aspect-ratio: 1;
  color: inherit;
}
.play-disc svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.tour-card-play-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: .12em .35em; min-width: 0; }
.tour-card-action { min-width: 0; overflow-wrap: anywhere; }
.tour-card-time { font-size: var(--profile-meta); font-weight: 520; white-space: nowrap; }
.tour-card:active .tour-card-play { background: #e39537; }

/* The complete miniature screen scales as one image, including its type,
   columns and tap cues. Leave enough height for the lowest visible control. */
.preview-slot {
  position: relative;
  align-self: stretch;
  min-width: 0;
  pointer-events: none;
}
.preview-slot::before { content: ''; display: block; aspect-ratio: 1 / 1.36; }
.preview-device {
  position: absolute;
  top: 4px;
  inset-inline-start: 0;
  width: 100%;
  aspect-ratio: 9 / 19.2;
  padding: 1.8%;
  transform: rotate(2.5deg);
  transform-origin: 50% 12%;
  border-radius: 17% / 8%;
  background: linear-gradient(104deg,#aca7a0,#625e58 9%,#cec9c0 18%,#343330 48%,#b1a18c 83%,#655b4e);
  box-shadow: 1px 2px 4px #0009, inset 0 0 0 1px #605b52;
}
.preview-glass {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: clamp(1px,.27vw,2px) solid #080808;
  border-radius: 15.5% / 7.4%;
  background: #101011;
}
.preview-screen { display: block; width: 100%; height: auto; }

.landing-page .section { margin-bottom: clamp(1.25rem, 5vw, 2rem); }
.landing-page .section-title { margin: 0 var(--card-inset) clamp(.45rem, 2vw, .95rem); }
.landing-page .section-title h2 {
  font-size: var(--profile-section);
  line-height: 1.23;
  font-weight: 600;
  letter-spacing: -.016em;
}
.landing-page .results-section .section-title > span { display: none; }
.landing-page :is(#services,.credentials) > .link-list { display: grid; grid-template-columns: minmax(0,1fr); gap: clamp(3px,.85vw,6px); }
.landing-page #services > .link-list { container: services / inline-size; }
.landing-page :is(#services,.credentials) > .link-list > .fold { border: 1px solid var(--line); border-radius: var(--profile-radius); background: var(--surface); }
.landing-page #services .link-list > .main-offer:first-child { background: var(--selected); border-color: #86663e; }
.landing-page :is(#services,.credentials) > .link-list > .fold[open] { background: var(--raised); border-color: var(--selected-line); }
.landing-page #services .link-list > .main-offer:first-child[open] { background: var(--selected); border-color: #a77c44; }
.landing-page .fold > summary,.landing-page .channel-link {
  min-height: 3.125rem;
  padding: .4375rem clamp(.625rem,2.2vw,.875rem);
  column-gap: .4375rem;
  grid-template-columns: var(--row-icon) minmax(0,1fr) auto .875rem;
}
.landing-page .credentials .fold > summary,.landing-page .channel-link { grid-template-columns: var(--row-icon) minmax(0,1fr) auto; }
.landing-page :is(#services,.credentials) .fold-icon { width: 100%; height: auto; aspect-ratio: 1; background: transparent; color: var(--profile-gold); }
.landing-page :is(#services,.credentials) .fold-icon svg { width: 74%; height: 74%; }
.landing-page .fold-label strong {
  font-size: var(--profile-item);
  line-height: 1.25;
  font-weight: 570;
  letter-spacing: -.012em;
}
.landing-page .price { font-size: var(--profile-label); line-height: 1.25; font-weight: 520; }
.landing-page .fold-label small,.landing-page .price small,.landing-page .price:is(.individual,.terms) { font-size: var(--profile-meta); line-height: 1.24; }
.landing-page .fold-label small,.landing-page .price small { margin-top: .13rem; }
.landing-page .price:is(.individual,.terms) { color: #d6aa73; font-weight: 480; }
.landing-page .plus { color: #c5c1bb; justify-self: center; }
.landing-page .plus::before,.landing-page .plus::after { width: clamp(.65rem,2.5vw,1.15rem); }
.landing-page .fold[open] .plus { color: var(--profile-gold); }
.landing-page .fold > summary:focus-visible,.landing-page .channel-link:focus-visible { outline-offset: -3px; }
.landing-page :is(.case-caption,.certificates span,.section-title > span,.channel-open) { font-size: var(--profile-meta); }
.landing-page :is(.stage-grid .case-caption,.choose,.detail-link,.contacts a) { font-size: var(--profile-label); }
.landing-page .stage-grid .case-caption small { font-size: var(--profile-meta); }
.photo-dialog {
  max-width: calc(100% - 18px);
  container: photo-view / inline-size;
}
.photo-dialog .dialog-head h2 { min-width: 0; overflow-wrap: anywhere; }
@container photo-view (max-width: 13em) {
  .dialog-head { flex-direction: column; align-items: stretch; gap: 6px; }
  .dialog-head .close { order: -1; align-self: flex-end; }
}
.landing-page .detail-link { min-height: 44px; }
.landing-page footer { flex-wrap: wrap; }

/* Use the width of the cards for prices. This also adapts to larger text
   and safe areas when a handset is turned sideways. */
@container services (max-width: 21.75em) {
  .fold > summary:has(>.price:is(.terms,.individual)) {
    grid-template-columns: var(--row-icon) minmax(0,1fr) .875rem;
    grid-template-areas: 'icon label plus' 'icon price plus';
    row-gap: .15rem;
  }
  .fold > summary:has(>.price:is(.terms,.individual)) .fold-icon { grid-area: icon; }
  .fold > summary:has(>.price:is(.terms,.individual)) .fold-label { grid-area: label; }
  .fold > summary:has(>.price:is(.terms,.individual)) .plus { grid-area: plus; }
  .fold > summary > .price:is(.terms,.individual) { grid-area: price; text-align: left; white-space: normal; }
  .price.terms > span { display: inline; }
}
@container services (max-width: 18em) {
  .landing-page .fold > summary { grid-template-columns: var(--row-icon) minmax(0,1fr) .875rem; grid-template-areas: 'icon label plus' 'icon price plus'; row-gap: .15rem; }
  .fold > summary .fold-icon { grid-area: icon; }
  .fold > summary .fold-label { grid-area: label; }
  .fold > summary .price { grid-area: price; text-align: left; white-space: normal; }
  .fold > summary .plus { grid-area: plus; }
}
@media (max-width: 48rem), (orientation: landscape) and (max-height: 32rem) and (max-width: 64rem) {
  .landing-page { --gutter: 4px; --mobile-text-inset: clamp(.75rem,3.2vw,1.25rem); --card-inset: 2px; width: 100%; }
  .landing-page .hero { margin-inline: calc(-1 * var(--gutter)); min-height: 0; }
  .landing-page .hero-content { padding-inline-start: calc(var(--gutter) + var(--mobile-text-inset)); }
  .landing-page .hero-photo {
    inset: 0 0 0 auto; width: 55.5%; height: 100%; max-width: none;
    object-fit: cover; object-position: 55% 22%;
    mask-image: linear-gradient(90deg, transparent, #000 21%);
  }
  .landing-page .hero::after {
    background: linear-gradient(90deg, var(--bg) 26%, color-mix(in srgb,var(--bg) 89%,transparent) 39%, transparent 64%),
                linear-gradient(0deg, var(--bg), transparent 9%);
  }
  .landing-page .section-title,.landing-page footer { margin-inline: var(--mobile-text-inset); }
  .landing-page .fold-body { padding-inline: calc(var(--mobile-text-inset) - 1px); }
  .landing-page .tour-card { padding-inline: calc(var(--mobile-text-inset) - var(--card-inset) - 1px) clamp(.875rem,4.7vw,2.5rem); }
  .landing-page .contacts { grid-template-columns: repeat(auto-fit,minmax(min(100%,6em),1fr)); }
}
@media (orientation: landscape) and (max-height: 32rem) and (max-width: 64rem) {
  .landing-page .hero h1 { font-size: 2.25rem; }
  .landing-page .brand { --logo-width: 6rem; margin-bottom: .5rem; }
  .landing-page .hero-role { font-size: .875rem; margin-top: .5rem; }
  .landing-page .hero-photo { right: 12%; width: auto; object-fit: cover; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 87%, transparent); }
}
@container profile (min-width: 38em) {
  .landing-page .section-title h2,.tour-card-copy strong { font-size: 1.375rem; }
  .landing-page .hero-role,.landing-page .fold-label strong { font-size: 1rem; }
  .landing-page .fold > summary,.landing-page .channel-link { min-height: 3.5rem; }
}
@container profile (max-width: 20.5em) {
  .landing-page .hero-content { max-width: 100%; }
  .landing-page .hero-role { max-width: 76%; }
}
/* Give the name and tour title enough space beside the artwork at large reading sizes. */
@container profile (max-width: 17.5em) {
  .landing-page .hero {
    display: grid;
    grid-template-columns: minmax(min-content,1fr) minmax(0,32%);
    column-gap: .25rem;
    padding-inline-start: calc(var(--gutter) + var(--mobile-text-inset, .75rem));
  }
  .landing-page .hero-content { display: contents; }
  .landing-page .hero .brand { grid-area: 1 / 1; align-self: end; }
  .landing-page .hero h1 { grid-area: 2 / 1; font-size: 1.875rem; }
  .landing-page .hero-photo {
    grid-area: 1 / 2 / 3 / 3;
    position: static;
    width: 100%; height: 100%; max-width: none;
    min-height: 0; object-fit: cover; object-position: 53% 32%;
    mask-image: linear-gradient(90deg, transparent, #000 18%), linear-gradient(0deg, transparent, #000 18%);
    mask-composite: intersect;
  }
  .landing-page .hero::after { display: none; }
  .landing-page .hero-role,.landing-page .hero-links { grid-column: 1 / -1; max-width: 100%; padding-inline-end: var(--mobile-text-inset,.75rem); }
  .landing-page .tour-card {
    grid-template-areas: 'title title' 'subtitle phone' 'play phone';
    grid-template-columns: minmax(0,1fr) 32%;
    align-items: start; column-gap: .5rem;
  }
  .tour-card-copy { display: contents; }
  .tour-card-copy strong { grid-area: title; padding-block: .6rem .4rem; }
  .tour-card-subtitle { grid-area: subtitle; margin: 0; }
  .tour-card-play { grid-area: play; align-self: end; margin: .4rem 0 .6rem; }
  .preview-slot { grid-area: phone; }
  .landing-page :is(.certificates,.case-grid) { grid-template-columns: repeat(auto-fit,minmax(min(100%,7.5rem),1fr)); }
}
@media (hover:hover) {
  .tour-card:hover { border-color: var(--profile-gold); }
  .tour-card:hover .tour-card-play { background: #ffb558; }
  .landing-page .about-link:hover { color: #ffc175; }
}
