/* ============================================================================
   voice.css — the expressive layer for ventplus.in
   ----------------------------------------------------------------------------
   Implements the components described in _docs/VOICE.md.

   ADDITIVE ONLY. This file must never redefine a selector that exists in
   style.css, co2-widget.css, greenhouse-widget.css or content.css. That is what
   guarantees every pre-existing page still renders exactly as it did.
   Every class here is namespaced with a v- prefix for that reason.

   Cache-buster: bump ?v= in _build/render.py HEAD on any edit to this file.
   ========================================================================== */

:root {
  --v-void:        #0b1a14;   /* darker than --ink; the "invisible" ground   */
  --v-void-soft:   #12261e;
  --v-glow:        #7ac142;   /* == --leaf-bright, restated for clarity      */
  --v-breath:      rgba(122, 193, 66, 0.14);
  --v-rule:        rgba(246, 243, 234, 0.16);
  --v-measure:     34rem;     /* editorial reading width                     */
}

/* ---------------------------------------------------------------- 1. OPENER
   Move 1 — open on a puzzle. Oversized editorial question, lots of air.     */

.v-opener {
  /* Less air above than below: the opener sits directly under the sticky
     topbar, and a symmetric pad read as a hole between the two. */
  padding: clamp(1.5rem, 3.5vh, 2.75rem) var(--gutter) clamp(3.25rem, 8vh, 6.5rem);
  background: var(--paper);
}
.v-opener-inner { max-width: 62rem; margin: 0 auto; }

.v-opener-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.v-opener-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.28;
}

.v-opener-q {
  /* matched to .detail-hero-title (the /offices/ hero) */
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.v-opener-q em {
  font-style: italic;
  color: var(--leaf);
}

.v-opener-answer {
  margin: clamp(2rem, 5vh, 3.5rem) 0 0;
  max-width: var(--v-measure);
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  line-height: 1.62;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------- 2. BELIEF
   The Golden Circle WHY. Full-bleed dark band, one sentence, nothing else.
   This is the most important block on the site. It must feel like a pause.  */

.v-belief {
  position: relative;
  background: var(--v-void);
  color: var(--paper);
  padding: clamp(3.5rem, 10vh, 7.5rem) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
/* a slow exhale behind the words */
.v-belief::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(38% 46% at 22% 32%, var(--v-breath) 0%, transparent 62%),
    radial-gradient(32% 40% at 78% 68%, rgba(232,161,60,0.10) 0%, transparent 60%);
  animation: v-breathe 19s ease-in-out infinite alternate;
}
@keyframes v-breathe {
  from { transform: scale(1)    translate3d(0, 0, 0); opacity: 0.75; }
  to   { transform: scale(1.16) translate3d(2%, -3%, 0); opacity: 1; }
}

.v-belief-inner { max-width: 54rem; margin: 0 auto; text-align: center; }

.v-belief-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--v-glow);
  margin: 0 0 2rem;
}

.v-belief-line {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 5.6vw, 4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.v-belief-line strong {
  font-weight: 500;
  color: var(--leaf-bright);
}

.v-belief-sub {
  margin: 2.25rem auto 0;
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(246, 243, 234, 0.68);
}

/* --------------------------------------------------------------- 3. REFRAIN
   The repeated line. Deliberately unadorned — repetition does the work.     */

.v-refrain {
  padding: clamp(2.25rem, 5.5vh, 3.75rem) var(--gutter);
  background: var(--paper-deep);
  text-align: center;
}
.v-refrain p {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.25rem, 3.4vw, 2.15rem);
  line-height: 1.32;
  color: var(--ink);
  max-width: 44rem;
  margin: 0 auto;
  text-wrap: balance;
}
.v-refrain p span { color: var(--danger); font-style: normal; font-weight: 500; }

/* ---------------------------------------------------------------- 4. REVEAL
   Move 2 — the withheld payoff. Once per page. Amber, because it interrupts. */

.v-reveal {
  padding: clamp(2.5rem, 6.5vh, 4.75rem) var(--gutter);
  background: var(--ink);
  color: var(--paper);
}
.v-reveal-inner {
  max-width: 46rem;
  margin: 0 auto;
  border-left: 3px solid var(--amber);
  padding-left: clamp(1.25rem, 4vw, 2.75rem);
}
.v-reveal-cue {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.1rem;
}
.v-reveal-body {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 3.2vw, 2.1rem);
  line-height: 1.36;
  margin: 0;
  text-wrap: pretty;
}
.v-reveal-foot {
  margin: 1.6rem 0 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(246, 243, 234, 0.7);
}

/* -------------------------------------------------------------- 5. EVIDENCE
   Move 5 — "this is not opinion, this is biology." Numbers with sources.
   Flat, factual styling on purpose. This block must never look excited.     */

.v-evidence {
  padding: clamp(2.5rem, 6.5vh, 4.5rem) var(--gutter);
  background: var(--paper);
}
.v-evidence-inner { max-width: 68rem; margin: 0 auto; }

.v-evidence-head {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
}

.v-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.v-stat { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.v-stat-n {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: block;
}
.v-stat-n sup { font-size: 0.42em; vertical-align: super; color: var(--leaf); }
.v-stat-t {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.v-stat-src {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--ink-soft);
  opacity: 0.72;
}

/* ------------------------------------------------------------ 6. PHOTO BREAK
   Full-bleed human image. Warmth, not decoration — it must show a person or
   a place the reader recognises as their own.                               */

.v-photo {
  position: relative;
  min-height: clamp(22rem, 62vh, 38rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--v-void);
}
/* The <picture> wrapper must not become a grid item of its own — the <img>
   inside it is absolutely positioned, so the wrapper would contribute an
   empty track and push the caption into a second row. */
.v-photo picture {
  display: contents;
}

.v-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.v-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(11, 26, 20, 0.92) 0%,
    rgba(11, 26, 20, 0.55) 42%,
    rgba(11, 26, 20, 0.15) 100%);
}
.v-photo-cap {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter);
  max-width: 46rem;
}
.v-photo-cap h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 4.6vw, 3rem);
  line-height: 1.14;
  color: var(--paper);
  margin: 0 0 0.9rem;
  text-wrap: balance;
}
.v-photo-cap p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(246, 243, 234, 0.78);
}

/* ------------------------------------------------------- 7. THE RISING ROOM
   Scroll-driven: the ppm number climbs as you read, so the reader watches
   the problem happen to them rather than reading that it happens.
   Driven by js/voice.js; degrades to a static readable figure without JS.   */

.v-room {
  position: relative;
  background: var(--v-void);
  color: var(--paper);
  padding: clamp(2.5rem, 7vh, 5rem) var(--gutter);
}
.v-room-inner {
  max-width: 60rem;
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) {
  .v-room-inner { grid-template-columns: 1fr 1fr; }
}

.v-room-dial { text-align: center; }
.v-room-ppm {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4.5rem, 17vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  display: block;
  font-variant-numeric: tabular-nums;
  transition: color 0.6s ease;
  color: var(--leaf-bright);
}
.v-room-ppm[data-band="moderate"] { color: var(--amber); }
.v-room-ppm[data-band="poor"]     { color: var(--amber-deep); }
.v-room-ppm[data-band="severe"]   { color: var(--danger); }

.v-room-unit {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 243, 234, 0.5);
  display: block;
  margin-top: 1rem;
}
.v-room-verdict {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  color: rgba(246, 243, 234, 0.86);
  min-height: 1.5em;
}

.v-room-clock {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--v-glow);
  display: block;
  margin-top: 0.4rem;
}

.v-room-copy h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.16;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}
.v-room-copy p {
  margin: 0 0 1rem;
  line-height: 1.65;
  color: rgba(246, 243, 234, 0.74);
}

/* track showing where the number sits */
.v-room-track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  margin-top: 2rem;
  background: linear-gradient(to right,
    var(--leaf-bright) 0%, var(--leaf-bright) 15%,
    var(--amber) 38%, var(--amber-deep) 62%, var(--danger) 100%);
  opacity: 0.85;
}
.v-room-needle {
  position: absolute;
  top: -6px;
  width: 2px;
  height: 18px;
  background: var(--paper);
  border-radius: 1px;
  transition: left 0.35s ease-out;
  left: 4%;
}

/* ----------------------------------------------------------- 8. THE CONTRAST
   Move 3 — antithesis, rendered as two panels. X, not Y.                    */

.v-contrast {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(22, 53, 42, 0.14);
}
@media (min-width: 820px) { .v-contrast { grid-template-columns: 1fr 1fr; } }

.v-contrast > div { padding: clamp(2.5rem, 7vw, 5rem) var(--gutter); }
.v-contrast-x { background: var(--paper-deep); }
.v-contrast-y { background: var(--ink); color: var(--paper); }

.v-contrast h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
  opacity: 0.7;
}
.v-contrast p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  line-height: 1.32;
  margin: 0;
  text-wrap: pretty;
}
.v-contrast-y p strong { color: var(--leaf-bright); font-weight: 500; }

/* ------------------------------------------------------------- 9. THE CLOSE
   Move 7 — end on the reader, never the product.                            */

.v-close {
  padding: clamp(3.25rem, 8.5vh, 6rem) var(--gutter);
  background: var(--v-void);
  color: var(--paper);
  text-align: center;
}
.v-close-line {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 5vw, 3.4rem);
  line-height: 1.16;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-wrap: balance;
}
.v-close-line strong { color: var(--leaf-bright); font-weight: 500; }

/* --------------------------------------------------- 9b. LINKS ON DARK
   style.css only styles links inside its own components, so an inline <a>
   in a voice band falls back to the browser default blue/purple. On the
   dark ground that is both unreadable and cheap-looking.                   */

.v-reveal a,
.v-belief a,
.v-room-copy a,
.v-close a:not(.btn),
.v-photo-cap a,
.v-contrast-y a {
  color: var(--leaf-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 193, 66, 0.42);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.v-reveal a:hover,
.v-belief a:hover,
.v-room-copy a:hover,
.v-close a:not(.btn):hover,
.v-photo-cap a:hover,
.v-contrast-y a:hover {
  color: var(--paper);
  border-bottom-color: var(--paper);
}
.v-reveal a:visited,
.v-belief a:visited,
.v-room-copy a:visited,
.v-photo-cap a:visited,
.v-contrast-y a:visited { color: var(--leaf-bright); }

/* the same problem on the light bands */
.v-opener a, .v-refrain a, .v-evidence a {
  color: var(--leaf);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 157, 105, 0.4);
}
.v-opener a:hover, .v-refrain a:hover, .v-evidence a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------------------------------------------------------------- 12. BUY
   The transactional block. Deliberately the most solid thing on the page:
   a buyer who has decided should not have to hunt.                         */

.v-buy {
  padding: clamp(2.5rem, 6vh, 4.25rem) var(--gutter);
  background: var(--paper-deep);
  border-top: 1px solid rgba(22, 53, 42, 0.12);
}
.v-buy-inner {
  max-width: 46rem;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid rgba(22, 53, 42, 0.14);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 5vw, 3.25rem);
  box-shadow: 0 18px 50px -28px rgba(11, 26, 20, 0.45);
}

.v-buy-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0 0 1rem;
}
.v-buy-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  line-height: 1.16;
  color: var(--ink);
  margin: 0 0 1rem;
  text-wrap: balance;
}
.v-buy-lead {
  margin: 0 0 1.75rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.v-buy-price {
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
}
.v-buy-price strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.v-buy-price span {
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.v-buy-points {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.v-buy-points li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.v-buy-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf-bright);
}

.v-buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.v-buy-btn { font-size: 1.02rem; }

.v-buy-note {
  margin: 1.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.v-buy-note a { color: var(--leaf); text-decoration: none; border-bottom: 1px solid rgba(79,157,105,0.4); }
.v-buy-note a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* in-body transactional link */
.v-buy-inline {
  display: inline-block;
  font-weight: 500;
  color: var(--leaf);
  text-decoration: none;
  border-bottom: 2px solid rgba(122, 193, 66, 0.55);
}
.v-buy-inline:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ----------------------------------------------------- 13. BLOG INDEX HEAD
   The "BLOGS" masthead.                                                    */

.v-blog-head {
  padding: clamp(2.5rem, 6.5vh, 4.5rem) var(--gutter) clamp(1.5rem, 3.5vh, 2.25rem);
  background: var(--v-void);
  color: var(--paper);
  text-align: center;
}
.v-blog-mast {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 13vw, 8rem);
  line-height: 0.94;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--paper);
}
.v-blog-h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 4.2vw, 2.6rem);
  line-height: 1.18;
  margin: 1.25rem auto 0;
  max-width: 32rem;
  color: var(--paper);
  text-wrap: balance;
}

.v-blog-mast-sub {
  margin: 1.5rem auto 0;
  max-width: 40rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(246, 243, 234, 0.7);
}

/* the top-5 featured strip */
.v-top5 { padding: clamp(2.25rem, 5.5vh, 3.75rem) var(--gutter); background: var(--paper); }
.v-top5-inner { max-width: 68rem; margin: 0 auto; }
.v-top5-head {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 2rem;
  display: flex; align-items: center; gap: 0.9rem;
}
.v-top5-head::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.28; }

.v-top5-list { display: grid; gap: 0; }
.v-top5-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 2.25rem);
  align-items: start;
  padding: clamp(1.25rem, 3.5vw, 2rem) 0;
  border-top: 1px solid rgba(22, 53, 42, 0.14);
  text-decoration: none;
  transition: background 0.2s ease;
}
.v-top5-item:last-child { border-bottom: 1px solid rgba(22, 53, 42, 0.14); }
.v-top5-item:hover { background: var(--paper-deep); }

.v-top5-n {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  color: var(--leaf);
  min-width: 1.4em;
}
/* Both are <span> inside an <a> (a block element cannot be nested in an
   anchor's flow here), so they must be made block-level explicitly or the
   title and the description render welded onto the same line. */
.v-top5-t {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.8vw, 1.65rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.v-top5-d { display: block; margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft); }

/* ------------------------------------------------- 14. INLINE SOURCE NOTE
   Any claim about human performance carries its citation with it. VOICE.md
   section 5: the emotion is licensed by the evidence sitting next to it.    */

.why-lede-src {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* ---------------------------------------------------- 15. THE HONEST NOTE
   What the product is NOT. Plain, flat, unexcited -- deliberately the least
   decorated block on the page, because that is what makes it believable.   */

.v-notpurifier {
  padding: clamp(2rem, 5vh, 3.25rem) var(--gutter);
  background: var(--paper);
  border-top: 1px solid rgba(22, 53, 42, 0.14);
}
.v-notpurifier-inner {
  max-width: 44rem;
  margin: 0 auto;
  border-left: 3px solid var(--ink-soft);
  padding-left: clamp(1rem, 3vw, 2rem);
}
.v-notpurifier h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 0.85rem;
}
.v-notpurifier p {
  margin: 0 0 0.8rem;
  font-size: 0.98rem;
  line-height: 1.62;
  color: var(--ink-soft);
}
.v-notpurifier p:last-child { margin-bottom: 0; }
.v-notpurifier strong { color: var(--ink); }

/* ------------------------------------------------------------- 10. UTILITIES */

.v-lift {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.v-lift.is-in { opacity: 1; transform: none; }
.v-lift.d1 { transition-delay: 0.09s; }
.v-lift.d2 { transition-delay: 0.18s; }
.v-lift.d3 { transition-delay: 0.27s; }

/* ------------------------------------------------------ 11. MOTION SAFETY
   A large share of ventplus traffic is mid-range Android. Motion is a
   nice-to-have; legibility is not. Anyone who has asked their OS for less
   motion gets a fully static, fully readable page.                          */

@media (prefers-reduced-motion: reduce) {
  .v-belief::before { animation: none; }
  .v-lift { opacity: 1; transform: none; transition: none; }
  .v-room-ppm, .v-room-needle { transition: none; }
}
