/* =========================================================================
   Next Wave Advisory homepage — page-specific styles
   Layered on top of web.css. Brand kit untouched.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Hero — full-bleed image with dark overlay
   ------------------------------------------------------------------------- */
.home-hero {
  position: relative;
  overflow: hidden;
  background: var(--nwa-ink);
  color: var(--fg-on-dark);
  padding-block: clamp(120px, 16vw, 220px) clamp(80px, 10vw, 140px);
  min-height: 88vh;
  display: flex;
  align-items: center;
}

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

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.4) 35%,
    rgba(10, 10, 10, 0.6) 75%,
    rgba(10, 10, 10, 0.78) 100%
  );
  z-index: 1;
}

/* Subtle photographic grain — 3% noise overlay on the hero image only */
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 320px 320px;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.home-hero__rule { margin-bottom: 36px; }

.home-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--fg-on-dark);
  text-wrap: balance;
  max-width: 18ch;
  font-variation-settings: "opsz" 96;
}

.home-hero__lede {
  margin-top: clamp(24px, 2.6vw, 36px);
  max-width: 56ch;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: rgba(240, 237, 216, 0.86);
  text-wrap: pretty;
}

.home-hero__cta {
  margin-top: clamp(28px, 3vw, 44px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* -------------------------------------------------------------------------
   Standard section title
   ------------------------------------------------------------------------- */
.home-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--web-fs-h1);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 56px;
  max-width: 22ch;
}
.web-section--dark .home-h2 { color: var(--fg-on-dark); }

.home-lede {
  font-size: var(--web-fs-lede);
  line-height: 1.5;
  color: rgba(10, 10, 10, 0.74);
  max-width: 56ch;
  margin: 0 0 56px;
}
.web-section--dark .home-lede { color: var(--fg-on-dark-2); }

/* -------------------------------------------------------------------------
   Services accordion — native <details>
   ------------------------------------------------------------------------- */
.home-svcs {
  border-top: 1px solid rgba(10, 10, 10, 0.14);
}

.home-svc {
  border-bottom: 1px solid rgba(10, 10, 10, 0.14);
}

.home-svc > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: baseline;
  column-gap: clamp(20px, 3vw, 56px);
  padding: clamp(24px, 3vw, 36px) 0;
  outline: none;
  transition: opacity var(--dur-fast) var(--ease-standard);
}
.home-svc > summary::-webkit-details-marker { display: none; }
.home-svc > summary::marker { display: none; }
.home-svc > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.home-svc__num {
  font-family: var(--font-mono);
  font-size: var(--web-fs-meta);
  letter-spacing: 0.14em;
  color: rgba(10, 10, 10, 0.5);
  font-variant-numeric: tabular-nums;
  padding-top: 8px;
}

.home-svc__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

.home-svc__chev {
  font-family: var(--font-mono);
  font-size: 18px;
  color: rgba(10, 10, 10, 0.5);
  padding-top: 8px;
  transition: transform 280ms var(--ease-standard), color 140ms var(--ease-standard);
  display: inline-block;
}

.home-svc[open] .home-svc__chev {
  transform: rotate(180deg);
  color: var(--accent);
}

.home-svc > summary:hover .home-svc__chev {
  color: var(--accent);
}

.home-svc__body {
  padding: 0 0 clamp(24px, 3vw, 36px) calc(60px + clamp(20px, 3vw, 56px));
  max-width: 70ch;
  animation: home-fade 320ms var(--ease-standard);
}

.home-svc__body p {
  font-size: var(--web-fs-body);
  line-height: 1.55;
  color: rgba(10, 10, 10, 0.74);
  margin: 0;
}

@keyframes home-fade {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Nav defaults (logo size 32px, olive CTA, mobile rules) live in web.css */

@media (max-width: 600px) {
  .home-svc > summary {
    grid-template-columns: 36px 1fr 22px;
    column-gap: 14px;
  }
  .home-svc__body {
    padding-left: calc(36px + 14px);
  }
  .home-svc__title {
    font-size: clamp(22px, 5.4vw, 28px);
  }
  .home-svc__num { padding-top: 4px; }
  .home-svc__chev { padding-top: 4px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-svc__chev,
  .home-svc__body {
    transition: none;
    animation: none;
  }
}

/* -------------------------------------------------------------------------
   Values — 2x2 grid of filled cards on dark
   ------------------------------------------------------------------------- */
.home-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
  max-width: 1100px;
}

@media (max-width: 760px) {
  .home-values { grid-template-columns: 1fr; }
}

.home-value {
  background: var(--nwa-ink-2);
  padding: clamp(28px, 3vw, 40px);
  border-radius: 4px;
}

.home-value__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--fg-on-dark);
}

.home-value__body {
  font-size: var(--web-fs-body);
  line-height: 1.55;
  color: var(--fg-on-dark-2);
  margin: 0;
}

/* -------------------------------------------------------------------------
   People — 3 partners
   ------------------------------------------------------------------------- */
.home-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 3vw, 48px);
}

.home-person__photo {
  aspect-ratio: 4 / 5;
  background: var(--nwa-cream-3);
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(60px, 7vw, 96px);
  color: rgba(10, 10, 10, 0.28);
  letter-spacing: -0.02em;
}

.web-section--dark .home-person__photo {
  background: var(--nwa-ink-2);
  color: rgba(240, 237, 216, 0.28);
}

.home-person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.home-person__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  line-height: 1.1;
}

.home-person__role {
  font-family: var(--font-mono);
  font-size: var(--web-fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.6);
  margin: 0 0 14px;
}
.web-section--dark .home-person__role { color: rgba(240, 237, 216, 0.6); }

.home-person__bio {
  font-size: var(--web-fs-body-s);
  line-height: 1.55;
  color: rgba(10, 10, 10, 0.7);
  margin: 0;
  max-width: 36ch;
}
.web-section--dark .home-person__bio { color: var(--fg-on-dark-2); }
