@font-face {
  font-family: Baskervville;
  src: url("fonts/Baskervville.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DM-Sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

/* Loaded on the two desktop pages only. Mobile and the specialist area have their own layout. */
:is(.welcome-page, .support-page) {
  --ink: #263929;
  --muted: #4d5548;
  --paper: #fbf5eb;
  --sage: #e0e6d6;
  --line: #d6cbba;
  --outline: #a8a895;
  --terracotta: #b98b70;
  --serif: Baskervville, Baskerville, Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --desktop-gutter: clamp(30px, 7.9vw, 120px);
  --desktop-width: min(1200px, 100% - 2 * var(--desktop-gutter));
  width: 100%;
  max-width: none;
  min-height: 100svh;
  container-type: inline-size;
  color: var(--ink);
  font: 16px/1.5 var(--sans);
}
html:has(> :is(.welcome-page, .support-page)) {
  background: #fbf5eb;
  scrollbar-gutter: auto;
  scroll-padding-top: 15px;
}
:is(.welcome-page, .support-page) :is(h1, h2, h3, p, ol) { margin: 0; }
:is(.welcome-page, .support-page) :is(h1, h2, h3) {
  color: var(--ink);
  font: 400 1em/1.1 var(--serif);
  letter-spacing: -.045em;
}
:is(.welcome-page, .support-page) a { text-decoration: none; }
:is(.welcome-page, .support-page) :is(a, button, summary):focus-visible {
  outline: 2px solid #536e51;
  outline-offset: 4px;
}
:is(.welcome-page, .support-page) .compact-header { display: none; }
:is(.welcome-page, .support-page) .site-header {
  display: flex;
  width: var(--desktop-width);
  justify-content: flex-start;
  padding: 12px 0;
  margin-inline: auto;
  visibility: visible;
  border: 0;
}
:is(.welcome-page, .support-page) .site-header :is(.logo-art, .menu-toggle) { display: none; }
:is(.welcome-page, .support-page) .site-header .desktop-logo {
  display: block;
  width: 100%;
  aspect-ratio: 372 / 192;
  background: url("desktop/brand.webp") center / contain no-repeat;
}

.desktop-curve {
  display: block;
  position: relative;
  width: 151px;
  height: 21px;
  margin: 17px 0 13px 2px;
  overflow: hidden;
}
.desktop-curve::after {
  content: "";
  position: absolute;
  inset: 4px 0 auto;
  height: 35px;
  border-top: 2px solid var(--terracotta);
  border-radius: 55% 48% 0 0;
  transform: rotate(-4deg);
}

:is(.welcome-path, .topic-choice, .contact-profile) {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 13px;
  min-height: 61px;
  padding: 10px 17px;
  border: 1px solid var(--outline);
  border-radius: 100px;
  background: #fffbf269;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.24;
  text-align: left;
  transition: background-color 140ms ease, border-color 140ms ease;
}
:is(.welcome-path, .topic-choice, .contact-profile)::before {
  content: "";
  position: absolute;
  left: 48px;
  top: calc(50% - 15px);
  height: 30px;
  border-right: 1px solid #a5a18d86;
  pointer-events: none;
}
.welcome-path:first-child, .support-page .contact-profile {
  color: #fff9ed;
  background: linear-gradient(146deg, #3a513b, #273d2b 82%);
  border-color: #314934;
}
.welcome-path:first-child:hover, .support-page .contact-profile:hover { background: #3a513c; }
.welcome-path:first-child::before, .contact-profile::before { border-color: #efe6cd65; }
.welcome-path:nth-child(2):hover, .topic-choice:hover { background: #fff9f0; border-color: #778b73; }
:is(.welcome-path, .topic-choice, .contact-profile) > svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.55;
}
:is(.welcome-path, .topic-choice, .contact-profile) > svg.desktop-only,
.contact-profile > .contact-profile-arrow { width: 19px; height: 19px; justify-self: end; }

.welcome-page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: clip;
  background: #f5e9da;
}
.welcome-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 3% 101%, #e6d1b682 0%, #f5e9da00 59%),
    linear-gradient(120deg, #f8f0e4, #f5e9da 66%);
}
.welcome-page .site-header { min-height: 109px; }
.welcome-page .site-header .logo-brand { width: clamp(120px, 13cqw, 171px); }
.welcome-page .welcome-header-actions { display: none; }

.welcome-page .welcome-hero {
  position: static;
  isolation: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: none;
  padding: 0;
  gap: 0;
  pointer-events: none;
}
.welcome-page :is(.welcome-media, .welcome-copy > *) { pointer-events: auto; }
.welcome-page .welcome-media {
  position: absolute;
  inset: 0 0 0 43%;
  z-index: -1;
  overflow: hidden;
  border-radius: 0;
  background: url("desktop/welcome-poster.webp") center 79% / cover no-repeat;
  mask-image: linear-gradient(to right, transparent, #000 30%);
}
.welcome-page .welcome-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 79%;
  visibility: hidden;
}
.welcome-page .welcome-media video[data-playing] { visibility: visible; }
.welcome-page .welcome-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #f6ebdc 0%, #f6ebdce8 9%, #f6ebdc48 29%, transparent 46%),
    linear-gradient(0deg, #f6ecde 0%, #f5e9da80 12%, transparent 32%),
    linear-gradient(180deg, #f6ecdec5 0%, transparent 28%);
}
.welcome-page .welcome-sound-media { z-index: 1; right: 20px; bottom: 20px; opacity: 0; }
.welcome-page .welcome-media:is(:hover, :focus-within) .welcome-sound-media { opacity: 1; }
@media (hover: none) {
  .welcome-page .welcome-sound-media { opacity: 1; }
}
.welcome-page .welcome-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
  width: var(--desktop-width);
  margin-inline: auto;
  padding-block: 25px 53px;
}
.welcome-page .welcome-copy h1 {
  max-inline-size: 5.6em;
  font-size: clamp(61px, 6.45cqw, 93px);
  line-height: .96;
  text-wrap: initial;
}
.welcome-page .welcome-copy .desktop-curve { width: 196px; margin: 22px 0 15px 2px; }
.welcome-page .welcome-subtitle {
  width: min(100%, 390px);
  font-size: 13px;
  font-weight: 670;
  line-height: 1.66;
  letter-spacing: .148em;
  text-transform: uppercase;
  color: #3d4a3c;
}
.welcome-page .welcome-paths {
  width: min(100%, clamp(448px, 29vw, 484px));
  gap: 12px;
  margin-top: 26px;
  /* Keep the vertically centered hero copy in place as the buttons grow. */
  margin-bottom: -13px;
}
.welcome-page .welcome-path {
  min-height: 76px;
  grid-template-columns: 31px minmax(0, 1fr) 19px;
  gap: 27px;
  padding-inline: 21px 23px;
  border-color: #a6a891;
  background: #fbf4e961;
  color: #293f2d;
}
.welcome-page .welcome-path::before {
  left: 63px;
  top: calc(50% - 17px);
  height: 34px;
  border-color: #bba992a6;
}
.welcome-page .welcome-path:first-child {
  background: #293f2d;
  border-color: #304a36;
  color: #faf6eb;
  box-shadow: 0 6px 16px #34372524;
}
.welcome-page .welcome-path:first-child::before { border-color: #f4e6d480; }
.welcome-page .welcome-path:nth-child(2):hover { background: #fff9f0; border-color: #778b73; }
.welcome-page .welcome-path:first-child:hover { background: #354d3a; }
.welcome-page .welcome-path > .welcome-path-icon { justify-self: center; width: 28px; height: 28px; }
.welcome-page .welcome-path > .welcome-path-arrow { justify-self: end; width: 17px; height: 17px; }
.welcome-page .welcome-path strong { font: 700 1.25rem/1.2 var(--sans); }
.welcome-page .welcome-path small { margin-top: 4px; color: inherit; font: 450 1rem/1.25 var(--sans); }

@media (max-width: 1130px) {
  .welcome-page .welcome-media { left: 41%; background-position: center 84%; }
  .welcome-page .welcome-media video { object-position: center 84%; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.welcome-path, .topic-choice, .contact-profile) { transition: none; }
}
