.hero {
  min-height: 84svh;
  display: grid;
  align-items: end;
  padding: 150px 0 60px;
  color: #fff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #111;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58)), url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?auto=format&fit=crop&w=2200&q=80') center/cover;
  z-index: -2;
  animation: zoom 10s ease both;
}

.hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(transparent, var(--paper));
  z-index: -1;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 16px;
}

.hero h1 {
  font-family: Georgia, serif;
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .84;
  font-size: clamp(62px, 13vw, 178px);
  margin: 0 0 clamp(28px, 4.5vw, 54px);
}

.lead {
  font-size: clamp(18px, 2.3vw, 28px);
  line-height: 1.18;
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

@keyframes zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.02);
  }
}

.wrap {
  width: min(860px, calc(100% - 40px));
  margin: auto;
  padding-bottom: 110px;
}

/* Category Filters */
.categories-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 54px;
  flex-wrap: wrap;
}

.cat-btn {
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}

/* FAQ Accordion */
.faq-group {
  margin-bottom: 44px;
}

.faq-group h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  outline: none;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
  margin: 14px 0 0;
  color: #594d47;
  font-size: 15px;
  line-height: 1.6;
  padding-right: 28px;
}

/* Icon rotation */
.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.35s ease;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 9px;
  transition: transform 0.35s ease;
}

/* Horizontal line */
.faq-icon::before {
  top: 9px;
  left: 3px;
  right: 3px;
  height: 2px;
}

/* Vertical line */
.faq-icon::after {
  top: 3px;
  bottom: 3px;
  left: 9px;
  width: 2px;
}

/* Active State */
.faq-item.active .faq-icon {
  transform: rotate(135deg);
}

.faq-item.active .faq-answer {
  max-height: 240px; /* Big enough to fit answer */
}

@media(max-width: 560px) {
  .hero {
    min-height: 78svh;
    padding: 132px 20px 46px;
  }
  .hero h1 {
    font-size: clamp(58px, 19vw, 92px);
  }
  .lead {
    font-size: 17px;
  }
}
