body {
  background-color: #0f172a;
  color: #f8fafc;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  scroll-behavior: smooth;
}

html {
  -webkit-text-size-adjust: 100%;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

@supports (min-height: 100svh) {
  .min-h-screen {
    min-height: 100svh;
  }
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(30, 41, 59, 0.6) 0%,
    rgba(15, 23, 42, 0) 80%
  );
}

.hero-gradient {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(30, 41, 59, 0.22) 60%,
    rgba(30, 41, 59, 0.22) 100%
  );
}

#start {
  overflow: hidden;
}

@supports (clip-path: polygon(0 0)) {
  #start {
    clip-path: polygon(
      0 0,
      100% 0,
      100% 95%,
      75% 97.8%,
      50% 99.4%,
      25% 97.8%,
      0 95%
    );
  }
}

@media (max-width: 640px) {
  @supports (clip-path: polygon(0 0)) {
    #start {
      clip-path: polygon(
        0 0,
        100% 0,
        100% 96.5%,
        75% 98.4%,
        50% 99%,
        25% 98.4%,
        0 96.5%
      );
    }
  }
}


textarea::-webkit-scrollbar {
  width: 8px;
}

textarea::-webkit-scrollbar-track {
  background: transparent;
}

textarea::-webkit-scrollbar-thumb {
  background-color: rgba(254, 243, 199, 0.1);
  border-radius: 4px;
}

.vent-inline-message {
  display: block;
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.vent-inline-message.is-visible {
  opacity: 1;
}

.vent-inline-message.is-error {
  color: #fee2e2;
}

.vent-pill__text {
  animation: none;
  will-change: auto;
}

.vent-pill {
  border-radius: 999px;
  border: 1px solid rgba(254, 243, 199, 0.22);
  background: rgba(254, 243, 199, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-cta {
  box-shadow: 0 0 22px rgba(254, 243, 199, 0.16);
}

.hero-cta:hover {
  box-shadow: 0 0 28px rgba(254, 243, 199, 0.28);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .hero-cta {
    padding-left: 2.75rem;
    padding-right: 2.75rem;
  }

  .vent-pill {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  .vent-pill__text {
    font-size: 0.58rem;
  }

  .vent-pill__line {
    display: block;
  }

  .vent-content-card {
    padding: 24px 20px;
    border-radius: 22px;
  }
}

@keyframes ventPillPulse {
  0%,
  100% {
    opacity: 0.64;
    text-shadow: 0 0 0 rgba(254, 243, 199, 0);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 18px rgba(254, 243, 199, 0.3);
  }
}

.vent-nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 41, 59, 0.18);
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.vent-nav-pill:hover {
  color: rgba(248, 250, 252, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.vent-content-card {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(30, 41, 59, 0.2);
  padding: 32px 28px;
}

.vent-body-serif {
  font-family: "Lora", "Source Serif 4", "Libre Baskerville", serif;
}

.audio-visualizer-wrap {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 41, 59, 0.22);
  padding: 10px 12px;
}

.audio-visualizer {
  display: block;
  width: 100%;
  height: 84px;
}


.vent-accordion {
  display: grid;
  gap: 18px;
}

.vent-accordion__item {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 41, 59, 0.25);
  overflow: hidden;
}

.vent-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
}

.vent-accordion__trigger:focus-visible {
  outline: 2px solid rgba(254, 243, 199, 0.7);
  outline-offset: -2px;
}

.vent-accordion__icon {
  transition: transform 0.25s ease;
  font-size: 1.1rem;
  color: rgba(254, 243, 199, 0.8);
}

.vent-accordion__panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.vent-accordion__content {
  padding: 0 22px 22px;
}

[data-accordion-item].is-open .vent-accordion__panel {
  max-height: 800px;
  opacity: 1;
}

[data-accordion-item].is-open .vent-accordion__icon {
  transform: rotate(180deg);
}

@media (max-width: 640px) {
  header h1 {
    font-size: 1.6rem;
    letter-spacing: 0.18em;
  }

  header p {
    letter-spacing: 0.18em;
  }

  .vent-pill {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 0.2rem;
  }

  .audio-visualizer {
    height: 68px;
  }

  .vent-accordion__trigger {
    padding: 16px 18px;
  }

  .vent-accordion__content {
    padding: 0 18px 18px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }

  .ventilera-page .ventilera-title {
    margin-top: 12px;
  }

  .ventilera-page .ventilera-cards {
    width: 100%;
    margin-top: 24px;
    gap: 16px;
    align-items: stretch;
  }

  .ventilera-page .ventilera-card {
    max-width: none;
    width: 100%;
    min-height: 12.5rem;
    height: auto;
    padding: 22px 18px;
    border-radius: 22px;
    gap: 12px;
  }

  .ventilera-page .ventilera-icon {
    width: 3rem;
    height: 3rem;
  }

  .ventilera-page .ventilera-card h3 {
    font-size: 1.05rem;
    letter-spacing: 0.14em;
  }

  .ventilera-page .ventilera-card p {
    font-size: 0.8rem;
  }

  .ventilera-page .ventilera-footer {
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
  }

  .ventilera-page .ventilera-footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(254, 243, 199, 0.7);
  text-decoration: none;
  transform: translate(-50%, 0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 20;
}

.scroll-indicator__icon {
  width: 28px;
  height: 28px;
  animation: scrollPulse 1.6s ease-in-out infinite;
}

.scroll-indicator--inline {
  position: static;
  transform: none;
  margin-top: 46px;
  opacity: 0.6;
  pointer-events: none;
}

.scroll-indicator--inline .scroll-indicator__icon {
  animation: scrollPulse 2.8s ease-in-out infinite;
}

.scroll-indicator.is-hidden {
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
}

.scroll-indicator--inline.is-hidden {
  transform: translateY(6px);
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(6px);
  }
}

@media (max-width: 640px) {
  .scroll-indicator {
    bottom: 110px;
  }

  .scroll-indicator--inline {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vent-pill__text {
    animation: none;
  }

  .scroll-indicator__icon {
    animation: none;
  }
}

.snow-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
  mix-blend-mode: screen;
}

.snowflake {
  position: absolute;
  top: -12%;
  width: var(--snow-size);
  height: var(--snow-size);
  opacity: var(--snow-opacity);
  transform: translate3d(var(--snow-x), -10%, 0);
  animation: snowFall var(--snow-duration) linear var(--snow-delay) infinite;
  filter: blur(var(--snow-blur));
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.4) 45%,
    rgba(255, 255, 255, 0) 70%
  );
}

@keyframes snowFall {
  0% {
    transform: translate3d(var(--snow-x), -10%, 0);
  }
  100% {
    transform: translate3d(calc(var(--snow-x) + var(--snow-drift)), 115%, 0);
  }
}

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