/* ENITA homepage opening v2: silver-paper editorial reveal. */
.home-brand-intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  background: #e4e5e1;
  color: #181918;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 1280ms cubic-bezier(0.45, 0, 0.25, 1),
    visibility 0s linear 1280ms;
  will-change: opacity;
}

html.is-home-opening .home-brand-intro {
  opacity: 1;
  visibility: visible;
}

html.is-brand-intro-exiting .home-brand-intro {
  opacity: 0;
  visibility: hidden;
}

html.is-brand-intro-skipping .home-brand-intro {
  transition:
    opacity 500ms cubic-bezier(0.45, 0, 0.25, 1),
    visibility 0s linear 500ms;
}

.home-brand-intro[hidden] {
  display: none;
}

/* Keep the site shell present while the opening film plays. */
html.is-home-page.is-home-opening.is-brand-intro-playing:not(.is-menu-open):not(.is-nav-panel-open) .site-header {
  z-index: 90;
  border-bottom-color: rgba(85, 87, 84, 0.16);
  background: rgba(228, 229, 225, 0.9);
  backdrop-filter: blur(16px);
}

@media (max-width: 980px) {
  html.is-home-page.is-home-opening.is-brand-intro-playing:not(.is-menu-open):not(.is-nav-panel-open) .site-header {
    border-bottom-color: transparent;
    background: transparent;
    backdrop-filter: none;
  }
}

html.is-home-page.is-home-opening.is-brand-intro-playing:not(.is-menu-open):not(.is-nav-panel-open) .site-header .header-nav,
html.is-home-page.is-home-opening.is-brand-intro-playing:not(.is-menu-open):not(.is-nav-panel-open) .site-header .brand-logo,
html.is-home-page.is-home-opening.is-brand-intro-playing:not(.is-menu-open):not(.is-nav-panel-open) .site-header .header-utility {
  opacity: 1;
  transform: translateY(0);
}

html.is-home-page.is-home-opening.is-brand-intro-playing:not(.is-menu-open):not(.is-nav-panel-open) .site-header .brand-logo {
  opacity: 0.8;
}

html.is-home-page.is-home-opening.is-brand-intro-playing:not(.is-menu-open):not(.is-nav-panel-open) .site-header .menu-button,
html.is-home-page.is-home-opening.is-brand-intro-playing:not(.is-menu-open):not(.is-nav-panel-open) .site-header .header-nav > a,
html.is-home-page.is-home-opening.is-brand-intro-playing:not(.is-menu-open):not(.is-nav-panel-open) .site-header .header-utility a,
html.is-home-page.is-home-opening.is-brand-intro-playing:not(.is-menu-open):not(.is-nav-panel-open) .site-header .language-toggle {
  color: rgba(24, 25, 24, 0.82);
  text-shadow: none;
}

html.is-home-page.is-home-opening.is-brand-intro-playing:not(.is-menu-open):not(.is-nav-panel-open) .site-header .menu-button {
  opacity: 0.94;
}

html.is-home-page.is-home-opening.is-brand-intro-playing:not(.is-menu-open):not(.is-nav-panel-open) .site-header .header-nav > a,
html.is-home-page.is-home-opening.is-brand-intro-playing:not(.is-menu-open):not(.is-nav-panel-open) .site-header .header-utility a,
html.is-home-page.is-home-opening.is-brand-intro-playing:not(.is-menu-open):not(.is-nav-panel-open) .site-header .language-toggle {
  opacity: 0.78;
}

html.is-home-page.is-home-opening.is-brand-intro-playing:not(.is-menu-open):not(.is-nav-panel-open) .site-header .brand-logo img,
html.is-home-page.is-home-opening.is-brand-intro-playing:not(.is-menu-open):not(.is-nav-panel-open) .site-header .header-brand-mark img {
  opacity: 1;
  filter: none;
}

.home-brand-intro__paper {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.08%;
  background-color: #e4e5e1;
  background-image:
    linear-gradient(
      180deg,
      rgba(211, 213, 209, 0.28) 0%,
      rgba(228, 229, 225, 0) 28%,
      rgba(228, 229, 225, 0) 72%,
      rgba(211, 213, 209, 0.16) 100%
    ),
    url("../images/brand/enita-paper-grain-origin-panel-v20260831.png");
  background-repeat: no-repeat, repeat;
  background-position: center, 0 0;
  background-size: 100% 100%, 128px 128px;
  background-blend-mode: normal, soft-light;
  transform: translate3d(0, 0, 0);
}

.home-brand-intro__paper--left {
  left: 0;
}

.home-brand-intro__paper--right {
  right: 0;
  background-position: center, 64px 0;
}

/* Keep the paper join invisible while the English manifesto appears.
   The horizontal baseline remains the only editorial rule in this beat. */

html.is-brand-intro-exiting .home-brand-intro__paper--left {
  transform: translate3d(0, 0, 0);
}

html.is-brand-intro-exiting .home-brand-intro__paper--right {
  transform: translate3d(0, 0, 0);
}

html.is-brand-intro-skipping .home-brand-intro__paper {
  transition: none;
}

.home-brand-intro__stage {
  position: relative;
  z-index: 1;
  width: min(84vw, 1180px);
  height: min(68vh, 640px);
  min-height: 400px;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 520ms cubic-bezier(0.4, 0, 1, 1),
    transform 520ms cubic-bezier(0.4, 0, 1, 1);
}

html.is-brand-intro-exiting .home-brand-intro__stage {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

html.is-brand-intro-skipping .home-brand-intro__stage {
  transition: none;
}

.home-brand-intro__manifesto,
.home-brand-intro__brand {
  position: absolute;
  inset: 0;
}

.home-brand-intro__manifesto {
  display: grid;
  align-content: center;
}

.home-brand-intro__folio {
  position: absolute;
  top: 9%;
  left: 0;
  color: rgba(24, 25, 24, 0.52);
  font-family: var(--font-latin, "Avenir Next", Arial, sans-serif);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.24em;
  opacity: 0;
}

.home-brand-intro__statement {
  display: grid;
  justify-self: center;
  width: min(76vw, 980px);
  margin: 0;
  font-family: Didot, "Bodoni 72", "Iowan Old Style", "Times New Roman", serif;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.home-brand-intro__line {
  display: block;
  overflow: hidden;
  padding: 0 0.06em 0.08em 0;
}

.home-brand-intro__line > span {
  display: block;
  opacity: 0;
  transform: translateY(116%);
}

.home-brand-intro__line--primary {
  font-size: clamp(50px, 5.6vw, 86px);
}

.home-brand-intro__line--accent {
  margin-left: clamp(72px, 9vw, 180px);
  font-size: clamp(66px, 7.4vw, 112px);
  font-style: italic;
}

.home-brand-intro__baseline {
  display: block;
  width: min(58vw, 720px);
  height: 1px;
  margin: clamp(38px, 5vh, 58px) auto 0;
  background: rgba(85, 87, 84, 0.34);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

.home-brand-intro__brand {
  display: grid;
  place-items: center;
}

.home-brand-intro__brand .home-brand-intro__folio {
  left: auto;
  right: 0;
}

.home-brand-intro__lockup {
  position: relative;
  z-index: 1;
  width: clamp(292px, 32vw, 470px);
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(20px) scale(0.982);
}

.home-brand-intro__lockup img {
  width: 100%;
  height: auto;
  opacity: 0.92;
  filter: grayscale(1) brightness(0.56) contrast(1.08);
}

.home-brand-intro__lockup figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 20px);
  margin-top: clamp(14px, 1.8vh, 22px);
  color: rgba(85, 87, 84, 0.88);
  font-family: var(--font-latin, "Avenir Next", Arial, sans-serif);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.34em;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
}

.home-brand-intro__lockup figcaption::before,
.home-brand-intro__lockup figcaption::after {
  width: clamp(30px, 4vw, 58px);
  height: 1px;
  background: rgba(85, 87, 84, 0.32);
  content: "";
}

html.is-brand-intro-playing .home-brand-intro__manifesto > .home-brand-intro__folio {
  animation: home-brand-intro-folio-in 720ms 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.is-brand-intro-playing .home-brand-intro__line--primary > span {
  animation: home-brand-intro-copy-in 1260ms 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.is-brand-intro-playing .home-brand-intro__line--accent > span {
  animation: home-brand-intro-copy-in 1460ms 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.is-brand-intro-playing .home-brand-intro__baseline {
  animation: home-brand-intro-rule-in 1300ms 1200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.is-brand-intro-playing .home-brand-intro__manifesto {
  animation: home-brand-intro-manifesto-out 900ms 3100ms cubic-bezier(0.4, 0, 1, 1) both;
}

html.is-brand-intro-playing .home-brand-intro__brand > .home-brand-intro__folio {
  animation: home-brand-intro-folio-in 720ms 3780ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.is-brand-intro-playing .home-brand-intro__lockup {
  animation: home-brand-intro-lockup-in 1380ms 3980ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.is-brand-intro-playing .home-brand-intro__lockup figcaption {
  animation: home-brand-intro-cosme-in 920ms 4660ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home-hero-carousel__track {
  transform: scale(1);
  transform-origin: center;
  transition: transform 1460ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

html.is-brand-intro-playing:not(.is-brand-intro-exiting) .home-hero-carousel__track {
  transform: scale(1.022);
}

html.is-brand-intro-exiting .home-hero-carousel__track,
html.is-brand-intro-complete .home-hero-carousel__track {
  transform: scale(1);
}

@keyframes home-brand-intro-folio-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-brand-intro-copy-in {
  from {
    opacity: 0;
    transform: translateY(116%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-brand-intro-rule-in {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes home-brand-intro-manifesto-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-18px);
  }
}

@keyframes home-brand-intro-lockup-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.982);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes home-brand-intro-cosme-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .home-brand-intro__stage {
    width: calc(100vw - 36px);
    height: min(64vh, 520px);
    min-height: 360px;
  }

  .home-brand-intro__folio {
    top: 5%;
    font-size: 9px;
  }

  .home-brand-intro__statement {
    width: 100%;
  }

  .home-brand-intro__line--primary {
    font-size: clamp(38px, 10.8vw, 46px);
  }

  .home-brand-intro__line--accent {
    margin-left: 20px;
    font-size: clamp(48px, 13.7vw, 58px);
  }

  .home-brand-intro__baseline {
    width: calc(100% - 38px);
    margin-top: 38px;
  }

  .home-brand-intro__lockup {
    width: min(79vw, 310px);
    padding: 0;
  }

  .home-brand-intro__lockup figcaption {
    margin-top: 16px;
    font-size: 9px;
    letter-spacing: 0.28em;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .home-brand-intro__stage {
    width: min(80vw, 880px);
    height: 74vh;
    min-height: 240px;
  }

  .home-brand-intro__folio {
    top: 0;
  }

  .home-brand-intro__line--primary {
    font-size: clamp(32px, 6vw, 48px);
  }

  .home-brand-intro__line--accent {
    font-size: clamp(42px, 8vw, 64px);
  }

  .home-brand-intro__baseline {
    margin-top: 24px;
  }

  .home-brand-intro__lockup {
    width: min(34vw, 240px);
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-brand-intro,
  html.is-home-opening .home-brand-intro {
    display: none;
  }

  .home-hero-carousel__track {
    transform: none;
    transition: none;
  }
}
