/* =========================================================
   PROWAVE — Home hero (ice-blue paper)
   Scoped with the hh- prefix so it never collides with the
   studio styles in main.css / pages.css.
   ========================================================= */

@font-face {
  font-family: "Prowave Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/bricolage-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Prowave Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/bricolage-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.hh-hero {
  --hh-ink: #0f1b2d;
  --hh-blue: #7c3aed;
  --hh-muted: #5b687b;
  --hh-body: #4e5c6f;
  --hh-paper: #dfefff;
  --hh-hairline: rgba(17, 32, 58, 0.1);
  padding: 12px;
  background: #fff;
}

.hh-card {
  position: relative;
  isolation: isolate;
  height: calc(100vh - 24px);
  height: calc(100dvh - 24px);
  border-radius: 28px;
  overflow: hidden;
  background: var(--hh-paper);
}

.hh-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hh-card__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      58% 54% at 50% 45%,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.44) 42%,
      rgba(255, 255, 255, 0.12) 72%,
      rgba(255, 255, 255, 0.02) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(255, 255, 255, 0.08) 34%,
      rgba(255, 255, 255, 0.24) 100%
    );
}

/* ---------------------------------------------------------
   Floating tech chips
   --------------------------------------------------------- */
.hh-icons {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hh-chip {
  position: absolute;
  top: var(--y);
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  border-radius: 31%;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--hh-hairline);
  box-shadow:
    0 12px 26px rgba(17, 32, 58, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: rotate(var(--r));
  animation: hh-chip-float var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
  will-change: transform;
}

.hh-chip--left {
  left: var(--x);
}

.hh-chip--right {
  right: var(--x);
}

.hh-chip img {
  width: 56%;
  height: 56%;
  object-fit: contain;
  opacity: 1;
}

.hh-chip--dark {
  background: rgba(23, 33, 52, 0.9);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 32px rgba(15, 27, 45, 0.24);
}

.hh-chip--dark img {
  width: 56%;
  height: 56%;
  opacity: 1;
}

@keyframes hh-chip-float {
  0%,
  100% {
    transform: rotate(var(--r)) translateY(0);
  }
  50% {
    transform: rotate(var(--r)) translateY(-9px);
  }
}

/* ---------------------------------------------------------
   Content stack
   --------------------------------------------------------- */
.hh-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(96px, 12vh, 132px) 24px clamp(104px, 15vh, 136px);
  text-align: center;
}

.hh-title {
  margin: 0;
  font-family: "Prowave Display", "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(46px, 5.7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: var(--hh-ink);
  text-wrap: balance;
}

.hh-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.07em;
  margin-bottom: -0.07em;
}

.hh-line__inner {
  display: block;
  transform: translateY(115%);
  animation: hh-line-rise 1.05s cubic-bezier(0.19, 1, 0.22, 1) 0.08s forwards;
}

.hh-line--second .hh-line__inner {
  animation-delay: 0.19s;
}

.hh-accent {
  color: var(--hh-blue);
}

@keyframes hh-line-rise {
  to {
    transform: translateY(0);
  }
}

/* Rotating line */
.hh-rotator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: clamp(16px, 2.6vh, 26px) 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  animation: hh-soft-in 0.7s ease 0.5s both;
}

.hh-rotator__dot {
  position: relative;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hh-blue);
}

.hh-rotator__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(124, 58, 237, 0.5);
  border-radius: 50%;
  animation: hh-dot-pulse 2.4s ease-out infinite;
}

@keyframes hh-dot-pulse {
  0% {
    transform: scale(0.55);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.hh-rotator__text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hh-rotator__label {
  color: var(--hh-muted);
}

.hh-rotator__word-wrap {
  display: inline-block;
  overflow: hidden;
  height: 1.5em;
  line-height: 1.5em;
  vertical-align: bottom;
  transition: width 0.5s cubic-bezier(0.22, 0.9, 0.28, 1);
}

.hh-rotator__word {
  display: inline-block;
  white-space: nowrap;
  color: var(--hh-ink);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.24s ease,
    transform 0.32s cubic-bezier(0.22, 0.9, 0.28, 1);
}

.hh-rotator__word.is-out {
  opacity: 0;
  transform: translateY(-7px);
}

/* Paragraph */
.hh-lede {
  max-width: 560px;
  margin: clamp(18px, 2.8vh, 28px) 0 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
  animation: hh-soft-in 0.8s ease 0.62s both;
}

/* Buttons */
.hh-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(22px, 3.6vh, 36px);
  animation: hh-soft-in 0.8s ease 0.72s both;
}

.hh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.hh-btn:hover {
  transform: translateY(-1px);
}

.hh-btn--primary {
  background: var(--hh-blue);
  color: #fff;
  box-shadow:
    0 18px 36px -16px rgba(124, 58, 237, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hh-btn--primary:hover {
  background: #5b21b6;
}

.hh-btn__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hh-btn__icon svg {
  width: 12px;
  height: 12px;
}

.hh-btn--ghost {
  color: var(--hh-ink);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(15, 27, 45, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hh-btn--ghost:hover {
  background: #fff;
  border-color: rgba(124, 58, 237, 0.42);
  color: var(--hh-blue);
}

.hh-btn:focus-visible,
.hh-scroll__btn:focus-visible {
  outline: 2px solid var(--hh-blue);
  outline-offset: 3px;
}

@keyframes hh-soft-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------------------
   Bottom overlay
   --------------------------------------------------------- */
.hh-foot {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  animation: hh-soft-in 0.8s ease 0.82s both;
}

.hh-team {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hh-avatars {
  display: flex;
  align-items: center;
}

.hh-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.62);
  color: #283a57;
  box-shadow: 0 6px 16px rgba(17, 32, 58, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hh-avatar:first-child {
  margin-left: 0;
}

.hh-avatar svg {
  width: 16px;
  height: 16px;
}

.hh-team__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  text-align: left;
  font-family: var(--font-body);
}

.hh-team__copy strong {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--hh-ink);
}

.hh-team__copy span {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--hh-muted);
}

.hh-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3.2vh, 30px);
  z-index: 4;
  transform: translateX(-50%);
  animation: hh-fade-in 0.8s ease 0.9s both;
}

.hh-scroll__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid rgba(15, 27, 45, 0.22);
  background: transparent;
  color: var(--hh-ink);
  text-decoration: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.hh-scroll__label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}

.hh-scroll__btn svg {
  width: 12px;
  height: 12px;
  animation: hh-cue-drift 2.8s ease-in-out infinite;
}

.hh-scroll__btn:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: var(--hh-blue);
  color: var(--hh-blue);
}

.hh-scroll__btn:hover .hh-scroll__label {
  color: inherit;
}

@keyframes hh-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hh-cue-drift {
  0%,
  100% {
    transform: translateY(-1px);
  }
  50% {
    transform: translateY(2px);
  }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1199px) {
  .hh-icons {
    display: none;
  }
}

@media (max-width: 960px) {
  .hh-hero {
    padding: 10px;
  }

  .hh-card {
    height: calc(100vh - 20px);
    height: calc(100dvh - 20px);
    border-radius: 22px;
  }

  .hh-content {
    padding: 92px 22px 92px;
  }

  .hh-title {
    font-size: clamp(38px, 10.2vw, 58px);
  }

  .hh-rotator {
    font-size: 11.5px;
  }

  .hh-lede {
    max-width: 440px;
    font-size: 15.5px;
  }

  .hh-foot {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 720px) {
  .hh-team {
    display: none;
  }
}

@media (max-width: 560px) {
  .hh-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hh-actions .hh-btn {
    width: 100%;
  }

  .hh-foot {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .hh-avatar {
    width: 30px;
    height: 30px;
    margin-left: -8px;
  }

  .hh-team__copy strong {
    font-size: 11.5px;
  }

  .hh-team__copy span {
    font-size: 10.5px;
  }
}

@media (max-width: 380px) {
  .hh-hero {
    padding: 10px;
  }

  .hh-content {
    padding: 80px 16px 84px;
  }

  .hh-title {
    font-size: clamp(31px, 9.8vw, 38px);
  }

  .hh-rotator {
    font-size: 10.5px;
    letter-spacing: 0.12em;
  }

  .hh-lede {
    font-size: 14.5px;
    line-height: 1.62;
  }
}

/* Short laptop / landscape */
@media (max-height: 620px) {
  .hh-hero {
    padding: 8px;
  }

  .hh-card {
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    border-radius: 22px;
  }

  .hh-content {
    padding: 84px 20px 64px;
  }

  .hh-title {
    font-size: clamp(32px, 6vh, 48px);
  }

  .hh-rotator {
    margin-top: 8px;
    font-size: 11px;
  }

  .hh-lede {
    margin-top: 8px;
    max-width: 500px;
    font-size: 14px;
    line-height: 1.6;
  }

  .hh-actions {
    margin-top: 12px;
  }

  .hh-btn {
    min-height: 44px;
    padding: 0 20px;
  }

  .hh-foot {
    left: 14px;
    right: 14px;
    bottom: 12px;
  }

  .hh-avatar {
    width: 28px;
    height: 28px;
  }

  .hh-scroll__btn {
    height: 32px;
    padding: 0 12px;
  }
}

@media (max-height: 480px) {
  .hh-lede {
    display: none;
  }

  .hh-title {
    font-size: clamp(28px, 5.4vh, 38px);
  }

  .hh-rotator {
    margin-top: 6px;
  }

  .hh-actions {
    margin-top: 10px;
  }

  .hh-content {
    padding: 72px 20px 52px;
  }

  .hh-foot {
    bottom: 10px;
  }

  .hh-avatars {
    display: none;
  }
}

/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hh-line__inner {
    transform: none;
    animation: none;
  }

  .hh-chip {
    animation: none;
    transform: rotate(var(--r));
  }

  .hh-rotator__word {
    transition: none;
  }

  .hh-rotator__dot::after,
  .hh-scroll__btn svg {
    animation: none;
  }
}
