.homepage {
  color: #17243a;
  background: #f4f1ec;
}

.homepage main {
  background: #f4f1ec;
}

.homepage .study-header {
  position: relative;
  background: #020e1e;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-shell {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.home-eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  color: #fff;
  background: #08101e;
}

.homepage .home-hero::before,
.homepage .home-hero::after {
  display: none;
}

.home-hero > .home-hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
}

.home-hero-copy {
  max-width: 460px;
  padding-top: 248px;
  padding-bottom: var(--space-4);
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.home-hero h1 .text-brand {
  color: #e30613;
}

.home-headline-line {
  display: block;
  width: max-content;
  white-space: nowrap;
}

.home-hero-copy > p:last-child {
  max-width: 380px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.45;
}

.home-hero > .home-hero-visual {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
}

.home-hero-visual::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 75%, rgba(8, 16, 30, 0.6) 0%, transparent 42%),
    linear-gradient(to top, rgba(8, 16, 30, 0.92) 0%, rgba(8, 16, 30, 0.52) 18%, rgba(8, 16, 30, 0) 52%);
}

.home-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.home-search-section {
  position: relative;
  z-index: 5;
  padding-block: var(--space-3);
  background: #08101e;
}

.home-search-wrap {
  position: relative;
}

.home-multi-search {
  display: grid;
  max-width: 1040px;
  grid-template-columns: 1.05fr 1.45fr 1fr auto;
  margin-inline: auto;
  border-radius: 16px;
  padding: 10px 12px;
  color: #27344a;
  background: #fff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.home-search-field {
  position: relative;
  display: grid;
  min-height: 52px;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: 18px 28px;
  column-gap: 10px;
  align-content: center;
  min-width: 0;
  padding: 3px 16px;
  border-left: 1px solid #e2e8f0;
}

.home-search-field--channel {
  border-left: 0;
}

.home-search-field > svg {
  width: 21px;
  height: 21px;
  grid-row: 1 / 3;
  align-self: center;
  fill: none;
  stroke: #64748b;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.home-search-field > span {
  display: block;
  color: #111827;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 18px;
}

.home-multi-search input,
.home-multi-search select {
  width: 100%;
  min-width: 0;
  height: 28px;
  border: 0;
  padding: 0;
  color: #25324a;
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  outline: 0;
}

.home-multi-search select {
  cursor: pointer;
}

.home-multi-search button {
  display: inline-flex;
  height: 52px;
  align-items: center;
  align-self: center;
  justify-content: center;
  gap: var(--space-1);
  border: 0;
  border-radius: 10px;
  padding: 0 28px;
  color: #fff;
  background: #e30613;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(227, 6, 19, 0.25);
}

.home-multi-search button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.home-signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.home-signal-strip > div {
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
  padding: var(--space-2) var(--space-3);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.home-signal-strip > div:last-child {
  border-right: 0;
}

.home-signal-strip strong {
  color: #fff;
  font-size: 1.35rem;
}

.home-signal-strip span {
  color: #adbed0;
  font-size: 0.75rem;
  font-weight: 700;
}

.home-section {
  padding-block: var(--space-5);
}

.home-section-heading {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: end;
  margin-bottom: var(--space-4);
}

.home-section-heading h2,
.home-about h2 {
  max-width: 780px;
  margin: 0;
  color: #071a32;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.home-section-heading > p {
  max-width: 390px;
  margin: 0;
  color: #657387;
  line-height: 1.65;
}

.home-paths {
  color: #17243a;
}

.home-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #cbd3dc;
  border-left: 1px solid #cbd3dc;
}

.home-path-card {
  display: flex;
  min-width: 0;
  min-height: 480px;
  flex-direction: column;
  padding: var(--space-3);
  border-right: 1px solid #cbd3dc;
  border-bottom: 1px solid #cbd3dc;
  background: rgba(255, 255, 255, 0.58);
  transition: background 160ms ease, transform 160ms ease;
}

.home-path-card:hover {
  z-index: 1;
  background: #fff;
  transform: translateY(-4px);
}

.home-path-card--accent {
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(237, 24, 54, 0.28), transparent 16rem),
    #071a32;
}

.home-path-card--accent:hover {
  background:
    radial-gradient(circle at 90% 10%, rgba(237, 24, 54, 0.36), transparent 16rem),
    #0a203b;
}

.home-path-card header {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: center;
}

.home-path-card header span {
  color: #d31836;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.home-path-card header p {
  margin: 0;
  color: #758296;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-path-card--accent header p {
  color: #aebed0;
}

.home-path-card h3 {
  margin: var(--space-4) 0 var(--space-2);
  color: #071a32;
  font-size: clamp(1.65rem, 2.7vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.home-path-card--accent h3 {
  color: #fff;
}

.home-path-card > p {
  margin: 0;
  color: #627084;
  line-height: 1.7;
}

.home-path-card--accent > p {
  color: #bdcbda;
}

.home-path-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.home-path-card dl > div {
  padding-top: var(--space-2);
  border-top: 1px solid #d1d8df;
}

.home-path-card--accent dl > div {
  border-color: rgba(255, 255, 255, 0.16);
}

.home-path-card dt {
  color: #071a32;
  font-size: 1.35rem;
  font-weight: 900;
}

.home-path-card--accent dt {
  color: #fff;
}

.home-path-card dd {
  margin: var(--space-1) 0 0;
  color: #7c899a;
  font-size: 0.72rem;
}

.home-path-card--accent dd {
  color: #aebed0;
}

.home-path-highlight {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin: var(--space-4) 0;
  padding-top: var(--space-2);
  border-top: 1px solid #d1d8df;
}

.home-path-highlight strong {
  color: #071a32;
  font-size: 1.9rem;
}

.home-path-highlight span {
  max-width: 170px;
  color: #7c899a;
  font-size: 0.75rem;
  line-height: 1.4;
}

.home-path-card nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}

.home-path-card nav a {
  padding: var(--space-2) var(--space-2);
  border: 1px solid #cbd3dc;
  border-radius: 999px;
  color: #24364d;
  font-size: 0.77rem;
  font-weight: 800;
}

.home-path-card--accent nav a {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.home-path-card nav a:hover,
.home-path-card nav a:focus-visible {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.home-city-section {
  color: #fff;
  background:
    radial-gradient(circle at 95% 5%, rgba(237, 24, 54, 0.2), transparent 22rem),
    #071a32;
}

.home-city-section .home-section-heading h2 {
  color: #fff;
}

.home-city-section .home-section-heading > p {
  color: #aebed0;
}

.home-city-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.home-city-directory article {
  min-height: 210px;
  padding: var(--space-3);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 160ms ease;
}

.home-city-directory article:hover {
  background: rgba(255, 255, 255, 0.06);
}

.home-city-directory article > span {
  color: #ff4a66;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.home-city-directory h3 {
  margin: var(--space-3) 0 var(--space-3);
  font-size: 1.35rem;
}

.home-city-directory nav {
  display: grid;
}

.home-city-directory a {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  color: #aebed0;
  font-size: 0.8rem;
  font-weight: 700;
}

.home-city-directory a:hover,
.home-city-directory a:focus-visible {
  color: #fff;
}

.home-city-directory b {
  color: #ff4a66;
}

.home-magazine {
  padding-block: var(--space-5);
  color: #17243a;
  background: #e8edf2;
}

.home-magazine-heading {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: end;
  margin-bottom: var(--space-4);
}

.home-magazine-heading h2 {
  max-width: 800px;
  margin: 0;
  color: #071a32;
  font-size: clamp(2.3rem, 4.6vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.home-magazine-heading > a {
  color: #b8102c;
  font-weight: 900;
}

.home-magazine-heading > a span {
  margin-left: var(--space-1);
}

.home-magazine-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: var(--space-4);
  padding-top: var(--space-3);
  border-top: 4px solid #071a32;
}

.home-magazine-lead {
  position: relative;
  display: flex;
  min-height: 500px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 75, 105, 0.88), transparent 37%),
    radial-gradient(circle at 0 100%, rgba(33, 117, 201, 0.5), transparent 44%),
    #071a32;
  isolation: isolate;
}

.home-magazine-lead::before {
  position: absolute;
  z-index: -1;
  top: 0.1em;
  right: -0.04em;
  content: "M";
  color: rgba(255, 255, 255, 0.065);
  font-size: min(32vw, 420px);
  font-weight: 900;
  line-height: 0.8;
}

.home-magazine-lead > p:first-child {
  margin: 0;
  color: #ff8094;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-magazine-lead > p:first-child span {
  margin-right: var(--space-2);
  padding: var(--space-1) var(--space-2);
  color: #fff;
  background: var(--red);
}

.home-magazine-lead h3 {
  max-width: 780px;
  margin: var(--space-3) 0;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.home-magazine-lead h3 a:hover {
  color: #ff7188;
}

.home-magazine-lead > p:nth-of-type(2) {
  max-width: 690px;
  margin: 0;
  color: #c6d4e2;
  line-height: 1.7;
}

.home-magazine-lead footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.home-magazine-lead footer span {
  color: #93a9bf;
  font-size: 0.78rem;
  font-weight: 700;
}

.home-magazine-lead footer a {
  color: #fff;
  font-weight: 900;
}

.home-magazine-list {
  display: grid;
}

.home-magazine-list article {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-bottom: 1px solid #c4ced8;
}

.home-magazine-list article:first-child {
  padding-top: 0;
}

.home-magazine-list article > span {
  color: #d31836;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.home-magazine-list p {
  margin: 0;
  color: #b8102c;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-magazine-list h3 {
  margin: var(--space-1) 0 var(--space-2);
  color: #071a32;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.25;
}

.home-magazine-list h3 a:hover {
  color: #b8102c;
}

.home-magazine-list small {
  color: #788698;
  font-weight: 700;
}

.home-about {
  padding-block: var(--space-5);
  color: #17243a;
  background: #fff;
}

.home-about > .container > header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: var(--space-4);
  align-items: end;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 4px solid #071a32;
}

.home-about > .container > header .home-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -var(--space-2);
}

.home-about > .container > header > p:last-child {
  margin: 0;
  color: #617084;
  font-size: 1.02rem;
  line-height: 1.7;
}

.home-about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.home-about-grid article {
  padding-top: var(--space-1);
}

.home-about-grid article > span {
  color: #d31836;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.home-about-grid h3 {
  margin: var(--space-3) 0 var(--space-2);
  color: #071a32;
  font-size: 1.35rem;
}

.home-about-grid p {
  margin: 0;
  color: #627084;
  line-height: 1.75;
}

.home-about-grid a {
  color: #b8102c;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-multi-search .autocomplete-anchor {
  --autocomplete-border-color: #d7dce5;
  --autocomplete-font-size: 16px;
  --autocomplete-horizontal-padding: var(--space-2);
}

.homepage .global-footer {
  background:
    radial-gradient(ellipse at 88% 8%, rgba(237, 24, 54, 0.16) 0, rgba(237, 24, 54, 0.05) 13%, transparent 27%),
    #020d1c;
}

@media (max-width: 1020px) {
  .homepage .study-header {
    position: relative;
    background: #020e1e;
  }

  .home-hero {
    height: 520px;
    padding: 0;
  }

  .home-hero-copy {
    width: 430px;
    padding-top: 220px;
  }

  .home-search-wrap {
    width: calc(100% - 40px);
  }

  .home-multi-search {
    grid-template-columns: 1fr 1.25fr 1fr auto;
  }

  .home-signal-strip,
  .home-city-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-signal-strip > div:nth-child(2) {
    border-right: 0;
  }

  .home-signal-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .home-path-grid,
  .home-magazine-layout,
  .home-about > .container > header {
    grid-template-columns: 1fr;
  }

  .home-path-card {
    min-height: 410px;
  }

  .home-about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-shell {
    width: 100%;
  }

  .home-hero {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 0;
    flex-direction: column;
    padding: 0;
    background: #08101e;
  }

  .home-hero > .home-hero-content {
    order: 2;
    width: 100%;
    height: auto;
  }

  .home-hero-copy {
    position: relative;
    width: 100%;
    max-width: none;
    padding: var(--space-3) var(--space-2);
    background: #08101e;
  }

  .home-hero h1 {
    font-size: clamp(2.1rem, 10vw, 2.75rem);
  }

  .home-headline-line {
    width: auto;
    white-space: normal;
  }

  .home-hero-copy > p:last-child {
    max-width: 360px;
    margin-top: 12px;
    font-size: 0.95rem;
  }

  .home-hero > .home-hero-visual {
    position: relative;
    order: 1;
    display: block;
    inset: auto;
    width: 100%;
    height: clamp(220px, 62vw, 260px);
    overflow: hidden;
    background: #08101e;
  }

  .home-hero-visual::after {
    background: linear-gradient(to bottom, transparent 72%, #08101e 100%);
  }

  .home-hero-visual img {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center 20%;
    opacity: 1;
    filter: none;
  }

  .home-search-section {
    padding-block: 0 var(--space-3);
  }

  .home-search-wrap {
    width: 100%;
    padding-inline: var(--space-2);
  }

  .home-multi-search {
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 16px;
    padding: var(--space-2);
  }

  .home-search-field,
  .home-search-field--channel {
    border-top: 1px solid #e2e8f0;
    border-left: 0;
    padding: 10px var(--space-1);
  }

  .home-search-field--channel {
    border-top: 0;
  }

  .home-multi-search button {
    width: 100%;
    margin-top: var(--space-1);
  }

  .home-signal-strip {
    grid-template-columns: 1fr;
    margin-top: var(--space-2);
  }

  .home-signal-strip > div {
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .home-signal-strip > div:last-child {
    border-bottom: 0;
  }

  .home-section-heading,
  .home-magazine-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-path-grid,
  .home-city-directory,
  .home-about-grid {
    grid-template-columns: 1fr;
  }

  .home-path-card {
    min-height: 0;
  }

  .home-path-card nav {
    margin-top: var(--space-4);
  }

  .home-city-directory article {
    min-height: 0;
  }

  .home-magazine-lead {
    min-height: 520px;
  }

  .home-magazine-lead footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-about > .container > header .home-eyebrow {
    margin-bottom: 0;
  }
}
