.home-featured,
.home-inspiration {
  display: none;
}

body:not(.is-home) #hero {
  display: none !important;
}

body.is-home {
  background: #fcfaf5;
}

html:has(body.is-home) {
  scroll-padding-top: 108px;
}

body.is-home .header {
  position: fixed;
  grid-template-rows: 96px;
  gap: 0 24px;
  height: auto;
  padding: 0 3.5%;
  border: 0;
  background: linear-gradient(#edf7fce8, #edf7fc00);
}

body.is-home.home-header-scrolled .header {
  background: #fcfaf5;
  box-shadow: 0 1px 0 #d6dacf;
}

body.is-home .navigation {
  gap: clamp(7px, 1.4vw, 24px);
}

body.is-home .header .navigation a,
body.is-home .header .brand {
  color: #244557;
}

body.is-home .header .navigation a[aria-current="page"] {
  font-weight: 800;
}

body.is-home .header .navigation a[aria-current="page"]::after {
  display: none;
}

body.is-home .page-shell {
  display: block;
  max-width: none;
}

body.is-home :is(.sidebar, #little-promises, #catalog-start) {
  display: none !important;
}

body.is-home main {
  padding: 0;
}

body.is-home #hero {
  --home-header-space: 100px;
  --home-hero-gutter: clamp(24px, 9vw, 164px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--home-header-space) minmax(0, 1fr) auto auto;
  isolation: isolate;
  width: 100%;
  height: auto;
  min-height: max(480px, 100svh);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #203241;
  box-shadow: none;
}

.home-hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

body.is-home #hero::before {
  content: none;
}

body.is-home #hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: auto;
  height: auto;
  border-radius: 0;
  background:
    linear-gradient(90deg, #0d182a9c, #14233a4d 49%, transparent 83%),
    linear-gradient(180deg, #14253936, transparent 48%, #101928a8);
  pointer-events: none;
}

body.is-home .home-hero-copy {
  position: relative;
  grid-row: 2;
  align-self: center;
  z-index: 1;
  width: min(1180px, calc(100% - var(--home-hero-gutter) * 2));
  max-width: none;
  margin: 0 auto;
  padding: clamp(10px, 2vh, 24px) 0;
  color: #fff;
}

body.is-home .home-hero-copy .eyebrow {
  width: auto;
  margin: 0 0 clamp(8px, 2vh, 18px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #f5f7ef;
  font-size: 11px;
  letter-spacing: 4px;
}

body.is-home #hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 5.1vw, 82px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.025em;
  white-space: normal;
  text-shadow: 0 2px 25px #112c3b65;
}

body.is-home #hero h1 > span {
  color: #e8f477;
}

.home-hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: clamp(13px, 2.8vh, 30px);
}

.home-hero-links a {
  padding: 11px 18px;
  border: 1px solid #ffffff80;
  border-radius: 999px;
  background: #ffffff12;
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  backdrop-filter: blur(8px);
}

.home-hero-links a:first-child {
  border-color: #e8f477;
  background: #e8f477;
  color: #203022;
  font-weight: 700;
}

.home-hero-foot {
  grid-row: 4;
  z-index: 1;
  justify-content: center;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 12px;
}

.home-scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 12px;
  color: #fffdf6;
  font-size: 12px;
  line-height: 1.25;
}

.home-scroll:hover {
  color: #e8f477;
}

body.is-home .home-featured {
  display: block;
  grid-row: 3;
  z-index: 1;
  width: min(100%, 1640px);
  min-width: 0;
  margin: 0 auto;
}

.home-case-window {
  --case-gap: clamp(10px, 1.45vw, 22px);
  padding-block: 5px 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.home-case-track,
.home-case-list {
  display: flex;
  gap: var(--case-gap);
  width: max-content;
}

.home-case-track {
  margin-inline: var(--case-gap);
}

.home-case-repeat {
  display: none;
}

.home-case-window[data-running="true"] {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.home-case-window[data-running="true"] .home-case-track {
  animation: home-cases-drift 64s linear infinite paused;
}

.home-case-window[data-running="true"] .home-case-repeat {
  display: flex;
}

.home-case-window[data-visible="true"] .home-case-track {
  animation-play-state: running;
}

.home-case-window:focus-within .home-case-track,
body:has(dialog[open]) .home-case-window .home-case-track {
  animation-play-state: paused;
}

@media (hover: hover) {
  .home-case-window:hover .home-case-track {
    animation-play-state: paused;
  }
}

@keyframes home-cases-drift {
  to { transform: translateX(calc(-50% - var(--case-gap) / 2)); }
}

.home-case-card {
  position: relative;
  flex: none;
  width: max(80px, min(12vw, 17svh, 170px));
  min-width: 0;
  padding: 0;
  border-radius: 10px;
  background: #263b46;
  color: #fff;
  text-align: left;
}

.home-case-card:focus-visible {
  outline: 2px solid #e8f477;
}

.home-case-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: inherit;
  background: #263b46;
  object-fit: cover;
}

.home-case-card > span {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 16px 8px 7px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(transparent, #0f1c2ae8);
  font-size: 11px;
  line-height: 1.25;
  opacity: 0;
}

.home-case-card:is(:hover, :focus-visible) > span {
  opacity: 1;
}

.home-case-card i {
  color: #fff;
  font-size: 14px;
  font-style: normal;
}

body.is-home .home-inspiration {
  display: block;
  margin: 0 6% clamp(30px, 5vw, 64px);
}

.home-inspiration-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid #dce8e2;
  border-radius: 24px;
  background: linear-gradient(115deg, #eef5f0, #fff9e7);
  color: #254959;
}

.home-inspiration-link:hover {
  border-color: #96b7a7;
}

.home-inspiration-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(23px, 2.5vw, 36px);
  line-height: 1.4;
}

.home-inspiration-copy h2 > span {
  display: inline-block;
  margin-left: .35em;
  color: #4d7461;
}

.home-inspiration-copy p {
  max-width: 660px;
  margin: 0;
  color: #546c66;
  font-size: 14px;
  line-height: 1.8;
}

.home-inspiration-action {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-radius: 999px;
  background: #254f4b;
  color: #fff;
  font-size: 13px;
}

.home-inspiration-action i {
  font-size: 16px;
  font-style: normal;
}

body.is-home .home-faq {
  width: 100%;
  margin: 0;
  padding: clamp(38px, 6vw, 80px) 6%;
  border: 0;
  background: #fcfaf5;
  color: #254959;
  scroll-margin-top: 0;
}

body.is-home .faq-inner {
  display: block;
  max-width: 1050px;
}

body.is-home .faq-tabs button[aria-selected="true"] {
  border-color: #e1c356;
  background: #fff0af;
  color: #254959;
}

body.is-home .footer {
  padding: 30px 6%;
  border-top: 1px solid #dbe4e4;
  background: #fcfaf5;
}

body.is-home .footer :is(.footer-brand, .footer-links a) {
  color: #345563;
}

body.is-home .footer :is(.footer-brand i, .footer-note) {
  border-color: #dbe4e4;
  color: #536f79;
}

@media (max-width: 1100px) {
  html:has(body.is-home) {
    scroll-padding-top: 126px;
  }

  body.is-home .header {
    display: grid;
    grid-template-rows: 62px 46px;
    column-gap: clamp(8px, 2vw, 18px);
    padding: 6px 4% 0;
  }

  body.is-home .header .brand { height: auto; }
  body.is-home .header .header-tools { margin: 0; justify-self: end; }

  body.is-home #hero {
    --home-header-space: 120px;
  }
}

@media (max-width: 620px) {
  body.is-home .header .brand { min-width: 0; font-size: 13px; }
  body.is-home .header .brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
  body.is-home .header .brand > span:last-child { overflow: hidden; text-overflow: ellipsis; }

  body.is-home #hero {
    --home-hero-gutter: 7vw;
    min-height: max(510px, 100svh);
  }

  .home-hero-video { object-position: 68% center; }

  body.is-home .home-hero-copy .eyebrow {
    margin-bottom: 16px;
    font-size: 9px;
    letter-spacing: 2px;
  }

  body.is-home #hero h1 {
    font-size: clamp(29px, 8.5vw, 46px);
    line-height: 1.18;
    letter-spacing: 1px;
  }

  .home-hero-links {
    gap: 11px;
    margin-top: 17px;
  }

  .home-hero-links a {
    padding: 12px 15px;
    font-size: 11px;
  }

  .home-case-card {
    width: clamp(77px, 25vw, 118px);
  }

  .home-inspiration-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    border-radius: 19px;
  }

  .home-inspiration-copy h2 > span {
    display: block;
    margin-left: 0;
  }
}
