/* Mobile and tablet refinements loaded after the generated stylesheet. */
.font-display,
.font-headline-lg,
.font-headline-md,
.font-headline-sm {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.hero-main-title {
  max-width: 46rem;
  margin-bottom: 1.8rem;
  font-size: clamp(2.2rem, 3.6vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-main-title-line {
  display: inline-block;
}

.hero-main-title-line-soft {
  font-size: inherit;
}

.hero-main-title-line-main {
  font-size: inherit;
  white-space: nowrap;
}

.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 9.5rem;
  color: #00374e;
  text-decoration: none;
}

.brand-wordmark {
  color: #00374e;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(1.45rem, 1.55vw, 1.72rem);
  font-style: italic;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0;
  transition: color 0.15s ease;
}

.brand-mark-line {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin-top: 0.18rem;
}

.brand-mark-rule {
  width: 1.75rem;
  height: 1px;
  border-radius: 999px;
  background: #006496;
  opacity: 0.72;
}

.brand-mark-subtitle {
  color: #41484d;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 0.8rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-logo:hover .brand-wordmark,
.brand-logo:focus-visible .brand-wordmark {
  color: #006496;
}

.hero-slider {
  isolation: isolate;
  min-height: clamp(560px, calc(100svh - 5rem), 760px);
}

.hero-slider-media,
.hero-slider-overlay,
.hero-slider-image {
  position: absolute;
  inset: 0;
}

.hero-slider-media {
  z-index: -2;
  background: #00374e;
}

.hero-slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 900ms ease, transform 7000ms ease;
}

.hero-slider-image:nth-child(1) {
  object-position: center 42%;
}

.hero-slider-image:nth-child(2) {
  object-position: 68% center;
}

.hero-slider-image:nth-child(3) {
  object-position: center 45%;
}

.hero-slider-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slider-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 24, 36, 0.88) 0%, rgba(0, 55, 78, 0.72) 39%, rgba(0, 55, 78, 0.26) 72%, rgba(0, 24, 36, 0.2) 100%),
    linear-gradient(180deg, rgba(0, 24, 36, 0.28) 0%, rgba(0, 24, 36, 0.14) 46%, rgba(0, 24, 36, 0.5) 100%);
}

.hero-slider-inner {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  align-items: center;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.hero-slider-copy {
  width: min(100%, 46rem);
}

.hero-slider .hero-main-title {
  color: #ffffff;
  text-shadow: 0 14px 38px rgba(0, 23, 36, 0.28);
}

.hero-lead {
  max-width: 38rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.86);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2rem;
  text-transform: uppercase;
}

.hero-eyebrow-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #ffb694;
  box-shadow: 0 0 0 0.45rem rgba(255, 182, 148, 0.18);
}

.hero-actions {
  margin-bottom: 2.2rem;
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-proof-row span {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.hero-slider-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.5rem;
  display: flex;
  gap: 0.65rem;
  transform: translateX(-50%);
}

.hero-slider-dot {
  width: 2.45rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.hero-slider-dot:hover,
.hero-slider-dot:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  outline: none;
}

.hero-slider-dot.is-active {
  width: 3.4rem;
  background: #ffb694;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider-image {
    transition: none;
    transform: none;
  }
}

@media (max-width: 1279px) {
  header {
    background: rgba(255, 255, 255, 0.98) !important;
  }

  header button[aria-label="Open navigation menu"] {
    color: #081d2e;
  }

  .mobile-nav-panel {
    top: 5rem;
    z-index: 49;
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98) !important;
    color: #081d2e;
    border-top: 1px solid rgba(216, 234, 255, 0.9);
    box-shadow: 0 18px 40px -18px rgba(14, 34, 51, 0.35);
    backdrop-filter: blur(18px);
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }

  .mobile-nav-panel.is-open {
    display: block;
  }

  .mobile-nav-panel > div {
    gap: 0.375rem;
  }

  .mobile-nav-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    border-radius: 0.75rem;
    padding: 0.75rem 0.875rem;
    background: transparent;
    color: #081d2e !important;
    white-space: normal;
  }

  .mobile-nav-panel a[aria-current="page"] {
    background: #d8eaff;
    color: #081d2e !important;
    font-weight: 700;
  }

  .mobile-nav-panel .journal-menu > a {
    margin-bottom: 0.25rem;
  }

  .mobile-nav-panel .journal-submenu {
    display: none;
    gap: 0.25rem;
    padding: 0.25rem 0 0.5rem 0.75rem;
  }

  .mobile-nav-panel .journal-menu.is-open .journal-submenu {
    display: grid;
  }

  .mobile-nav-panel .journal-menu.is-open .material-symbols-outlined {
    transform: rotate(180deg);
  }

  .mobile-nav-panel .journal-submenu-link {
    color: #41484d !important;
  }

  .mobile-nav-panel .journal-submenu-link:hover,
  .mobile-nav-panel .journal-submenu-link:focus {
    background: #edf4ff;
    color: #081d2e !important;
  }

  body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }
}

@media (max-width: 1023px) {
  .sticky {
    position: static;
  }
}

@media (min-width: 1280px) {
  .site-header-shell.h-20 {
    height: 7.5rem;
    flex-wrap: wrap;
    align-content: center;
    gap: 0.5rem 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .site-header-shell .brand-logo {
    order: 1;
  }

  .site-header-shell > .flex.items-center.gap-space-md {
    order: 2;
  }

  .site-header-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(216, 234, 255, 0.85);
  }

  main.pt-20 {
    padding-top: 7.5rem;
  }

  .home-header-experiment.site-header-shell.h-20 {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "brand kicker kicker"
      "nav nav actions";
    gap: 0.55rem 1rem;
  }

  .home-header-experiment .brand-logo {
    grid-area: brand;
  }

  .home-header-experiment .brand-mark-line {
    display: none;
  }

  .home-header-kicker {
    grid-area: kicker;
    justify-self: end;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    white-space: nowrap;
  }

  .home-header-separator {
    width: 1px;
    height: 1.4rem;
    background: rgba(216, 234, 255, 0.95);
  }

  .home-header-social {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: #41484d;
    transition: color 0.15s ease, background-color 0.15s ease;
  }

  .home-header-social:hover,
  .home-header-social:focus-visible {
    background: #edf4ff;
    color: #006496;
  }

  .home-header-social-icon {
    width: 1.15rem;
    height: 1.15rem;
  }

  .home-header-experiment .site-header-nav {
    grid-area: nav;
    width: auto;
    justify-content: flex-start;
  }

  .home-header-experiment > .flex.items-center.gap-space-md {
    grid-area: actions;
    justify-self: end;
    order: initial;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(216, 234, 255, 0.85);
  }
}

@media (max-width: 767px) {
  .px-margin-mobile {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  header .h-20 {
    height: 4.5rem;
  }

  main.pt-20 {
    padding-top: 4.5rem;
  }

  .mobile-nav-panel {
    top: 4.5rem;
    max-height: calc(100dvh - 4.5rem);
  }

  .text-display {
    font-size: clamp(2.1rem, 10vw, 2.65rem);
    line-height: 1.08;
  }

  .hero-main-title {
    max-width: 100%;
    margin-bottom: 1.5rem;
    font-size: clamp(1.55rem, 5.8vw, 1.85rem);
    line-height: 1.16;
  }

  .hero-slider {
    min-height: calc(100svh - 4.5rem);
  }

  .hero-slider-inner {
    min-height: inherit;
    align-items: flex-end;
    padding-top: 5rem;
    padding-bottom: 5.25rem;
  }

  .hero-slider-overlay {
    background:
      linear-gradient(180deg, rgba(0, 24, 36, 0.22) 0%, rgba(0, 38, 56, 0.54) 42%, rgba(0, 24, 36, 0.9) 100%),
      linear-gradient(90deg, rgba(0, 24, 36, 0.62), rgba(0, 24, 36, 0.18));
  }

  .hero-slider-image:nth-child(1) {
    object-position: 50% center;
  }

  .hero-slider-image:nth-child(2) {
    object-position: 72% center;
  }

  .hero-lead {
    margin-bottom: 1.55rem;
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-actions {
    margin-bottom: 1.4rem;
  }

  .hero-proof-row {
    gap: 0.45rem;
  }

  .hero-proof-row span {
    min-height: 2rem;
    font-size: 0.62rem;
    padding: 0.42rem 0.66rem;
  }

  .text-headline-lg {
    font-size: 1.875rem;
    line-height: 2.35rem;
  }

  .text-headline-md {
    font-size: 1.45rem;
    line-height: 1.95rem;
  }

  .text-headline-sm {
    font-size: 1.18rem;
    line-height: 1.65rem;
  }

  .text-body-lg {
    font-size: 1rem;
    line-height: 1.625rem;
  }

  .text-6xl {
    font-size: 2.75rem;
    line-height: 1.05;
  }

  h1,
  h2,
  h3 {
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  p,
  li {
    overflow-wrap: break-word;
  }

  .py-20,
  .py-16 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .py-14,
  .py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .pt-16 {
    padding-top: 3.5rem;
  }

  .pb-20,
  .pb-16 {
    padding-bottom: 3.5rem;
  }

  .mt-16,
  .mt-14,
  .mt-12 {
    margin-top: 2.5rem;
  }

  .mb-16,
  .mb-14,
  .mb-12 {
    margin-bottom: 2.5rem;
  }

  .mb-10,
  .mb-8 {
    margin-bottom: 1.75rem;
  }

  .gap-12,
  .gap-10,
  .gap-8,
  .gap-space-xl {
    gap: 1.75rem;
  }

  .gap-gutter {
    gap: 1.25rem;
  }

  .p-8 {
    padding: 1.5rem;
  }

  .p-6 {
    padding: 1.25rem;
  }

  .p-5 {
    padding: 1rem;
  }

  .rounded-3xl {
    border-radius: 1.125rem;
  }

  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .h-\[550px\],
  .h-\[520px\],
  .h-\[480px\],
  .h-\[460px\],
  .h-\[420px\] {
    height: clamp(16rem, 62vw, 22rem);
  }

  .max-h-\[720px\],
  .max-h-\[520px\] {
    max-height: 22rem;
  }

  .min-h-\[480px\] {
    min-height: auto;
  }

  .h-96,
  .h-80,
  .h-72 {
    height: 16rem;
  }

  .h-64 {
    height: 14.5rem;
  }

  .h-56 {
    height: 13rem;
  }

  .h-48,
  .h-44 {
    height: 12rem;
  }

  .w-\[550px\],
  .w-\[420px\],
  .w-96,
  .w-80,
  .w-64 {
    width: 18rem;
  }

  .h-96,
  .h-80,
  .h-64 {
    max-height: 18rem;
  }

  main a.inline-flex,
  main button,
  input,
  select,
  textarea {
    min-height: 44px;
  }

  main .flex-wrap > a.inline-flex {
    flex: 1 1 100%;
    width: 100%;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 479px) {
  .text-display {
    font-size: 2rem;
    line-height: 2.25rem;
  }

  .text-headline-lg {
    font-size: 1.65rem;
    line-height: 2.05rem;
  }

  .px-7,
  .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Cleaner insight-detail sidebar */
.insight-related-card {
  background: rgba(237, 244, 255, 0.72);
  box-shadow: none;
}

.insight-related-heading {
  display: block;
  letter-spacing: 0.08em;
}

.insight-related-card .insight-topic-link {
  padding: 0.82rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(216, 234, 255, 0.95) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.insight-related-card .insight-topic-link:last-child {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.insight-related-card .insight-topic-link:nth-of-type(n + 6) {
  display: none;
}

.insight-related-card .insight-topic-link:hover,
.insight-related-card .insight-topic-link:focus {
  background: transparent !important;
}

.insight-topic-meta {
  display: block;
  font-size: 0.66rem;
  line-height: 1rem;
  letter-spacing: 0.08em;
  opacity: 0.82;
}

.insight-topic-title {
  display: -webkit-box !important;
  margin-top: 0.18rem !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #081d2e;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.94rem !important;
  font-weight: 600 !important;
  line-height: 1.35rem !important;
}

.insight-topic-link:hover .insight-topic-title,
.insight-topic-link:focus .insight-topic-title {
  color: #006496;
}

.insight-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  color: #006496;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25rem;
}

.insight-view-all .material-symbols-outlined {
  font-size: 1rem;
  transition: transform 0.15s ease;
}

.insight-view-all:hover .material-symbols-outlined,
.insight-view-all:focus .material-symbols-outlined {
  transform: translateX(2px);
}

@media (max-width: 1023px) {
  .insight-related-card {
    padding: 1.25rem;
  }

  .insight-related-card .insight-topic-link {
    padding: 0.78rem 0 !important;
  }
}

.testimonial-carousel {
  position: relative;
}

.testimonial-carousel-viewport {
  overflow: hidden;
  border: 1px solid rgba(216, 234, 255, 0.95);
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 18px 44px -24px rgba(14, 34, 51, 0.28);
}

.testimonial-carousel-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.testimonial-carousel-slide {
  flex: 0 0 100%;
  min-height: 20rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  background:
    linear-gradient(135deg, rgba(227, 239, 255, 0.72), rgba(255, 255, 255, 0.82) 48%, rgba(255, 219, 204, 0.34)),
    #ffffff;
}

.testimonial-carousel-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: rgba(0, 100, 150, 0.1);
  color: #006496;
  font-size: 1.7rem;
}

.testimonial-carousel-slide blockquote {
  color: #081d2e;
  font-family: Newsreader, ui-serif, Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.22;
  font-style: italic;
}

.testimonial-carousel-slide cite {
  color: #00374e;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
}

.testimonial-carousel-controls {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.testimonial-carousel-button {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 234, 255, 0.95);
  border-radius: 0.85rem;
  background: #ffffff;
  color: #00374e;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.testimonial-carousel-button:hover,
.testimonial-carousel-button:focus-visible {
  background: #00374e;
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.testimonial-carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.testimonial-carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #d1e5fc;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.testimonial-carousel-dot.is-active {
  width: 1.65rem;
  background: #803100;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-carousel-track,
  .testimonial-carousel-button,
  .testimonial-carousel-dot {
    transition: none;
  }
}

@media (max-width: 767px) {
  .testimonial-carousel-slide {
    min-height: 22rem;
    padding: 1.35rem;
  }

  .testimonial-carousel-slide blockquote {
    font-size: 1.35rem;
    line-height: 1.28;
  }

  .testimonial-carousel-controls {
    justify-content: space-between;
  }
}
