/* Shared type scale for the phone layouts. */
:root {
  --mobile-display: clamp(1.5rem, 1.05rem + 2.3vw, 1.875rem);
  --mobile-heading: clamp(1.3125rem, 1rem + 1.5vw, 1.5625rem);
  --mobile-card-title: clamp(1.0625rem, .9rem + .9vw, 1.25rem);
  --mobile-body: .875rem;
  --mobile-caption: .75rem;
}

.campaign-screen h1 {
  font-size: var(--mobile-display);
  line-height: 1.12;
  letter-spacing: 0;
}
.description {
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.28;
  letter-spacing: -.015em;
}
.audience, .end, .timer-label { font-size: var(--mobile-caption); }
.unit b { font-size: 1.125rem; letter-spacing: 0; }
.sep { font-size: 1rem; }
.unit small { font-size: .6875rem; }
.offer-region, .offer .end, .offer-foot .action, .offer-foot:has(#clock[hidden]),
.featured-project .caption,
.stage-foot, .finish-foot {
  display: none;
}

.orbit-intro h2, .portfolio-header h2, .slide-title,
.company-intro h2, .band h2, .finish-copy h2,
.sheet-head h2, .detail-copy h2 {
  font-size: var(--mobile-heading);
  line-height: 1.16;
  font-weight: 620;
  letter-spacing: -.025em;
}
.slide-title { font-size: var(--mobile-display); text-wrap: balance; }
.offer-headline { font-size: var(--mobile-card-title); line-height: 1.24; }
.portfolio { --slide-length: .45; }
@media (min-height: 421px) and (prefers-reduced-motion: no-preference) {
  .portfolio.with-orbit { --intro-length: .9; }
}
.request .side-copy h2 { max-width: none; }
.request-mobile-title { display: inline; }
#request-topic-title, #request-copy, .callback-policies { display: none; }
.name, .fact strong, .coast-views h3, .company-figures dd, .card-content h3,
.finish-choices strong, .receipt h3, .footer-office h2 {
  font-size: var(--mobile-card-title);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.fact p { font-size: .8125rem; line-height: 1.35; letter-spacing: normal; }
.company-intro p, .coast-views p, .side-copy p,
.finish-copy p, .slide-intro, .detail-copy, .finish-dialog > p {
  font-size: var(--mobile-body);
  line-height: 1.45;
}
.slide-cta .btn, .request .btn, .sheet .btn {
  font-size: var(--mobile-body);
  min-height: 44px;
}
.callback-fields label.field { font-size: var(--mobile-body); }
.sheet .close-sheet { width: 44px; height: 44px; }
.footer-phone { font-size: var(--mobile-heading); letter-spacing: -.02em; }
.footer-office p, .footer-office address, .footer-nav, .footer-callback { font-size: var(--mobile-body); }

.campaign-screen {
  --page-edge: 16px;
  --gap: 16px;
  --radius: 24px;
}

.company-profile {
  container-type: inline-size;
  font-family: Onest, Arial, sans-serif;
  display: block;
  min-height: 0;
  padding-bottom: 9px;
  color: #252722;
  background: #fff;
}
.company-mobile { display: inline; }
.company-desktop, .company-intro p, .company-photo figcaption { display: none; }
.company-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: clamp(13px, 3.5cqi, 23px) 5%;
}
.company-logo { width: clamp(60px, 19cqi, 108px); height: auto; }
.company-photo {
  margin: 0;
  height: clamp(140px, 45cqi, 280px);
  overflow: hidden;
}
.company-photo img { object-position: 65% center; }
.company-results {
  margin: calc(-1 * clamp(18px, 6.1cqi, 38px)) 5% 0;
}
.company-figures {
  grid-template-columns: 1fr;
  padding: clamp(6px, 2cqi, 13px) 6.7%;
  color: inherit;
  background: #fff;
  border: 1px solid #e2e2df;
  border-radius: clamp(14px, 4.2cqi, 26px);
}
.company-figures > div {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: clamp(4px, 1.1cqi, 8px);
  padding: clamp(12px, 3.4cqi, 23px) 0;
}
.company-figures > div + div { border: 0; border-top: 1px solid #dededa; }
.company-figures dd {
  display: flex;
  gap: clamp(10px, 3cqi, 19px);
  align-items: center;
  font-size: clamp(32px, 9.6cqi, 58px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.company-figures dt {
  max-width: 21ch;
  color: #4c5149;
  font-size: clamp(14px, 3.75cqi, 21px);
  line-height: 1.22;
  text-wrap: balance;
}
.company-stars { width: clamp(83px, 26cqi, 148px); height: auto; }
.company-source {
  position: absolute;
  top: 0;
  right: -.8%;
  transform: translateY(-50%);
  margin: 0;
}
.company-source a {
  width: clamp(52px, 16.5cqi, 96px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eca779;
  color: #332c25;
  font-size: clamp(19px, 5.9cqi, 34px);
  font-weight: 570;
  text-decoration: none;
}
.company-source .company-mobile { transform: rotate(13deg); }

/* Place the project dots in the space freed by the bottom row. */
@media (max-width: 760px) and (min-height: 541px),
       (max-width: 559px) {
  .portfolio-index { bottom: max(16px, env(safe-area-inset-bottom)); }
  .slide-copy { bottom: max(64px, calc(env(safe-area-inset-bottom) + 48px)); }
}

@media (orientation: portrait) {
  .campaign-screen {
    --hero-pad-y: 24px;
    --pad: 24px;
    min-height: auto;
    grid-template-rows: auto auto auto;
  }
  .campaign-screen .offer { padding: var(--pad); gap: 14px; }
  .featured-project { display: flex; }
  .featured-project .photo { flex: none; aspect-ratio: 16 / 9; }
  .featured-project figcaption { padding: var(--pad); gap: 3px; }
  .fact {
    --inset: 16px;
    min-width: 0;
    /* Start square; let longer captions grow the shared row on narrow phones. */
    min-height: min(224px, calc((100vw - 2 * var(--page-edge) - var(--gap)) / 2));
    row-gap: 5px;
  }
  .name { margin: 0; }
}
