/* =========================================================
   01 Hero + site nav — Figma 292:3 (1512px frame, 808px tall)
   ========================================================= */

/* Offset in-page anchors for the fixed 52px nav (suggest moving to base.css) */
html { scroll-padding-top: 52px; }

/* ---------- site nav ---------- */
.site-nav { position: fixed; inset: 0 0 auto 0; z-index: 100; }
/* Blur lives on a pseudo-element so the header never becomes a containing block for the fixed overlay menu */
.site-nav::before {
  content: ""; position: absolute; inset: 0; height: 52px; pointer-events: none;
  background: rgba(0,0,0,0); transition: background-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-nav.is-scrolled::before {
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.site-nav__bar {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: var(--page-max); height: 52px; margin-inline: auto; padding-inline: var(--gutter);
}
.site-nav__logo { justify-self: start; display: block; }
.site-nav__logo img { width: 148.484px; height: 16px; }
.site-nav__pill {
  height: 38px; padding: 0 4px; border-radius: 200px;
  background: rgba(255,255,255,.10);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.site-nav__list { display: flex; align-items: center; gap: 4px; height: 100%; }
.site-nav__link {
  display: flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 200px;
  font-size: 14px; line-height: 1.3; letter-spacing: -0.02em; color: var(--white); white-space: nowrap;
  transition: background-color .2s var(--ease);
}
.site-nav__link:hover,
.site-nav__link.is-active { background: rgba(255,255,255,.12); }
.site-nav__cta { justify-self: end; width: 130px; justify-content: center; }

.site-nav__toggle {
  display: none; justify-self: end; position: relative;
  width: 38px; height: 38px; border-radius: 999px; background: rgba(255,255,255,.10);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.site-nav__toggle-bar {
  position: absolute; left: 12px; width: 14px; height: 1.5px; background: var(--white);
  transition: transform .3s var(--ease);
}
.site-nav__toggle-bar:first-child { top: 15px; }
.site-nav__toggle-bar:last-child  { top: 21px; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:first-child { transform: translateY(3px) rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:last-child  { transform: translateY(-3px) rotate(-45deg); }

/* full-screen mobile menu */
.site-menu {
  position: fixed; inset: 0; z-index: 1; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 100px var(--gutter) 40px; background: var(--black);
  opacity: 0; transition: opacity .3s var(--ease);
}
.site-menu[hidden] { display: none; }
.site-menu.is-open { opacity: 1; }
.site-menu__list { border-top: 1px solid var(--w-15); }
.site-menu__link {
  display: block; padding: 18px 0; border-bottom: 1px solid var(--w-15);
  font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; color: var(--white);
}
.site-menu__cta { align-self: flex-start; }

@media (max-width: 1100px) {
  .site-nav__bar { grid-template-columns: 1fr auto auto; gap: 12px; }
  .site-nav__pill { display: none; }
  .site-nav__toggle { display: block; }
}
@media (max-width: 560px) {
  .site-nav__cta { display: none; }
  .site-nav__bar { grid-template-columns: 1fr auto; }
}
@media (min-width: 1101px) {
  .site-menu { display: none !important; }
}

/* ---------- hero ---------- */
.hero.section { padding-block: 0; }
.hero__inner {
  position: relative; display: flex;
  min-height: 808px; padding-top: 110px; padding-bottom: 92px;
}
.hero__copy {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between; gap: 64px;
  width: min(700px, 50vw);
}
.hero__title .muted { color: var(--w-45); }
.hero__body { max-width: 488px; letter-spacing: -0.02em; }
.hero__body .muted { color: var(--w-45); }
.hero__cta { margin-top: 24px; }

.hero__visual { position: absolute; inset: 0; pointer-events: none; }

/* fluted glass panel: 32 × 26px strips, each showing a blurred, offset slice of the same image */
.hero-flutes {
  position: absolute; top: 360px; right: 0; width: 812px; height: 560px;
  display: flex; overflow: hidden; background: var(--black); opacity: .9;
}
.hero-flutes__flute { position: relative; flex: 0 0 26px; height: 100%; overflow: hidden; }
.hero-flutes__flute::before {
  content: ""; position: absolute; inset: -12px;
  background: url("../../assets/01-hero/flute-image.png") no-repeat;
  background-size: 959.4px 767.7px;
  background-position: calc(12px - 72px - var(--i) * 20.8px) calc(12px - 36px);
  filter: blur(6px);
}
.hero-flutes__flute:nth-child(even)::before { background-position-y: calc(12px - 28px); }
.hero-flutes__flute::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 55%, rgba(255,255,255,.05) 100%);
}
.hero-flutes__fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 70%, #000 100%);
}

/* looping chip list (Figma 292:145 mask group / 292:147) */
.hero-loop {
  position: absolute; top: 174px; left: 65.344%; width: 291px; height: 492px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70.19%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70.19%, transparent 100%);
}
.hero-loop__track {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 16px;
  animation: hero-loop-scroll 13.5s linear infinite;
  will-change: transform;
}
.hero-loop__chip,
.hero-loop__on {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px;
  border-radius: 999px; font-size: 16px; line-height: 1.15; letter-spacing: -0.03em; white-space: nowrap;
}
.hero-loop__chip {
  position: relative; overflow: hidden; flex: none;
  background: rgba(255,255,255,.10); color: var(--white);
  -webkit-backdrop-filter: blur(5.8px); backdrop-filter: blur(5.8px);
}
.hero-loop__icon { position: relative; flex: none; width: 20px; height: 20px; }
.hero-loop__icon img { position: absolute; max-width: none; } /* native SVG size + offset set inline from Figma */
.hero-loop__on {
  position: absolute; inset: 0;
  background: linear-gradient(104.5deg, var(--blue-2) 0%, var(--blue-1) 99.79%); color: var(--black);
  opacity: 0;
  animation: hero-chip-on 13.5s linear infinite;
  animation-delay: calc(var(--k) * 1.5s - 13.5s);
}

/* 9 steps of 54px (40px chip + 14px gap): 0.8s hold, 0.7s eased move */
@keyframes hero-loop-scroll {
  0%      { transform: translateY(0); }
  5.926%  { transform: translateY(0);      animation-timing-function: cubic-bezier(.65,0,.35,1); }
  11.111% { transform: translateY(-54px); }
  17.037% { transform: translateY(-54px);  animation-timing-function: cubic-bezier(.65,0,.35,1); }
  22.222% { transform: translateY(-108px); }
  28.148% { transform: translateY(-108px); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  33.333% { transform: translateY(-162px); }
  39.259% { transform: translateY(-162px); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  44.444% { transform: translateY(-216px); }
  50.37%  { transform: translateY(-216px); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  55.556% { transform: translateY(-270px); }
  61.481% { transform: translateY(-270px); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  66.667% { transform: translateY(-324px); }
  72.593% { transform: translateY(-324px); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  77.778% { transform: translateY(-378px); }
  83.704% { transform: translateY(-378px); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  88.889% { transform: translateY(-432px); }
  94.815% { transform: translateY(-432px); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  100%    { transform: translateY(-486px); }
}
/* The chip in the highlight slot fades its active layer in/out around each move */
@keyframes hero-chip-on {
  0%      { opacity: 1; }
  5.926%  { opacity: 1; animation-timing-function: ease-in; }
  8.519%  { opacity: 0; }
  97.407% { opacity: 0; animation-timing-function: ease-out; }
  100%    { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-loop__track, .hero-loop__on { animation: none; }
  .hero-loop__chip--start .hero-loop__on { opacity: 1; }
}

/* ---------- tablet / mobile: stack ---------- */
@media (max-width: 1100px) {
  .hero__inner { flex-direction: column; min-height: 0; padding-top: 132px; padding-bottom: 0; }
  .hero__copy { width: 100%; max-width: 700px; gap: 48px; }
  .hero__visual { position: relative; inset: auto; height: 560px; margin-top: 24px; }
  .hero-flutes { top: 0; right: auto; left: calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); }
  .hero-loop { top: 34px; left: 50%; margin-left: -145.5px; }
}
@media (max-width: 720px) {
  .hero__inner { padding-top: 112px; }
  .hero__copy { gap: 40px; }
  .hero__body { font-size: 18px; }
  .hero__visual { height: 520px; }
  .hero-loop { top: 14px; }
}
