/**
 * Home v2 — "Inside the tech pouch" (prototype approved Nov 23, 2026).
 * Scoped to .bv-home2 so it never touches other pages. Content is core blocks
 * (editable in Gutenberg); the port-split widget is CSS-only (radio inputs).
 * Text/buttons use Sky 700 (#0369a1) for 4.5:1 contrast; Sky 500 only as decoration.
 */

/* Full-bleed for any page that contains the Home v2 block group */
body.page:has(.bv-home2) .site.grid-container { max-width: 100%; width: 100%; padding-left: 0; padding-right: 0; }
body.page:has(.bv-home2) .site-content { margin-top: 0; padding: 0; }
body.page:has(.bv-home2) .content-area { width: 100%; max-width: none; float: none; margin: 0; padding: 0; }
body.page:has(.bv-home2) .widget-area { display: none; }
body.page:has(.bv-home2) .inside-article { padding: 0; background: transparent; }
body.page:has(.bv-home2) .entry-content { margin: 0; }
body.page:has(.bv-home2) .site-main { margin: 0; } /* GP adds 20px above the hero */

/* GeneratePress is a classic theme: WordPress wraps every Group block in
 * .wp-block-group__inner-container. Flatten it so flex/grid rules reach the real children. */
.bv-home2 .wp-block-group__inner-container { display: contents; }


.bv-home2 {
  --h2-ink: #0f172a; --h2-ink2: #334155; --h2-muted: #475569; --h2-line: #e2e8f0;
  --h2-bg: #fafafa; --h2-sky: #0ea5e9; --h2-sky-text: #0369a1; --h2-sky-dark: #38bdf8;
  --h2-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --h2-pad: clamp(18px, 4vw, 48px);
  background: var(--h2-bg); color: var(--h2-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.bv-home2 * { box-sizing: border-box; }
.bv-home2 > *, .bv-home2 .wp-block-group > *, .bv-home2 .wp-block-group__inner-container > * { margin-block: 0; }
.bv-home2 .mono, .bv-home2 .bv-h2-tag, .bv-home2 .bv-h2-num { font-family: var(--h2-mono); }
.bv-home2 a { color: var(--h2-sky-text); }
.bv-home2 a:hover { color: #0c4a6e; }
.bv-home2 :focus-visible { outline: 2px solid var(--h2-sky-text); outline-offset: 3px; border-radius: 6px; }

.bv-home2 .bv-h2-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--h2-pad); }
.bv-home2 .bv-h2-tag { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--h2-muted); }

/* Buttons (core/button) */
.bv-home2 .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bv-home2 .wp-block-button__link {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--h2-ink); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; border: 0;
}
.bv-home2 .wp-block-button__link:hover { background: #1e293b; color: #fff; }
.bv-home2 .is-style-sky .wp-block-button__link { background: var(--h2-sky-text); }
.bv-home2 .is-style-sky .wp-block-button__link:hover { background: #075985; }
.bv-home2 .is-style-light .wp-block-button__link { background: #fff; color: var(--h2-ink); }
.bv-home2 .is-style-light .wp-block-button__link:hover { background: #e0f2fe; color: var(--h2-ink); }
.bv-home2 .is-style-link .wp-block-button__link {
  background: transparent; color: var(--h2-ink); padding: 0 6px;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #94a3b8;
}

/* Hero */
/* 1.3.1: sized by viewport height too, so kicker → buttons fit above the fold on a laptop
 * (1366×657 and 1600×745 usable), with a soft sky glow + dot grid instead of flat white. */
.bv-home2 .bv-h2-hero {
  position: relative; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 4vw, 64px);
  padding-top: clamp(28px, 6vh, 64px); padding-bottom: clamp(48px, 9vh, 96px);
}
.bv-home2 .bv-h2-hero::before { /* full-bleed; .bv-home2 clips the horizontal overflow */
  content: ''; position: absolute; z-index: -1; inset: 0 -100vmax;
  background:
    radial-gradient(ellipse 38% 60% at 72% 50%, rgba(14, 165, 233, .13), transparent 70%),
    radial-gradient(ellipse 30% 45% at 18% 20%, rgba(14, 165, 233, .06), transparent 70%),
    radial-gradient(circle, #cbd5e1 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(180deg, #f1f5f9, var(--h2-bg));
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
          mask-image: linear-gradient(180deg, #000 70%, transparent);
  border-top: 1px solid var(--h2-line);
}
.bv-home2 .bv-h2-hero-text { flex: 1 1 440px; min-width: 0; }
.bv-home2 .bv-h2-hero-art { flex: 1 1 460px; min-width: 0; max-width: max(320px, calc((100vh - 200px) * 640 / 560)); margin-left: auto; }
.bv-home2 .bv-h2-hero-art svg { filter: drop-shadow(0 24px 48px rgba(15, 23, 42, .12)); }
.bv-home2 .bv-h2-hero-art svg { display: block; width: 100%; height: auto; }
.bv-home2 .bv-h2-kicker { font-family: var(--h2-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--h2-muted); margin-bottom: 18px; }
.bv-home2 h1.bv-h2-h1 { font-size: clamp(40px, min(5.4vw, 8.6vh), 80px); line-height: .98; letter-spacing: -0.04em; font-weight: 800; color: var(--h2-ink); }
.bv-home2 h1.bv-h2-h1 mark { background: none; color: var(--h2-sky-text); }
.bv-home2 .bv-h2-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--h2-ink2); margin: clamp(18px, 3vh, 26px) 0 clamp(24px, 4vh, 34px); max-width: 40ch; }

/* Question cards (whole card clickable via stretched heading link) */
.bv-home2 .bv-h2-qs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; padding-bottom: clamp(56px, 8vw, 120px); }
.bv-home2 .bv-h2-q {
  position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 300px;
  padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: #fff; border: 1px solid var(--h2-line);
  transition: transform .2s ease, border-color .2s ease;
}
.bv-home2 .bv-h2-q:hover { transform: translateY(-3px); border-color: #94a3b8; }
.bv-home2 .bv-h2-q h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin-top: auto; }
.bv-home2 .bv-h2-q h2 a { color: var(--h2-ink); text-decoration: none; }
.bv-home2 .bv-h2-q h2 a::after { content: ''; position: absolute; inset: 0; border-radius: 28px; }
.bv-home2 .bv-h2-q p { font-size: 17px; line-height: 1.55; color: var(--h2-muted); max-width: 44ch; }
.bv-home2 .bv-h2-q .bv-h2-go { font-weight: 600; color: var(--h2-sky-text); }

/* Dark band + CSS-only port split */
.bv-home2 .bv-h2-dark { background: var(--h2-ink); color: #e2e8f0; border-radius: 36px; margin: 0 clamp(8px, 2vw, 24px); }
.bv-home2 .bv-h2-dark-in { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(40px, 6vw, 96px) clamp(22px, 5vw, 80px); max-width: 1240px; margin: 0 auto; }
.bv-home2 .bv-h2-col { flex: 1 1 380px; min-width: 0; }
.bv-home2 .bv-h2-dark .bv-h2-tag { color: #94a3b8; }
.bv-home2 .bv-h2-dark h2 { color: #fff; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -0.035em; margin: 12px 0 20px; font-weight: 800; }
.bv-home2 .bv-h2-dark p { color: #cbd5e1; font-size: 18px; line-height: 1.6; margin-bottom: 28px; max-width: 40ch; }
.bv-home2 .bv-split { position: relative; background: #1e293b; border: 1px solid #334155; border-radius: 24px; padding: clamp(20px, 3vw, 32px); }
.bv-home2 .bv-split input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bv-home2 .bv-seg { display: flex; gap: 6px; flex-wrap: wrap; background: var(--h2-ink); border-radius: 999px; padding: 5px; margin-bottom: 26px; width: fit-content; }
.bv-home2 .bv-seg label { font-size: 14px; font-weight: 600; border-radius: 999px; min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; cursor: pointer; color: #cbd5e1; }
.bv-home2 #bv-s-one:checked ~ .bv-seg label[for="bv-s-one"],
.bv-home2 #bv-s-two:checked ~ .bv-seg label[for="bv-s-two"] { background: var(--h2-sky-dark); color: var(--h2-ink); }
.bv-home2 #bv-s-one:focus-visible ~ .bv-seg label[for="bv-s-one"],
.bv-home2 #bv-s-two:focus-visible ~ .bv-seg label[for="bv-s-two"] { outline: 2px solid #fff; outline-offset: 2px; }
.bv-home2 .bv-bar { display: grid; grid-template-columns: 110px 1fr 64px; align-items: center; gap: 14px; margin: 14px 0; }
.bv-home2 .bv-bar span { font-family: var(--h2-mono); }
.bv-home2 .bv-bar .l { font-size: 13px; color: #cbd5e1; }
.bv-home2 .bv-bar .t { height: 18px; background: var(--h2-ink); border-radius: 999px; overflow: hidden; }
.bv-home2 .bv-bar .f { display: block; height: 100%; border-radius: 999px; background: var(--h2-sky-dark); transition: width .35s ease; }
.bv-home2 .bv-bar .w { font-size: 16px; color: #fff; text-align: right; }
.bv-home2 .bv-split .v-one { display: none; }
.bv-home2 #bv-s-one:checked ~ .bv-bars .v-one { display: inline; }
.bv-home2 #bv-s-one:checked ~ .bv-bars .v-two { display: none; }
.bv-home2 .f-laptop { width: 69%; }
.bv-home2 .f-phone { width: 31%; background: #7dd3fc !important; }
.bv-home2 #bv-s-one:checked ~ .bv-bars .f-laptop { width: 100%; }
.bv-home2 #bv-s-one:checked ~ .bv-bars .f-phone { width: 0; }
.bv-home2 .bv-split .src { font-family: var(--h2-mono); font-size: 12px; color: #94a3b8; margin: 18px 0 0; }

/* Sections */
.bv-home2 .bv-h2-sec { padding-top: clamp(64px, 9vw, 136px); }
.bv-home2 .bv-h2-sec > h2, .bv-home2 .bv-h2-sec > .wp-block-group__inner-container > h2, .bv-home2 h2.bv-h2-title { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; max-width: 16ch; color: var(--h2-ink); }
.bv-home2 .bv-h2-sub { font-size: 18px; line-height: 1.55; color: var(--h2-muted); max-width: 42ch; margin: 14px 0 36px; }

.bv-home2 .bv-h2-kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-bottom: 28px; }
.bv-home2 .bv-h2-item { background: #fff; border: 1px solid var(--h2-line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 190px; }
.bv-home2 .bv-h2-num { font-size: 13px; color: var(--h2-sky-text); }
.bv-home2 .bv-h2-item h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; color: var(--h2-ink); }
.bv-home2 .bv-h2-item p { font-size: 15px; line-height: 1.5; color: var(--h2-muted); }

.bv-home2 .bv-h2-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; margin-top: 36px; }
.bv-home2 .bv-h2-topic { border-top: 2px solid var(--h2-ink); padding-top: 22px; }
.bv-home2 .bv-h2-topic h3 { font-size: 28px; letter-spacing: -0.02em; margin-bottom: 6px; color: var(--h2-ink); }
.bv-home2 .bv-h2-topic p { font-size: 16px; color: var(--h2-muted); line-height: 1.55; }
.bv-home2 .bv-h2-topic ul { list-style: none; padding: 0; margin: 18px 0 0; }
.bv-home2 .bv-h2-topic li { border-bottom: 1px solid var(--h2-line); margin: 0; }
.bv-home2 .bv-h2-topic li a { display: flex; align-items: center; min-height: 60px; color: var(--h2-ink); text-decoration: none; font-size: 18px; font-weight: 500; }
.bv-home2 .bv-h2-topic li a:hover { color: var(--h2-sky-text); }

.bv-home2 .bv-h2-method { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border: 1px solid var(--h2-line); border-radius: 28px; background: #fff; overflow: hidden; }
.bv-home2 .bv-h2-m { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--h2-line); }
.bv-home2 .bv-h2-m:last-child { border-right: 0; }
.bv-home2 .bv-h2-m h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 12px; color: var(--h2-ink); }
.bv-home2 .bv-h2-m p { font-size: 16px; line-height: 1.55; color: var(--h2-muted); }

.bv-home2 .bv-h2-band { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; background: #e0f2fe; border-radius: 32px; padding: clamp(28px, 4vw, 56px); margin-bottom: clamp(64px, 9vw, 120px); }
.bv-home2 .bv-h2-band h2 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; max-width: 18ch; color: var(--h2-ink); margin-bottom: 10px; }
.bv-home2 .bv-h2-band p { color: var(--h2-ink2); font-size: 17px; max-width: 44ch; line-height: 1.55; }

@media (max-width: 640px) {
  .bv-home2 .bv-bar { grid-template-columns: 84px 1fr 52px; }
  .bv-home2 .bv-h2-m { border-right: 0; border-bottom: 1px solid var(--h2-line); }
  .bv-home2 .bv-h2-m:last-child { border-bottom: 0; }
  .bv-home2 .bv-h2-dark { border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .bv-home2 .bv-h2-q, .bv-home2 .bv-bar .f { transition: none; }
}

/* Hero v3 (1.6.0): dark navy hero with a moving wall of the real guide covers.
 * Dark by design, so browser night modes (Brave, Dark Reader) have nothing to wash out. */
.bv-home2 .bv-h3-hero { color: #e2e8f0; min-height: min(calc(100vh - 80px), 760px); padding-top: clamp(40px, 8vh, 88px); padding-bottom: clamp(48px, 9vh, 96px); }
.bv-home2 .bv-h3-hero::before {
  background:
    radial-gradient(ellipse 45% 70% at 78% 45%, rgba(56, 189, 248, .22), transparent 70%),
    radial-gradient(ellipse 35% 50% at 10% 10%, rgba(56, 189, 248, .10), transparent 70%),
    #0b1220;
  -webkit-mask-image: none; mask-image: none; border-top: 0;
}
.bv-home2 .bv-h3-hero .bv-h2-hero-text { flex: 1 1 560px; max-width: 640px; position: relative; z-index: 2; }
.bv-home2 .bv-h3-hero .bv-h2-kicker { color: #7dd3fc; }
.bv-home2 .bv-h3-hero h1.bv-h2-h1 { color: #fff; font-size: clamp(40px, min(4.6vw, 7.6vh), 72px); }
.bv-home2 .bv-h3-hero h1.bv-h2-h1 mark { color: #38bdf8; }
.bv-home2 .bv-h3-hero .bv-h2-lead { color: #cbd5e1; }
.bv-home2 .bv-h3-hero .is-style-sky .wp-block-button__link { background: #38bdf8; color: #0b1220; }
.bv-home2 .bv-h3-hero .is-style-sky .wp-block-button__link:hover { background: #7dd3fc; color: #0b1220; }
.bv-home2 .bv-h3-hero .is-style-link .wp-block-button__link { color: #e2e8f0; text-decoration-color: #475569; }
.bv-home2 .bv-h3-hero .is-style-link .wp-block-button__link:hover { color: #fff; text-decoration-color: #38bdf8; }
.bv-home2 .bv-h3-hero :focus-visible { outline-color: #7dd3fc; }

/* The wall: 3 columns drifting at different speeds, tilted, faded at the edges */
.bv-home2 .bv-h3-art { flex: 1 1 420px; max-width: none; align-self: stretch; position: relative; min-height: 520px; }
.bv-home2 .bv-wall { position: absolute; inset: calc(-1 * clamp(40px, 8vh, 88px)) -12vw calc(-1 * clamp(48px, 9vh, 96px)) -4vw; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-composite: intersect; }
.bv-home2 .bv-wall-tilt { position: absolute; inset: -30% -10%; display: flex; gap: 18px; justify-content: center; transform: rotate(-9deg); }
.bv-home2 .bv-wall-col { flex: 0 0 min(300px, 26vw); }
.bv-home2 .bv-wall-track { display: flex; flex-direction: column; gap: 18px; animation: bv-wall-up 46s linear infinite; }
.bv-home2 .bv-wall-c2 .bv-wall-track { animation-name: bv-wall-down; animation-duration: 54s; }
.bv-home2 .bv-wall-c3 .bv-wall-track { animation-duration: 40s; }
.bv-home2 .bv-wall:hover .bv-wall-track { animation-play-state: paused; }
.bv-home2 .bv-wall-tile { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); outline-offset: 4px; transition: transform .25s ease; }
.bv-home2 .bv-wall-tile:hover { transform: scale(1.04); }
.bv-home2 .bv-wall-tile img { display: block; width: 100%; height: auto; aspect-ratio: 768 / 403; }
@keyframes bv-wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 9px)); } }
@keyframes bv-wall-down { from { transform: translateY(calc(-50% - 9px)); } to { transform: translateY(0); } }

/* Phone / small tablet: text first, then two rows sliding sideways */
@media (max-width: 900px) {
  .bv-home2 .bv-h3-hero { min-height: 0; padding-top: 32px; padding-bottom: 0; gap: 28px; }
  .bv-home2 .bv-h3-art { flex-basis: 100%; min-height: 0; margin: 0 calc(-1 * var(--h2-pad)); }
  .bv-home2 .bv-wall { position: relative; inset: auto; padding: 4px 0 40px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .bv-home2 .bv-wall-tilt { position: static; inset: auto; transform: none; flex-direction: column; gap: 14px; }
  .bv-home2 .bv-wall-col { flex: none; overflow: visible; }
  .bv-home2 .bv-wall-c3 { display: none; }
  .bv-home2 .bv-wall-track { flex-direction: row; gap: 14px; width: max-content; animation-name: bv-wall-left; animation-duration: 38s; }
  .bv-home2 .bv-wall-c2 .bv-wall-track { animation-name: bv-wall-right; animation-duration: 44s; }
  .bv-home2 .bv-wall-tile { width: 250px; flex: none; border-radius: 12px; }
}
@keyframes bv-wall-left { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
@keyframes bv-wall-right { from { transform: translateX(calc(-50% - 7px)); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .bv-home2 .bv-wall-track { animation: none; }
}
