/* Homepage redesign (Oct 2026). Everything is scoped under .hv so the old
   inline styles in index.html can't leak in. Light and dark via theme vars. */
.hv {
  --hv-bg: #F6F7F4; --hv-surface: #FFFFFF; --hv-tint: #E7F2F0; --hv-band: #ECEFEA;
  --hv-text: #2E6F7B; --hv-body: #51656B; --hv-muted: #5B6664; --hv-line: #E2E6E1; --hv-line2: #D5E5E2;
  --hv-teal: #0B6B70; --hv-teal-dk: #0D3F42; --hv-chip: #F0F6F5;
  --hv-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  background: var(--hv-bg); color: var(--hv-text);
}
html[data-theme="dark"] .hv {
  --hv-bg: #0d1716; --hv-surface: #15201f; --hv-tint: #101c1b; --hv-band: #101c1b;
  --hv-text: #e7f1f0; --hv-body: #c3d3d1; --hv-muted: #98aeac; --hv-line: #2a3a39; --hv-line2: #2a3a39;
  --hv-teal: #3fd0d6; --hv-chip: #1b2a29;
}
.hv *, .hv *::before, .hv *::after { box-sizing: border-box; }
.hv-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hv-eyebrow { margin: 0 0 14px; font-family: var(--hv-mono); font-size: 13px; letter-spacing: .04em; color: var(--hv-teal); text-transform: uppercase; }
.hv h1, .hv h2, .hv h3 { color: var(--hv-text); }
.hv-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1.5px solid var(--hv-teal); transition: transform .15s ease, box-shadow .2s ease; cursor: pointer; font-family: inherit; }
.hv-btn--solid { background: var(--hv-teal); color: #fff; }
html[data-theme="dark"] .hv-btn--solid { color: #062022; }
.hv-btn--ghost { background: transparent; color: var(--hv-teal); }
.hv-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11,107,112,.18); }
.hv-lift { transition: transform .2s ease, box-shadow .2s ease; }
.hv-lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,107,112,.14); }

/* hero */
.hv-hero { padding: 72px 0 64px; }
.hv-hero .hv-wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hv-hero__copy { flex: 999 1 540px; min-width: 0; }
.hv-hero h1 { margin: 0; font-size: clamp(40px, 6vw, 60px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.hv-hero__lead { margin: 24px 0 0; font-size: 19px; line-height: 1.6; color: var(--hv-body); max-width: 580px; }
.hv-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hv-hero__ask { margin-top: 28px; max-width: 580px; }
.hv-hero .hv-wrap { align-items: stretch; }
.hv-hero__copy { align-self: center; }
.hv-hero__photo { flex: 0 1 460px; max-width: 100%; margin: 0 auto 0 auto; align-self: center; position: relative; padding: 0 18px 18px 0; }
.hv-hero__photo::before { content: ""; position: absolute; left: 18px; top: 18px; right: 0; bottom: 0; border-radius: 28px; background: linear-gradient(135deg, #9FDCC9, #0B6B70); }
.hv-hero__photo img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 28px; display: block; background: linear-gradient(160deg, #E4E8E6, #CDD6D3); }
@media (max-width: 1320px) { .hv-hero .hv-wrap { padding-left: 64px; } }
@media (max-width: 700px) { .hv-hero { padding-top: 40px; } .hv-hero .hv-wrap { padding-left: 24px; } .hv-hero__lead { font-size: 17px; } }

/* numbers */
.hv-nums { padding: 72px 0; }
.hv-nums .hv-wrap { display: block; }
.hv-nums__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 20px; }
.hv-nums__head p:first-child { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hv-nums__head p + p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--hv-muted); }
.hv-nums__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hv-num { min-height: 176px; padding: 20px; border-radius: 22px; display: flex; flex-direction: column; background: #fff; color: #2E6F7B; border: 1px solid var(--hv-line); text-decoration: none; }
.hv-num b { font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.hv-num b.sm { font-size: 34px; }
.hv-num span { margin-top: auto; padding-top: 12px; border-top: 1.5px dashed rgba(18,32,31,.3); font-size: 14px; line-height: 1.45; }
.hv-num:nth-child(8n+1) { background: #FFFFFF; }
.hv-num:nth-child(8n+2) { background: #0B6B70; color: #fff; border-color: #0B6B70; }
.hv-num:nth-child(8n+3) { background: #F2B544; border-color: #F2B544; }
.hv-num:nth-child(8n+4) { background: #E36A55; color: #fff; border-color: #E36A55; }
.hv-num:nth-child(8n+5) { background: #B8A9F5; border-color: #B8A9F5; }
.hv-num:nth-child(8n+6) { background: #9FDCC9; border-color: #9FDCC9; }
.hv-num:nth-child(8n+7) { background: #2F5BD3; color: #fff; border-color: #2F5BD3; }
.hv-num:nth-child(8n+8) { background: #F7D9E3; border-color: #F7D9E3; }
.hv-num:nth-child(8n+2) span, .hv-num:nth-child(8n+4) span, .hv-num:nth-child(8n+7) span { border-top-color: rgba(255,255,255,.45); }
.hv-reveal .hv-num { opacity: 0; transform: translateY(10px); }
.hv-reveal.is-in .hv-num { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

/* builds */
.hv-built { background: var(--hv-tint); padding: 88px 0; }
.hv-built h2 { margin: 0; font-size: clamp(32px, 4.5vw, 44px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
.hv-built__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 44px; }
.hv-card { background: var(--hv-surface); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 18px; text-decoration: none; color: var(--hv-text); }
.hv-card__tag { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--hv-mono); font-size: 11px; color: var(--hv-teal); text-transform: uppercase; }
.hv-card h3 { margin: 8px 0 6px; font-size: 19px; font-weight: 600; }
.hv-card p.hv-card__what { margin: 0; font-size: 14px; line-height: 1.55; color: var(--hv-muted); }
.hv-dot { width: 7px; height: 7px; border-radius: 50%; background: #22A06B; display: inline-block; animation: hv-blink 1.6s ease-in-out infinite; }
@keyframes hv-blink { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

.hv-gta { grid-column: 1 / -1; position: relative; display: block; border-radius: 24px; overflow: hidden; text-decoration: none; color: #fff; min-height: 440px; background: #1A2726; }
.hv-gta video, .hv-gta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-gta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,17,16,0) 45%, rgba(10,17,16,.78) 100%); }
.hv-gta__foot { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.hv-gta__foot img { width: 260px; max-width: 60vw; height: auto; display: block; }
.hv-gta__foot p { margin: 10px 0 0; font-size: 16px; color: #F2F6F5; }
.hv-gta__cta { background: #fff; color: #0B6B70; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; }
@media (max-width: 600px) { .hv-gta { min-height: 320px; } .hv-gta__foot { left: 20px; right: 20px; bottom: 20px; } .hv-gta__foot img { width: 112px; } .hv-gta__foot p { font-size: 14px; margin-top: 6px; } .hv-gta__cta { padding: 10px 16px; font-size: 13px; } }

.hv-phone { margin: 6px auto 0; width: 232px; height: 420px; border-radius: 36px; border: 6px solid #DCE6E3; overflow: hidden; position: relative; background: #fff; box-shadow: 0 20px 40px rgba(11,107,112,.12); }
.hv-phone iframe { position: absolute; top: 0; left: 0; width: 390px; height: 690px; border: 0; transform: scale(.564); transform-origin: 0 0; pointer-events: none; }
.hv-tall { grid-row: span 2; }
@media (max-width: 700px) { .hv-tall { grid-row: auto; } }

.hv-flow { display: flex; align-items: center; margin-top: auto; }
.hv-flow__step { display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.hv-flow__step:last-child { flex: 0 0 auto; }
.hv-flow__node { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.hv-flow__node b { padding: 8px 10px; border-radius: 10px; background: var(--hv-chip); border: 1px solid var(--hv-line2); font-family: var(--hv-mono); font-size: 11px; font-weight: 600; color: var(--hv-text); white-space: nowrap; }
.hv-flow__node small { font-size: 10px; color: var(--hv-muted); white-space: nowrap; }
.hv-wire { flex: 1 1 auto; height: 2px; min-width: 8px; background: var(--hv-line2); margin: 0 4px 18px; position: relative; overflow: hidden; }
.hv-wire::after { content: ""; position: absolute; top: -2px; left: -10px; width: 8px; height: 6px; border-radius: 3px; background: var(--hv-teal); animation: hv-run 2.4s linear infinite; }
.hv-flow__step:nth-child(2) .hv-wire::after { animation-delay: .6s; }
.hv-flow__step:nth-child(3) .hv-wire::after { animation-delay: 1.2s; }
@keyframes hv-run { 0% { left: -10px; opacity: 0 } 15% { opacity: 1 } 85% { opacity: 1 } 100% { left: 100%; opacity: 0 } }

.hv-term { margin-top: auto; border-radius: 14px; background: #2E6F7B; padding: 12px 14px; font-family: var(--hv-mono); font-size: 11px; line-height: 1.8; color: #DCEFED; }
.hv-term .ok { color: #7FD4CF; } .hv-term .no { color: #E8A33D; }
.hv-more { margin-top: 28px; }
.hv-more a { color: var(--hv-teal); font-weight: 600; font-size: 15px; }

/* podcast */
.hv-pod { padding: 88px 0 40px; }
.hv-pod .hv-wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; }
.hv-pod__media { flex: 1 1 340px; max-width: 460px; width: 100%; position: relative; }
.hv-pod__media video { width: 100%; border-radius: 20px; display: block; aspect-ratio: 1 / 1; object-fit: cover; background: #1A2726; cursor: pointer; }
.hv-pod__mute { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 50%; padding: 0; background: rgba(255,255,255,.92); color: #0B6B70; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.hv-pod__mute svg { width: 20px; height: 20px; }
.hv-pod__mute .on { display: none; } .hv-pod__mute[aria-pressed="true"] .on { display: inline; } .hv-pod__mute[aria-pressed="true"] .off { display: none; }
.hv-pod__copy { flex: 0 1 560px; min-width: 0; }
.hv-pod h2 { margin: 0; font-size: clamp(28px, 3.6vw, 34px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.hv-pod h2 a { color: inherit; }
.hv-pod__sub { margin: 14px 0 22px; font-size: 16px; line-height: 1.6; color: var(--hv-body); }
.hv-clips { display: flex; flex-direction: column; gap: 8px; max-width: 480px; }
.hv-clip { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 14px; background: var(--hv-surface); border: 1px solid var(--hv-line); color: var(--hv-text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.hv-clip span { color: var(--hv-teal); }
.hv-clip[aria-current="true"] { border-color: var(--hv-teal); box-shadow: 0 0 0 3px rgba(11,107,112,.12); }

/* logos + quotes */
.hv-work { padding: 64px 0 88px; }
.hv-work__band { background: var(--hv-band); border-radius: 28px; padding: 40px 28px; }
.hv-work h2 { margin: 0 auto; max-width: 720px; text-align: center; font-size: clamp(24px, 3vw, 30px); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.hv-work h2 b { font-weight: 700; }
.hv-work__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 36px; }
.hv-tile { background: #fff; border-radius: 20px; padding: 24px; display: flex; align-items: center; justify-content: center; min-height: 150px; text-decoration: none; color: #2E6F7B; }
.hv-tile img.logo { max-width: 210px; max-height: 80px; width: auto; height: auto; object-fit: contain; }
.hv-tile--quote { grid-column: span 2; justify-content: flex-start; flex-wrap: wrap; gap: 24px; }
.hv-tile--quote img.logo { width: 150px; max-height: 70px; }
.hv-tile--quote blockquote { flex: 1 1 260px; min-width: 0; margin: 0; }
.hv-tile--quote blockquote p { margin: 0; font-size: 16px; line-height: 1.55; color: #2E6F7B; }
.hv-tile--quote footer { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: #5B6664; }
.hv-tile--quote footer img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.hv-tile--quote footer b { color: #2E6F7B; font-weight: 600; }
.hv-tile--stat { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 20px; }
.hv-tile--stat img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; }
.hv-tile--stat b { display: block; font-size: 36px; font-weight: 600; color: #0B6B70; letter-spacing: -.02em; }
.hv-tile--stat small { font-size: 12px; letter-spacing: .06em; color: #5B6664; text-transform: uppercase; }
.hv-tile--refs { background: #0B6B70; color: #fff; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.hv-tile--refs small { font-family: var(--hv-mono); font-size: 12px; color: #BFE6E2; }
.hv-tile--refs b { font-size: 18px; font-weight: 600; }
.hv-tile--cert blockquote p b { font-weight: 600; }
.hv-score { font-family: var(--hv-mono); font-weight: 700; color: #0B6B70; background: #E3F1EE; padding: 3px 8px; border-radius: 999px; }
@media (max-width: 620px) { .hv-tile--quote { grid-column: auto; } }

/* contact */
.hv-contact { background: #0B6B70; color: #fff; }
.hv-contact .hv-wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hv-contact__copy { flex: 1 1 380px; min-width: 0; }
.hv-contact h2 { margin: 0; color: #fff; font-size: clamp(32px, 4.5vw, 44px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
.hv-contact__copy p { margin: 18px 0 28px; font-size: 17px; line-height: 1.6; color: #D3EDEB; max-width: 520px; }
.hv-contact__copy .hv-btn { background: #fff; color: #0B6B70; border-color: #fff; }
.hv-contact__meta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.hv-contact__meta span { color: #D3EDEB; margin-right: 6px; }
.hv-contact__meta a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55); font-weight: 600; transition: background .15s ease, border-color .15s ease; }
.hv-contact__meta a:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.hv-form { flex: 1.3 1 460px; background: #fff; color: #2E6F7B; border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.hv-form .two { display: flex; gap: 12px; flex-wrap: wrap; } .hv-form .two > div { flex: 1 1 140px; }
.hv-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #2E6F7B; }
.hv-form input, .hv-form textarea { width: 100%; border: 1px solid #D5DBD5; border-radius: 10px; padding: 12px; font: inherit; font-size: 14px; color: #2E6F7B; background: #fff; }
.hv-form textarea { min-height: 130px; resize: vertical; }
.hv-form button { border: 0; background: #0B6B70; color: #fff; border-radius: 999px; padding: 14px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.hv-form button:disabled { opacity: .6; }
#form-result { text-align: center; font-size: .9rem; display: none; }

@media (prefers-reduced-motion: reduce) {
  .hv-wire::after, .hv-dot { animation: none; }
  .hv-lift, .hv-btn { transition: none; }
  .hv-reveal .hv-num { opacity: 1; transform: none; }
}

@media (max-width: 900px) and (min-width: 601px) { .hv-nums__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .hv-nums__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv-num { min-height: 140px; padding: 16px; border-radius: 18px; }
  .hv-num b { font-size: 32px; }
  .hv-num b.sm { font-size: 22px; }
  .hv-num span { font-size: 13px; }
  .hv-hero__photo { max-width: 300px; }
}

/* softer headings: deep teal-grey instead of near-black */
.hv h1, .hv h2 { color: #2E6F7B; font-weight: 600; }
.hv-contact h2 { color: #fff; }
html[data-theme="dark"] .hv h1, html[data-theme="dark"] .hv h2 { color: #e7f1f0; }

.hv-spotify { margin-top: 18px; max-width: 480px; }
.hv-sp-crop { overflow: hidden; height: 80px; border-radius: 12px; background: #1E3A52; }
/* Spotify's compact player with its cover art pushed out of view: only the title, play button and bar show. */
.hv-sp-crop iframe { display: block; width: calc(100% + 80px); height: 80px; margin-left: -80px; border: 0; }
/* Phones/tablets: photo first (same as Portfolio), smaller so the headline stays in view. */
@media (max-width: 1080px) {
  .hv-hero { padding-top: 40px; }
  .hv-hero__photo { order: -1; flex-basis: 100%; max-width: 300px; margin: 0 auto; }
}
@media (max-width: 600px) { .hv-hero__photo { max-width: 240px; } .hv-hero .hv-wrap { gap: 32px; } }
