/* Keep the hero and mobile menu on the same brand background. */
body.home-page { --home-deep: #191970; }
.home-hero.hero { background: var(--home-deep); }
.section-number-logo {
  display: block;
  flex-shrink: 0;
  width: 39.6px;
  height: 37.8px;
  object-fit: contain;
}

/* The numeral is above the artwork's center because of the magnifier handle. */
.section-number-logo,
.mobile-menu-section-mark {
  transform: translateY(10%);
}

.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* Desktop home and shared visibility defaults. Mobile overrides: home-mobile.css. */
.desktop-only,
.home-section-nav {
  display: none;
}

.media-section,
.media-columns {
  display: contents;
}

@media (max-width: 839px) {
  .home-hero.hero {
    margin-bottom: 24px;
    padding-bottom: 0;
  }

  .agalingo-section {
    padding-bottom: 34px;
  }
}

@media (min-width: 840px) {
  body.home-page {
    --home-ink: #ffffff;
    --home-soft: #c6c6e1;
    --home-line: rgba(255, 255, 255, 0.25);
    background: #191970;
    color: var(--home-ink);
  }

  body.home-page::before {
    content: none;
    animation: none;
  }

  body.home-page > .page-loader {
    background: #191970;
  }

  .desktop-only {
    display: block;
  }

  body.home-page > #site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    pointer-events: none;
    background: #ffffff;
    border-bottom: 1px solid #171790;
  }

  body.home-page .nav {
    width: 100%;
    min-height: 76px;
    padding: 12px clamp(32px, 4.2vw, 72px);
    margin: 0;
    pointer-events: auto;
  }

  body.home-page .logo-img {
    width: 102px;
    height: auto;
    filter: none;
  }

  .home-section-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
  }

  .home-section-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 14px;
    border-bottom: 1px solid transparent;
    color: #191970;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
  }

  .home-section-nav a:hover,
  .home-section-nav a[aria-current="location"] {
    border-color: #191970;
  }

  .home-content {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .home-hero.hero {
    grid-template-columns: 0.9fr 1.1fr;
    column-gap: clamp(32px, 4.5vw, 80px);
    row-gap: 0;
    align-content: center;
    align-items: start;
    width: 100%;
    min-height: max(760px, 100svh);
    margin: 0;
    padding: 110px clamp(32px, 4.2vw, 72px) 94px clamp(40px, 7.5vw, 144px);
  }

  .home-eyebrow {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0 0 34px;
    color: var(--home-soft);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.18em;
  }

  .home-eyebrow > span {
    color: #ffffff;
    font-size: 15px;
    letter-spacing: 0.03em;
  }

  .home-about {
    display: contents;
  }

  .home-about > .home-eyebrow {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .home-about .hero-title {
    grid-column: 1;
    grid-row: 2;
    margin: 0 0 28px;
    font-size: clamp(22px, 2.65vw, 44px);
    white-space: nowrap;
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: 0.08em;
    word-break: keep-all;
  }

  .home-about .hero-title br {
    display: none;
  }

  .home-about .hero-title br:first-of-type {
    display: inline;
  }

  .home-about .highlight {
    background: none;
    color: inherit;
  }

  .home-about .social-links {
    grid-column: 1;
    grid-row: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: none;
    margin: 0 0 24px;
  }

  .home-about .social-links .btn {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--home-line);
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
    font-size: 14px;
    font-weight: 500;
  }

  .home-about .social-links .btn:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }

  .home-about .lead {
    grid-column: 1;
    grid-row: 3;
    display: block;
    max-width: 540px;
    margin: 0 0 36px;
    color: var(--home-soft);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.95;
    letter-spacing: 0.04em;
  }

  .home-actions {
    grid-column: 1;
    grid-row: 5;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 24px);
    width: 100%;
    max-width: 540px;
  }

  .home-actions a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 58px;
    padding: 12px 0;
    border-bottom: 1px solid var(--home-line);
    color: #ffffff;
    font-size: clamp(12px, 1.05vw, 15px);
    letter-spacing: 0.05em;
    transition: border-color 0.2s ease;
  }

  .home-actions a > span:last-child {
    font-size: 21px;
    font-weight: 400;
  }

  .home-actions a:hover {
    border-color: #ffffff;
  }

  .hero-gallery {
    grid-column: 2;
    grid-row: 2 / 6;
    min-width: 0;
    align-self: start;
    justify-self: center;
    width: 86%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 42px 28px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    color: #191970;
    transition: opacity 0.7s ease, visibility 0.7s ease;
  }

  .hero-slide.is-active {
    visibility: visible;
    opacity: 1;
  }

  .hero-slide--image {
    padding: 0;
    background: transparent;
  }

  .hero-slide--image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .home-scroll {
    position: absolute;
    left: clamp(40px, 7.5vw, 144px);
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--home-soft);
    font-size: 15px;
    letter-spacing: 0.17em;
  }

  .home-scroll > span:last-child {
    font-size: 26px;
  }

  #one,
  #two,
  #three {
    scroll-margin-top: 77px;
    outline: none;
  }

  .agalingo-section {
    --home-soft: #4d5d43;
    --home-line: rgba(25, 25, 112, 0.25);
    background: #e6ebd9;
    color: #191970;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: clamp(32px, 4.5vw, 80px);
    min-height: 720px;
    padding: 100px clamp(32px, 4.2vw, 72px) 100px clamp(40px, 7.5vw, 144px);
    border-top: 1px solid var(--home-line);
  }

  .agalingo-section .home-eyebrow > span {
    color: #191970;
  }

  .agalingo-play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 64px;
    padding: 16px 26px;
    border: 2px solid #287a32;
    border-radius: 18px;
    background: #b7eb55;
    color: #183f20;
    box-shadow: 0 6px 0 #287a32;
    font-size: 18px;
    font-weight: 800;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  }

  .agalingo-play-button__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    font-size: 15px;
  }

  .agalingo-play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #287a32;
    background: #c7f471;
  }

  .agalingo-play-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #287a32;
  }

  .agalingo-intro h2 {
    margin: 0 0 26px;
    font-size: clamp(1.85rem, 3vw, 3rem);
    font-weight: 600;
    line-height: 1.8;
    letter-spacing: 0.1em;
  }

  .agalingo-intro > p:not(.home-eyebrow) {
    margin: 0 0 32px;
    color: var(--home-soft);
    font-size: 15px;
    line-height: 2.3;
    letter-spacing: 0.04em;
  }

  .agalingo-feature-block {
    transform: translateX(-24px);
    min-height: 480px;
    display: grid;
    place-items: center;
    padding: 0;
    background: #e6ebd9;
  }

  .agalingo-feature__kicker,
  .agalingo-feature__text,
  .agalingo-feature__button {
    display: none;
  }

  .agalingo-feature {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  .agalingo-feature__visual {
    display: block;
    width: 100%;
  }

  .agalingo-feature__icon {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
  }

  .media-section {
    --home-ink: #191970;
    --home-soft: #535d70;
    --home-line: rgba(25, 25, 112, 0.2);
    display: block;
    background: #ffffff;
    color: var(--home-ink);
    padding: 100px clamp(40px, 7.5vw, 144px) 120px;
    border-top: 1px solid var(--home-line);
  }

  .media-section .home-eyebrow > span {
    color: var(--home-ink);
  }

  .media-section__intro {
    margin-bottom: 30px;
  }

  .media-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
  }

  .home-section {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .home-section .section-header {
    min-height: 100px;
    margin: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--home-line);
  }

  .home-section .section-kicker {
    display: flex;
    align-items: center;
    height: 60px;
    margin: 0 0 10px;
  }

  .mobile-brand-name {
    display: none;
  }

  .media-brand--note {
    width: 148px;
    height: auto;
    margin-left: -16px;
  }

  .media-brand--youtube {
    width: 136px;
    height: auto;
  }

  .home-section .section-title {
    color: var(--home-soft);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.1em;
  }

  .home-section .section-link {
    color: var(--home-ink);
    font-size: 14px;
    font-weight: 500;
  }

  .home-section .note-grid,
  .home-section .youtube-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .home-section .note-card,
  .home-section .youtube-card {
    min-height: 150px;
    padding: 24px 0;
    border: 0;
    border-bottom: 1px solid var(--home-line);
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    transition: border-color 0.2s ease;
  }

  .home-section .note-card:hover,
  .home-section .youtube-card:hover {
    border-color: var(--home-ink);
    box-shadow: none;
    transform: none;
  }

  .home-section .note-date,
  .home-section .youtube-date {
    margin-bottom: 8px;
    color: var(--home-soft);
    font-size: 13px;
    font-weight: 400;
  }

  .home-section .note-title,
  .home-section .youtube-title {
    color: var(--home-ink);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.9;
    letter-spacing: 0.03em;
    overflow-wrap: anywhere;
  }

  .home-section .note-read-more {
    padding-top: 16px;
    color: var(--home-soft);
    font-size: 13px;
    font-weight: 400;
  }

  .home-section .youtube-card {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    gap: 20px;
    align-items: center;
  }

  body.home-page .home-section .youtube-thumb-wrap {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }

  .home-section .youtube-card-body {
    min-width: 0;
    padding: 0;
  }

  body.home-page .home-section .youtube-thumb-wrap.has-thumbnail-error {
    background: #13135a url("/images/brands/youtube-logo-white.png") center / 68% auto no-repeat;
  }

  .home-section .has-thumbnail-error .youtube-thumb {
    visibility: hidden;
  }

  .home-section .media-load-more {
    font-size: 15px;
  }

  .home-section .content-loading,
  .home-section .content-empty {
    margin-top: 24px;
    background: transparent;
    border: 1px solid var(--home-line);
    border-radius: 0;
    color: var(--home-soft);
    font-size: 15px;
    backdrop-filter: none;
  }

  body.home-page .footer {
    width: calc(100% - 2 * clamp(40px, 7.5vw, 144px));
    padding: 32px 0;
    border-top: 1px solid var(--home-line);
    flex-direction: row;
    justify-content: space-between;
    color: var(--home-soft);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
  }

  body.home-page a:focus-visible,
  body.home-page button:focus-visible,
  .hero-gallery:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 5px;
  }

  body.home-page .nav a:focus-visible,
  body.home-page .nav button:focus-visible,
  .agalingo-section a:focus-visible,
  .media-section a:focus-visible {
    outline-color: #191970;
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .agalingo-play-button {
      transition: none;
    }
  }
}
