.site-header .brand { flex-shrink: 0; font-size: clamp(17px, 2.2vw, 24px); white-space: nowrap; }
footer>.wrap { grid-template-columns: max-content minmax(0, 1fr); }
footer .brand { font-size: 20px; }

.hero-carousel-frame {
  position: relative;
  aspect-ratio: 1.14;
  overflow: hidden;
  border-radius: 44% 44% 2px 2px;
  background: #332c26;
}
.hero-slide { position: absolute; inset: 0; }
.hero-carousel .hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
  border-radius: 0;
}
.hero-slide-copy {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 4px;
  padding: clamp(36px, 6vw, 75px) clamp(15px, 4vw, 29px) clamp(12px, 2.4vw, 24px);
  background: linear-gradient(0deg, rgba(15, 21, 23, .94), rgba(15, 21, 23, .7) 40%, transparent);
  color: #fff;
}
.hero-slide-copy span { font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.hero-slide-copy strong { font: 700 clamp(16px, 2.15vw, 26px)/1.45 var(--serif); }
.hero-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 7px;
}
.hero-carousel-controls button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #bdc8c2;
  border-radius: 50%;
  background: #faf9f5;
  color: var(--ink);
  font: 700 23px/1 var(--sans);
  cursor: pointer;
}
.hero-carousel-controls .rotation { margin-right: auto; font-size: 15px; }
.hero-carousel-controls button:hover { background: #e5ebe6; }
.hero-slide-count { min-width: 34px; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.hero-carousel-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-carousel-controls[hidden], .hero-slide[hidden], .site-mascot [hidden] { display: none; }
.hero-carousel-controls button:focus-visible, .site-mascot button:focus-visible { outline: 2px solid #35466b; outline-offset: 3px; }

.site-mascot {
  width: min(146px, 42vw);
  margin: 0 auto 24px;
  text-align: center;
}
.site-mascot button {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 15px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.site-mascot img { display: block; width: 100%; height: auto; }

@media (max-width: 600px) {
  footer>.wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-carousel-frame { aspect-ratio: 1.65; border-radius: 46% 46% 2px 2px; }
  .hero-carousel-controls button { width: 44px; height: 44px; }
  .site-mascot { width: 120px; }
}
@media (max-width: 420px) {
  .site-header .brand { font-size: clamp(15px, 4.35vw, 18px); gap: 6px; }
  .site-header .header-contact { margin-left: auto; }
}
@media (max-width: 365px) {
  .site-header .header-inner nav { display: none; }
}

.hero-carousel { min-width: 0; }
.hero-title {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
}
.hero-title-first { grid-area: 1 / 1; }
.hero-title em { grid-area: 2 / 1 / 3 / -1; }
.hero-mascot {
  grid-area: 1 / 2;
  position: relative;
  width: clamp(60px, 10vw, 72px);
  max-width: 100%;
  pointer-events: none;
}
@media (min-width: 980px) {
  .hero-title em { grid-area: 2 / 1; }
  .hero-mascot {
    grid-area: 1 / 2 / 3 / 3;
    width: clamp(90px, 9vw, 112px);
  }
}
.hero-mascot img { display: block; width: 100%; height: auto; }
.hero-mascot .hero-mascot-hand { position: absolute; inset: 0; display: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Both layers use the same art. The moving layer isolates the raised hand at the wrist. */
  .hero-mascot.is-waving .hero-mascot-body {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 46%, 15.5% 46%, 20.4% 43.3%, 21.7% 41.1%, 21.8% 38%, 18.6% 33%, 0 33%);
  }
  .hero-mascot.is-waving .hero-mascot-hand {
    display: block;
    clip-path: polygon(0 33%, 18.6% 33%, 21.8% 38%, 21.7% 41.1%, 20.4% 43.3%, 15.5% 46.8%, 0 47%);
    transform-origin: 15.8% 45.5%;
    animation: hero-mascot-wave 1.02s ease-in-out;
  }
  @keyframes hero-mascot-wave {
    0%, 100% { transform: rotate(0deg); }
    18%, 54% { transform: rotate(-17deg); }
    36%, 73% { transform: rotate(8deg); }
  }
}

.case-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3.4vw, 40px);
}
.case-stories .featured-case {
  display: flex;
  gap: 0;
  flex-direction: column;
  align-items: stretch;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.case-stories .featured-case > img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
}
.case-stories .branch-case > img { object-position: 55% center; }
.case-stories .featured-case > div {
  display: grid;
  grid-template-rows: 24px auto;
  align-content: start;
  padding: 20px clamp(18px, 2.4vw, 28px) 25px;
}
.case-stories .featured-case .eyebrow { grid-row: 1; margin: 0; }
.case-stories .featured-case h3 {
  grid-row: 2;
  font-size: 24px;
  text-wrap: balance;
}
.case-stories .featured-case p:not(.eyebrow) {
  grid-row: 3;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.85;
}
.case-term { white-space: nowrap; }
.case-stories .text-link { grid-row: 4; justify-self: start; margin-top: 14px; }
.cases .other-cases {
  margin-top: 46px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.cases .other-cases a:first-child { border-top: 0; }
.cases .other-cases a { grid-template-columns: minmax(140px, 180px) minmax(0, 1fr) 20px; }
.cases .other-cases span { font-size: 11px; }

.security-link { background: #17382d; }
.security-link .eyebrow, .security-button { color: #f5dcb6; }
.security-link p:not(.eyebrow) { color: #e0eae1; }

@media (max-width: 600px) {
  .hero-title { column-gap: 12px; }
  .hero-mascot { width: clamp(60px, 17vw, 72px); }
  .eyebrow, .hero-copy .eyebrow, .security-link .eyebrow { font-size: 10px; }
  .security-link .eyebrow { white-space: normal; }
  .hero-price span { display: block; margin-left: 0; font-size: 11px; }
  .hero-bottom, .hero-bottom a { font-size: 11px; }

  .case-stories { grid-template-columns: 1fr; gap: 28px; }
  .case-stories .featured-case > img { aspect-ratio: 16 / 9; }
  .case-stories .featured-case > div { padding: 17px 17px 21px; }
  .case-stories .branch-case > div { grid-template-rows: 0 auto; }
  .case-stories .featured-case h3 { font-size: clamp(20px, 5.4vw, 22px); }
  .case-stories .branch-case h3 { text-wrap: pretty; }
  .cases .other-cases { margin-top: 30px; }
  .cases .other-cases a { grid-template-columns: minmax(0, 1fr) 18px; }
}

/* Keep the details under prices and the consultation notes readable at their original hierarchy. */
.tax { font-size: 12px; }

@media (min-width: 601px) {
  .plan-intro { font-size: 14px; }
  .included, .travel, .common-terms, .monthly-summary { font-size: 13px; }
  .included, .travel p { word-break: auto-phrase; text-wrap: pretty; }
  .contact-heading .contact-note { font-size: 12px !important; }
  .manual p { font-size: 13px; }
  .manual > p { font-size: 12px; }
  .contact-options p { font-size: 11px; }
}

@media (max-width: 800px) {
  .hero-lead { word-break: auto-phrase; text-wrap: pretty; }
}

@media (min-width: 400px) and (max-width: 600px) {
  .hero-lead br { display: inline; }
}

@media (min-width: 601px) and (max-width: 800px) {
  .hero-lead br { display: none; }
}
