/* NO ASTERISK display typography: Outfit is the default, with an opt-in
   comparison panel available at ?typetest=1. Keep tracking open and legible. */
/* Only Outfit and DM Sans load on the normal site; comparison fonts are
   fetched by script.js exclusively when the private type lab is requested. */

html[data-type-choice="outfit"] { --display: 'Outfit', 'DM Sans', sans-serif; }
html[data-type-choice="jakarta"] { --display: 'Plus Jakarta Sans', 'DM Sans', sans-serif; }
html[data-type-choice="bricolage"] { --display: 'Bricolage Grotesque', 'DM Sans', sans-serif; }

/* The three alternatives have wider characters than Barlow Condensed.
   Rebalance text sizes and tracking, while preserving the original composition. */
html[data-type-choice]:not([data-type-choice="original"]) .logo-link .brand-wordmark {
  font-size: clamp(23px, 2.35vw, 33px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.012em;
}
html[data-type-choice]:not([data-type-choice="original"]) .hero-na h1 {
  font-size: clamp(61px, 7vw, 109px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .006em;
}
html[data-type-choice]:not([data-type-choice="original"]) .display-title {
  font-size: clamp(49px, 5.6vw, 87px);
  line-height: 1.07;
  font-weight: 700;
  letter-spacing: -.012em;
}
html[data-type-choice]:not([data-type-choice="original"]) .benefit h3 {
  font-size: clamp(42px, 3.7vw, 63px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.017em;
}
html[data-type-choice]:not([data-type-choice="original"]) .ticker-track {
  font-size: clamp(24px, 2.25vw, 34px);
  font-weight: 700;
  letter-spacing: -.008em;
}
html[data-type-choice]:not([data-type-choice="original"]) .case-bottom h3 {
  font-size: clamp(20px, 2.15vw, 27px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.16;
}
html[data-type-choice]:not([data-type-choice="original"]) .charity-trail strong { letter-spacing: .012em; }
html[data-type-choice]:not([data-type-choice="original"]) .engineering-growth { font-size: clamp(60px, 6vw, 90px); letter-spacing: -.008em; }
html[data-type-choice]:not([data-type-choice="original"]) .curling-illustration > span {
  font-size: clamp(27px, 3.2vw, 39px);
  line-height: 1.1;
  letter-spacing: -.012em;
}
html[data-type-choice]:not([data-type-choice="original"]) .film-intro h3,
html[data-type-choice]:not([data-type-choice="original"]) .film-info h4 {
  font-size: clamp(36px, 4.4vw, 65px);
  letter-spacing: -.015em;
  line-height: 1.05;
  font-weight: 700;
}
html[data-type-choice]:not([data-type-choice="original"]) .impact-metric strong {
  font-size: clamp(40px, 4.15vw, 65px);
  letter-spacing: -.012em;
}
html[data-type-choice]:not([data-type-choice="original"]) .service-name {
  font-size: clamp(31px, 3.65vw, 57px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.012em;
}
html[data-type-choice]:not([data-type-choice="original"]) .step h3 {
  font-size: clamp(24px, 2.35vw, 34px);
  letter-spacing: -.01em;
}
html[data-type-choice]:not([data-type-choice="original"]) .footer-wordmark {
  font-size: clamp(50px, 7.5vw, 113px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.014em;
}
html[data-type-choice]:not([data-type-choice="original"]) .story-hero h1 {
  font-size: clamp(54px, 5.9vw, 91px);
  line-height: 1.08;
  letter-spacing: -.01em;
}
html[data-type-choice]:not([data-type-choice="original"]) .story-section h2,
html[data-type-choice]:not([data-type-choice="original"]) .story-next h2 {
  font-size: clamp(40px, 4.5vw, 69px);
  line-height: 1.1;
  letter-spacing: -.01em;
}
html[data-type-choice]:not([data-type-choice="original"]) .story-voice-grid h3,
html[data-type-choice]:not([data-type-choice="original"]) .story-process-grid h3 {
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -.01em;
}

@media (max-width: 980px) {
  html[data-type-choice]:not([data-type-choice="original"]) .hero-na h1 {
    font-size: clamp(55px, 8.9vw, 88px);
  }
}
@media (max-width: 650px) {
  html[data-type-choice]:not([data-type-choice="original"]) .logo-link .brand-wordmark { font-size: 22px; }
  html[data-type-choice]:not([data-type-choice="original"]) .hero-na h1 {
    font-size: clamp(42px, 10vw, 62px);
    line-height: 1.06;
    letter-spacing: .006em;
  }
  html[data-type-choice]:not([data-type-choice="original"]) .display-title { font-size: clamp(34px, 8.3vw, 52px); }
  html[data-type-choice]:not([data-type-choice="original"]) .benefit h3 { font-size: 49px; }
  html[data-type-choice]:not([data-type-choice="original"]) .film-info h4 { font-size: clamp(33px, 8.4vw, 48px); }
  html[data-type-choice]:not([data-type-choice="original"]) .service-name { font-size: clamp(27px, 7.1vw, 42px); }
  html[data-type-choice]:not([data-type-choice="original"]) .footer-wordmark { font-size: clamp(35px, 8vw, 51px); }
  html[data-type-choice]:not([data-type-choice="original"]) .story-hero h1 { font-size: clamp(43px, 10vw, 68px); }
}

/* The comparison controls exist only in this private test, not on the normal site. */
.type-lab {
  position: fixed;
  z-index: 1000;
  right: 19px;
  bottom: 19px;
  width: min(375px, calc(100vw - 28px));
  background: #fffdf8;
  color: #1E2521;
  border: 1px solid #173F36;
  border-radius: 17px;
  box-shadow: 0 15px 0 rgba(23,63,54,.13), 0 25px 60px rgba(13,38,32,.25);
  font-family: 'DM Sans', sans-serif;
  overflow: hidden;
}
.type-lab-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 15px 17px; }
.type-lab-heading > div { display: grid; gap: 4px; }
.type-lab-kicker { font-size: 9px; color: #526a61; letter-spacing: .1em; font-weight: 800; }
.type-lab-heading strong { font-size: 21px; font-weight: 700; letter-spacing: -.05em; }
.type-lab-toggle {
  border: 1px solid #c4ccc3;
  border-radius: 30px;
  background: transparent;
  padding: 8px 11px;
  color: #173F36;
  font-size: 11px;
  font-weight: 800;
}
.type-lab-content { padding: 0 17px 16px; max-height: min(65vh, 480px); overflow: auto; }
.type-lab-content > p { margin: 0 0 14px; color: #556057; font-size: 12px; line-height: 1.45; }
.type-lab-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.type-lab-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  background: #F7F2E8;
  border: 1.5px solid #e2ddd4;
  border-radius: 10px;
  padding: 11px 9px;
  text-align: left;
  color: #1E2521;
  transition: background .15s ease, border .15s ease;
}
.type-lab-options button:hover { border-color: #173F36; }
.type-lab-options button[aria-pressed="true"] { border-color: #173F36; background: #DCECE3; box-shadow: inset 0 0 0 1px #173F36; }
.type-lab-example { font-size: 29px; line-height: 1; letter-spacing: -.07em; flex: none; }
.type-lab-option-copy { display: grid; gap: 3px; min-width: 0; }
.type-lab-option-copy strong { font-size: 12px; font-weight: 800; }
.type-lab-option-copy small { font-size: 9px; color: #5B675E; line-height: 1.25; }
.type-lab-footnote { padding-top: 12px; font-size: 10px; line-height: 1.4; color: #607267; }
.type-lab.is-collapsed .type-lab-content { display: none; }
@media (max-width: 520px) {
  .type-lab { right: 12px; bottom: 12px; }
  .type-lab-heading { padding: 11px 13px; }
  .type-lab-content { padding: 0 13px 12px; }
}
