.ev-home {
  --ink: #242c25;
  --paper: #f4ecdc;
  --cream: #eee3d0;
  --green: #22392d;
  --red: #9e3027;
  --gold: #dcb481;
  --line: #3c332744;
  --edge: clamp(20px, 5vw, 76px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

.home-header {
  position: relative;
  isolation: isolate;
  min-height: 80px;
  padding: 12px var(--edge);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.home-header .wordmark,
.menu-sheet .wordmark {
  grid-column: 2;
  font-size: clamp(31px, 3.45vw, 48px);
}

.site-menu,
.header-link,
.sheet-close,
.motion-button {
  border: 1px solid currentColor;
  border-radius: 999px;
  min-height: 46px;
  display: inline-flex;
  gap: .65em;
  width: max-content;
  align-items: center;
  justify-content: center;
  color: inherit;
  padding: 8px 17px;
  background: transparent;
  font-size: .78rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}

.site-menu[hidden],
.helmet-story [data-scene][hidden] {
  display: none;
}

.site-menu {
  grid-column: 1;
  grid-row: 1;
  padding-left: 7px;
  cursor: pointer;
}

.menu-lines {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.header-link {
  grid-column: 3;
  justify-self: end;
}

svg.lucide {
  flex-shrink: 0;
  vertical-align: middle;
}

.site-menu:hover,
.header-link:hover,
.sheet-close:hover,
.motion-button:hover {
  background: var(--ink);
  color: var(--paper);
}

.menu-sheet {
  max-width: none;
  max-height: 100%;
  width: min(700px, 100%);
  height: 100%;
  inset: 0 auto 0 0;
  margin: 0;
  padding: clamp(24px, 5.6vw, 68px);
  border: 0;
  background: var(--paper);
  color: var(--ink);
}

.menu-sheet[open] {
  animation: menu-open .42s var(--ease) both;
}

.menu-sheet::backdrop {
  background: #242a23a8;
}

@keyframes menu-open {
  from { transform: translateX(-2rem); opacity: .4; }
  to { transform: none; opacity: 1; }
}

.menu-sheet__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.sheet-close {
  cursor: pointer;
}

.menu-sheet__nav {
  display: grid;
  margin-top: clamp(45px, 9svh, 120px);
}

.menu-sheet__nav a {
  display: flex;
  justify-content: space-between;
  padding: .21em 0;
  border-block-start: 1px solid var(--line);
  align-items: center;
  font: 400 clamp(32px, 7vw, 85px)/1.05 var(--display);
  text-decoration: none;
}

.menu-sheet__nav a:last-child {
  border-block-end: 1px solid var(--line);
}

.menu-sheet__nav a:hover {
  color: var(--red);
}

.menu-sheet__nav a svg {
  width: clamp(18px, 5vw, 36px);
  height: auto;
}

.opening {
  --intro-progress: 0;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: clamp(600px, calc(100svh - 80px), 970px);
  padding: clamp(41px, 8svh, 82px) var(--edge) clamp(25px, 6svh, 56px);
  overflow: clip;
  text-align: center;
  background:
    radial-gradient(ellipse at 65% 43%, #fff8e8 0, #f4ead900 63%),
    linear-gradient(158deg, #f4ead9 0%, #eee1ca 59%, #dfc7a7 100%);
}

.opening__field {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: clip;
  pointer-events: none;
}

.opening__ring {
  position: absolute;
  inset: 26% -9% auto -4%;
  height: 82%;
  border: 1px solid #695b435e;
  border-radius: 50%;
  box-shadow: 0 0 0 18px #695b4313, 0 0 0 55px #695b430c;
  transform: rotate(calc(-15deg + 6deg * var(--intro-progress))) translateY(calc(4rem * var(--intro-progress)));
}

.opening__stripe {
  position: absolute;
  inset: -10% auto -10% 75%;
  width: clamp(6px, 1.3vw, 20px);
  background: linear-gradient(90deg, #345641 0 33%, #fff4d7 33% 66%, #a33125 66%);
  opacity: .3;
  transform: skewX(-14deg) translateX(calc(-34px * var(--intro-progress)));
}

.opening__eyebrow {
  color: var(--red);
  z-index: 2;
}

.opening h1 {
  position: relative;
  z-index: 0;
  align-self: start;
  display: grid;
  margin: clamp(12px, 2.6svh, 27px) 0 0;
  font: 400 1rem/.82 var(--display);
  color: var(--green);
  transform: translateY(calc(-1.5rem * var(--intro-progress)));
}

.opening h1 span {
  margin-bottom: .55em;
  font-family: Inter, sans-serif;
  font-size: .74em;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.opening h1 strong {
  font-size: clamp(106px, 19.05vw, 328px);
  letter-spacing: -.021em;
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
}

.opening__product {
  position: absolute;
  z-index: 1;
  top: clamp(125px, 19%, 184px);
  right: clamp(18px, 15.5vw, 295px);
  bottom: clamp(51px, 8%, 100px);
  width: min(59vw, 870px);
  transform: translate(calc(-40px * var(--intro-progress)), calc(-66px * var(--intro-progress))) rotate(calc(-5deg * var(--intro-progress)));
  transform-origin: 53% 60%;
  pointer-events: none;
}

.opening__product img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(16px 27px 26px #31271958);
}

.motion-enabled .opening__product img {
  animation: helmet-enter 1.05s var(--ease) both;
}

@keyframes helmet-enter {
  from { opacity: .45; transform: translateY(22px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.opening__foot {
  z-index: 2;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
}

.opening__foot .motion-button {
  background: var(--paper);
}

.opening__foot .motion-button:hover {
  background: var(--ink);
  color: var(--paper);
}

.concept-label {
  font-size: .67rem;
  letter-spacing: .14em;
  font-weight: 780;
  text-transform: uppercase;
}

/* The 3 images and articles share a grid without JavaScript. */
.helmet-story {
  --story-progress: 0;
  --scene-progress: 0;
  background: #211d18;
  color: var(--paper);
}

.helmet-story__frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.helmet-story__media img {
  aspect-ratio: 3/2;
  object-fit: cover;
}

.helmet-story__body {
  padding: clamp(40px, 7.5vw, 116px) var(--edge);
}

.helmet-story__body > .kicker {
  color: var(--gold);
  font: 780 .75rem/1.3 Inter, sans-serif;
  letter-spacing: .14em;
}

.helmet-story__slides article + article {
  margin-top: clamp(32px, 4vw, 70px);
}

.helmet-story__slides h3 {
  margin: 14px 0;
  max-width: 12ch;
  font: 400 clamp(45px, 7vw, 117px)/.85 var(--display);
  text-transform: uppercase;
}

.helmet-story__slides p {
  max-width: 36ch;
  color: #f7ead8;
}

.helmet-story__slides a {
  display: inline-block;
  margin-top: 16px;
  font-size: .86rem;
  font-weight: 750;
}

.motion-enabled .helmet-story {
  height: 264vh;
  height: 264svh;
}

.motion-enabled .helmet-story__frame {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.motion-enabled .helmet-story__media,
.motion-enabled .helmet-story__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.motion-enabled .helmet-story__media {
  z-index: -1;
}

.motion-enabled .helmet-story__frame::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #1a1714f5 0%, #21180ee9 20%, #1d190fa6 37%, #1b171675 49%, #15151121 64%, #15151100 83%);
  pointer-events: none;
}

.motion-enabled .helmet-story__media img {
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 49%;
  opacity: 0;
  transform: scale(calc(1.025 + .075 * var(--scene-progress)));
  transform-origin: 69% center;
  transition: opacity .55s ease;
}

.motion-enabled .helmet-story[data-active="0"] .helmet-story__media img:nth-child(1),
.motion-enabled .helmet-story[data-active="1"] .helmet-story__media img:nth-child(2),
.motion-enabled .helmet-story[data-active="2"] .helmet-story__media img:nth-child(3) {
  opacity: 1;
}

.motion-enabled .helmet-story__body {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-block: 35px calc(clamp(110px, 19svh, 190px) + var(--story-offer-offset, 0px));
}

.motion-enabled .helmet-story__slides article + article {
  margin-top: 0;
}

.motion-enabled .helmet-story__slides article:not([hidden]) {
  animation: scene-text .36s var(--ease) both;
}

@keyframes scene-text {
  from { opacity: .45; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.story-progress {
  display: none;
}

.motion-enabled .story-progress {
  position: absolute;
  bottom: calc(clamp(25px, 6svh, 58px) + var(--story-offer-offset, 0px));
  left: var(--edge);
  right: var(--edge);
  display: block;
  height: 2px;
  background: #f4ecdc66;
}

.story-progress::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--paper);
  transform: scaleX(var(--story-progress));
  transform-origin: left center;
}

.home-studio {
  padding: clamp(50px, 8.5vw, 136px) 0 clamp(50px, 8.5vw, 130px);
  color: var(--paper);
  background:
    radial-gradient(ellipse at 52% 60%, #3c5040 0%, #22382d 70%, #20332a 100%);
}

.studio-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(170px, 26ch);
  gap: clamp(20px, 5vw, 70px);
  align-items: end;
}

.studio-header .kicker,
.launch-preview .kicker {
  color: var(--gold);
}

.studio-header h2,
.launch-preview h2 {
  margin: 14px 0;
}

.studio-header > p {
  font-size: .94rem;
  margin-bottom: 12px;
}

.studio-view {
  width: min(100%, 1600px);
  margin: clamp(20px, 4vw, 50px) auto 0;
  text-align: center;
}

.studio-view iframe {
  display: block;
  width: 100%;
  height: clamp(340px, 60vw, 815px);
  border: 0;
  background: transparent;
}

.studio-view figcaption {
  font-size: .66rem;
  letter-spacing: .13em;
  color: #e7d6be;
}

.studio-film {
  margin-top: 24px;
}

.studio-film summary {
  min-height: 47px;
  padding: 11px 0;
  border-block-start: 1px solid #f4ecdc60;
  cursor: pointer;
  font-weight: 650;
}

.studio-film video {
  display: block;
  width: 100%;
  height: auto;
  margin-block: 8px;
  background: #242b24;
}

.studio-film a {
  display: inline-block;
  padding-block: 8px;
  font-size: .86rem;
}

.runout {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(650px, 70svh);
  padding: clamp(38px, 7vw, 120px) var(--edge);
  background: #5a3123;
  color: #fff4e5;
  overflow: clip;
}

.runout figure,
.runout img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.runout figure {
  z-index: -2;
}

.runout img {
  object-fit: cover;
  object-position: 65% 50%;
}

.runout::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #25191ade 0%, #271d16a1 34%, #28180f22 62%, transparent 84%), linear-gradient(0deg, #271d1677 0%, transparent 65%);
}

.runout__content p {
  margin: 15px 0 19px;
}

.runout .motion-button {
  color: #fff4e5;
  background: #25191a80;
}

.runout .motion-button:hover {
  background: #fff4e5;
  color: var(--ink);
}

.launch-preview {
  padding-block: clamp(55px, 9vw, 140px);
  background: var(--cream);
}

.launch-preview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  gap: clamp(28px, 7vw, 110px);
  align-items: center;
}

.launch-preview figure img {
  aspect-ratio: 1.23;
  object-fit: cover;
}

.launch-preview figcaption {
  margin-top: 8px;
  font-size: .67rem;
}

.launch-preview .kicker {
  color: var(--red);
}

.launch-preview h2 {
  font-size: clamp(47px, 7.2vw, 111px);
}

.launch-preview p {
  max-width: 44ch;
}

.launch-price {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0 17px;
}

.launch-price strong {
  color: var(--red);
  font: 400 clamp(44px, 6vw, 77px)/.92 var(--display);
}

.launch-price span {
  font-size: .84rem;
  font-weight: 700;
}

.ev-home .questions {
  background: var(--paper);
}

.ev-home .footer {
  background: var(--green);
}

@media (max-width: 900px) {
  .opening h1 strong {
    font-size: clamp(75px, 19.05vw, 180px);
  }

  .opening__product {
    right: 8%;
    width: min(76vw, 640px);
  }

  .motion-enabled .helmet-story__media img {
    object-position: 57% center;
  }
}

@media (max-width: 700px) {
  .home-header {
    min-height: 67px;
    padding-block: 9px;
    gap: 9px;
  }

  .site-menu,
  .header-link {
    min-height: 44px;
    font-size: .74rem;
  }

  .site-menu {
    padding: 4px 7px;
  }

  .site-menu .menu-lines {
    width: 29px;
    height: 29px;
  }

  .header-link {
    width: 100%;
    max-width: 116px;
    padding: 5px 8px;
    white-space: normal;
    text-align: center;
  }

  .opening {
    min-height: max(483px, calc(91svh - 67px));
    padding-block: clamp(35px, 8svh, 65px) 24px;
  }

  .opening__eyebrow {
    font-size: .67rem;
  }

  .opening h1 strong {
    font-size: clamp(65px, 18.8vw, 132px);
  }

  .opening__product {
    top: 28%;
    right: 0;
    bottom: 11%;
    width: 96%;
    transform: translateY(calc(-41px * var(--intro-progress))) rotate(calc(-4deg * var(--intro-progress)));
  }

  .opening__product img {
    object-position: center;
    filter: drop-shadow(8px 15px 16px #31271948);
  }

  .opening__ring {
    inset: 25% -34% auto -26%;
    height: 72%;
  }

  .opening__foot .motion-button {
    min-height: 45px;
  }

  .concept-label {
    font-size: .59rem;
  }

  .helmet-story__frame,
  .studio-header,
  .launch-preview__grid {
    grid-template-columns: 1fr;
  }

  .helmet-story:not([data-active]) .helmet-story__media img:nth-child(n+2) {
    display: none;
  }

  .motion-enabled .helmet-story {
    height: 238vh;
    height: 238svh;
  }

  .motion-enabled .helmet-story__frame {
    align-items: end;
  }

  .motion-enabled .helmet-story__frame::after {
    background: linear-gradient(0deg, #1b1918 0%, #1b1918eb 26%, #20181295 45%, #20181224 65%, transparent 83%);
  }

  .motion-enabled .helmet-story__media img {
    height: 76%;
    object-position: 52% top;
  }

  .motion-enabled .helmet-story__media img:nth-child(2) {
    object-position: 66% top;
  }

  .motion-enabled .helmet-story__media img:nth-child(3) {
    object-fit: contain;
    object-position: center 22%;
    transform: none;
  }

  .motion-enabled .helmet-story__body {
    padding: 12px var(--edge) calc(clamp(96px, 16svh, 138px) + var(--story-offer-offset, 0px));
  }

  .helmet-story__slides h3 {
    font-size: clamp(44px, 10.5vw, 70px);
    margin: 10px 0;
  }

  .helmet-story__slides p {
    font-size: .92rem;
    line-height: 1.45;
  }

  .motion-enabled .story-progress {
    bottom: calc(21px + var(--story-offer-offset, 0px));
  }

  .studio-header {
    gap: 8px;
  }

  .studio-header > p {
    max-width: 42ch;
  }

  .studio-view iframe {
    min-height: 340px;
    height: min(530px, 85vw);
  }

  .runout {
    min-height: max(390px, 58svh);
  }

  .runout::after {
    background: linear-gradient(0deg, #25191a 0%, #25191ad0 26%, #28180f20 74%, transparent);
  }
}

@media (max-width: 355px) {
  .site-menu {
    font-size: .69rem;
  }

  .header-link {
    font-size: .68rem;
  }

  .opening h1 strong {
    font-size: 17.1vw;
  }

  .opening__foot .motion-button {
    padding-inline: 11px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .motion-enabled .helmet-story__body {
    padding-bottom: calc(76px + var(--story-offer-offset, 0px));
  }

  .helmet-story__slides h3 {
    font-size: min(12svh, 60px);
  }

  .motion-enabled .story-progress {
    bottom: calc(11px + var(--story-offer-offset, 0px));
  }
}

@media (max-width: 767px) {
  .ev-home:has(.scroll-offer-bar:not([hidden])) .helmet-story {
    --story-offer-offset: calc(68px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening h1,
  .opening__product,
  .opening__stripe,
  .opening__ring {
    transform: none;
  }

  .motion-enabled .helmet-story {
    height: auto;
  }

  .motion-enabled .helmet-story__frame {
    position: relative;
    height: auto;
  }
}

.ev-home .motion-button.shop-action {
  background: #8d241f;
  color: #fff7ef;
  border-color: #8d241f;
  min-height: 49px;
}
.ev-home .motion-button.shop-action:hover {
  background: #68211d;
  border-color: #68211d;
}
.launch-preview .shop-action { margin-top: 16px; }

/* Evaristi entry animation */
.entry-intro {
  --entry-progress: 0%;
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  color: var(--green);
  background:
    radial-gradient(ellipse at 50% 43%, #fff5e1 0 12%, #f4ebd940 62%),
    linear-gradient(155deg, #f7ebd8, #e4ceaa);
  animation: entry-failsafe 1ms linear 1.4s forwards;
}

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

.entry-intro.is-leaving {
  animation: entry-reveal 280ms cubic-bezier(.55, .12, .35, 1) both;
}

.entry-intro__art {
  position: relative;
  width: min(74vw, 330px);
  display: grid;
  justify-items: center;
  gap: clamp(14px, 3.8svh, 29px);
}

.entry-intro__name {
  color: var(--green);
  font: 400 clamp(24px, 5vw, 36px)/1 var(--display);
  letter-spacing: .27em;
  padding-left: .27em;
}

.entry-intro__emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: min(64vw, 220px, 36svh);
  aspect-ratio: 1;
  border: 1px solid #8a73514d;
  border-radius: 50%;
  background: #f4e9d4;
  box-shadow: 0 0 0 8px #6451380c, 0 14px 46px #573d281f;
}

.entry-intro__emblem::after {
  position: absolute;
  inset: 7px;
  border: 1px solid #8a735139;
  border-radius: inherit;
  content: "";
}

.entry-intro__mark {
  position: relative;
  width: 63%;
  aspect-ratio: 1;
  color: #34543d;
}

.entry-intro__palm {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  stroke-width: 1.35;
  fill: #64775c40;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entry-intro__palm--outline {
  opacity: .23;
  fill: none;
}

.entry-intro__palm--fill {
  clip-path: inset(calc(100% - var(--entry-progress)) 0 0 0);
}

.entry-intro__percent {
  font: 400 clamp(53px, 11vw, 84px)/.8 var(--display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-top: 3px;
}

.entry-intro__percent small {
  font-size: .49em;
  margin-left: 2px;
  color: var(--red);
}

.entry-intro__track {
  position: relative;
  width: min(68%, 178px);
  height: 3px;
  margin-top: -8px;
  overflow: hidden;
  border-radius: 99px;
  background: #6c553c28;
}

.entry-intro__track::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #385740 0 33%, #b58b53 33% 66%, #982f27 66%);
  clip-path: inset(0 calc(100% - var(--entry-progress)) 0 0);
  content: "";
}

@keyframes entry-reveal {
  from { transform: translateY(0); }
  to { transform: translateY(-100%); }
}

@keyframes entry-failsafe {
  to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .entry-intro { display: none; }
}

.ev-home .footer nav {
  flex-wrap: wrap;
}
