/* AquaRev Water — Hilton Grand Vacations Club Paradise Case Study Stylesheet
 * Source: https://github.com/jeffatley-web/hiltonlv
 */

:root {
    --navy: #0A2540;
    --deep: #0E3B5C;
    --teal: #00A3B4;
    --aqua: #5BC4D1;
    --aqua-soft: #E6F6F8;
    --sand: #F4F1EC;
    --paper: #FAFAF7;
    --ink:  #1A1A1A;
    --muted:#6B7280;
    --green:#0F8F5C;
    --green-soft:#E6F4EE;
    --line: #E5E7EB;
    --card: #FFFFFF;
    --gold: #B89B5E;
  }
  .aquarev-case-study, .aquarev-case-study * { box-sizing: border-box; }
  .aquarev-case-study { margin: 0; padding: 0; }
  .aquarev-case-study {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    background: #040f1e;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
  }

  .doc {
    max-width: 1180px;
    margin: 32px auto;
    background: var(--card);
    box-shadow: 0 8px 40px rgba(10,37,64,0.10);
    border-radius: 16px;
    overflow: hidden;
  }

  /* IMAGE SLOTS — replace src= with CDN URLs */
  .img-slot {
    position: relative;
    background: linear-gradient(135deg, #E8EEF5 0%, #D8E4EE 100%);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
  }
  .img-slot.aspect-21x9 { aspect-ratio: 21/9; }
  .img-slot.aspect-16x9 { aspect-ratio: 16/9; }
  .img-slot.aspect-4x3  { aspect-ratio: 4/3; }
  .img-slot.aspect-1x1  { aspect-ratio: 1/1; }
  .img-slot img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
  }
  .img-slot img[src=""], .img-slot img:not([src]) { display: none; }
  .img-slot .slot-label {
    position: relative; z-index: 1;
    padding: 12px 18px;
    background: rgba(10,37,64,0.92); color: #fff;
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    border-radius: 6px; font-weight: 700;
    display: flex; gap: 10px; align-items: center;
  }
  .img-slot .slot-label .key {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: var(--gold); color: var(--navy); padding: 2px 8px;
    border-radius: 3px; font-size: 10px; letter-spacing: 0.06em;
  }
  /* When an actual image is loaded, hide the label */
  .img-slot img[src]:not([src=""]) ~ .slot-label { display: none; }

  /* TOP RIBBON — AquaRev / Hilton co-branding header */
  .ribbon {
    background: linear-gradient(135deg, #040f1e 0%, var(--navy) 50%, var(--deep) 100%);
    color: #fff;
    padding: 28px 56px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
  }
  .ribbon::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: linear-gradient(90deg, var(--teal) 0%, var(--aqua) 50%, transparent 100%);
  }
  .ribbon .brand {
    display: flex; flex-direction: column; gap: 4px;
  }
  .ribbon .brand .crumb {
    text-transform: uppercase; letter-spacing: 0.32em; font-size: 28px;
    font-weight: 800; color: var(--aqua);
    line-height: 1;
  }
  .ribbon .brand .title {
    font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
    color: #fff; opacity: 0.9;
  }
  .ribbon .logos {
    display: flex; align-items: center; gap: 24px;
  }
  .ribbon .logos .aqua-logo {
    height: 18px; width: auto; display: block;
    opacity: 0.98;
  }
  .ribbon .ritz {
    display: flex; align-items: center;
    border-left: 1px solid rgba(255,255,255,0.18);
    padding-left: 24px;
  }
  .ribbon .ritz img {
    height: 44px; width: auto; display: block;
    filter: brightness(0) invert(1);
    opacity: 0.95;
  }

  /* HERO — editorial 50/50 split layout */
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    min-height: 540px;
  }
  .hero .hero-text {
    padding: 64px 56px;
    display: flex; flex-direction: column; justify-content: center;
    color: var(--ink);
    background: #fff;
    position: relative;
  }
  .hero .hero-text::before {
    content: ""; display: block;
    width: 56px; height: 3px;
    background: var(--gold);
    margin-bottom: 20px;
  }
  .hero .crumb {
    text-transform: uppercase; letter-spacing: 0.22em; font-size: 11px;
    font-weight: 700; color: var(--teal);
  }
  .hero h1 {
    font-size: 46px; line-height: 1.04; margin: 14px 0 18px;
    font-weight: 800; letter-spacing: -0.025em; color: var(--navy);
  }
  .hero .sub {
    font-size: 17px; color: #2a3441; line-height: 1.5;
    margin-bottom: 28px;
  }
  .hero .hero-meta {
    display: flex; flex-direction: column; gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .hero .hero-meta .pill {
    font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--navy);
    background: var(--paper);
    border: 1px solid var(--line);
    border-bottom: none;
    padding: 12px 16px;
    display: grid; grid-template-columns: 110px 1fr; align-items: center;
    gap: 12px;
    border-radius: 0;
  }
  .hero .hero-meta .pill:first-child { border-top-left-radius: 4px; border-top-right-radius: 4px; }
  .hero .hero-meta .pill:last-child { border-bottom: 1px solid var(--line); border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }
  .hero .hero-meta .pill b {
    color: var(--teal); font-size: 11px;
    border-right: 1px solid var(--line);
    padding-right: 12px; margin-right: 0;
    letter-spacing: 0.14em;
  }
  .hero .hero-img {
    position: relative;
    aspect-ratio: auto;
    min-height: 540px;
    padding: 8px 8px 4px 0;
    background: #fff;
  }
  .hero .hero-img > img,
  .hero .hero-img > .credit {
    border-radius: 10px;
  }
  .hero .hero-img img {
    position: absolute; top: 8px; right: 8px; bottom: 4px; left: 0;
    width: calc(100% - 8px); height: calc(100% - 12px);
    object-fit: cover; object-position: 85% 40%;
    display: block;
    box-shadow: 0 2px 8px rgba(10,37,64,0.08);
  }
  .hero .hero-img .slot-label { display: none; }
  .hero .hero-img .credit {
    position: absolute; bottom: 16px; right: 20px;
    background: rgba(10,37,64,0.75); color: #fff;
    font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 4px; font-weight: 700;
    z-index: 2;
  }
  @media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero .hero-img { min-height: 380px; aspect-ratio: 16/9; }
    .hero { min-height: 0; }
  }

  /* HERO PHOTO STRIP — 2 photos under the hero, full width split */
  .hero-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #fff;
    padding: 4px 8px 8px;
    border-bottom: 1px solid var(--line);
  }
  .hero-strip-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--paper);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(10,37,64,0.08);
  }
  .hero-strip-img img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
  }
  @media (max-width: 700px) {
    .hero-strip { grid-template-columns: 1fr; }
  }

  /* HEADLINE STAT STRIP */
  .stat-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .stat-strip .stat {
    padding: 28px 18px;
    text-align: center;
    border-right: 1px solid var(--line);
  }
  .stat-strip .stat:last-child { border-right: none; }
  .stat-strip .num {
    font-size: 38px; font-weight: 800; color: var(--teal);
    letter-spacing: -0.02em; line-height: 1;
  }
  .stat-strip .num.green { color: var(--green); }
  .stat-strip .lbl {
    font-size: 11px; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.12em; margin-top: 10px;
    line-height: 1.4;
  }

  /* SECTION */
  .section { padding: 56px 56px; }
  .section.tight { padding: 40px 56px; }
  .section + .section { border-top: 1px solid var(--line); }
  .section .eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--teal);
  }
  .section h2 {
    font-size: 32px; font-weight: 800; letter-spacing: -0.015em;
    margin: 8px 0 18px; color: var(--navy); line-height: 1.15;
  }
  .section h3 {
    font-size: 18px; font-weight: 700; color: var(--navy);
    margin: 24px 0 8px;
  }
  .section p {
    font-size: 16px; max-width: 820px; color: #2a3441;
  }
  .section p.lead {
    font-size: 17px; max-width: 820px;
  }
  .two-col {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start;
  }
  .two-col p { max-width: none; }

  /* PULL TESTIMONIAL */
  .testimonial {
    background: var(--navy);
    color: #fff;
    padding: 56px 56px;
    display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center;
    position: relative;
  }
  .testimonial .img-slot {
    border-radius: 50%; width: 220px; height: 220px;
    background: linear-gradient(135deg, #143654 0%, #0A2540 100%);
  }
  .testimonial .img-slot .slot-label { font-size: 9px; padding: 8px 10px; }
  .testimonial .quote-mark {
    font-family: Georgia, serif;
    font-size: 96px; line-height: 0.6; color: var(--aqua);
    margin-bottom: -20px;
  }
  .testimonial .quote {
    font-size: 30px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em;
    max-width: 760px;
  }
  .testimonial .attr {
    margin-top: 18px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
    opacity: 0.85; font-weight: 700;
  }
  .testimonial .attr .role { display: block; opacity: 0.7; font-weight: 600; margin-top: 4px; }

  /* PILOT TIMELINE */
  .pilot-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px;
    margin-top: 24px;
  }
  .pilot-card .row {
    display: grid;
    grid-template-columns: 200px 1fr;
    column-gap: 40px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    align-items: start;
  }
  .pilot-card .row:first-child { border-top: none; padding-top: 4px; }
  .pilot-card .row:last-child { padding-bottom: 4px; }
  .pilot-card .row .k {
    font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--muted);
    line-height: 1.5;
    padding-top: 3px;
  }
  .pilot-card .row .v {
    font-size: 15px; color: var(--ink);
    line-height: 1.6;
  }
  .pilot-card .row .v b { color: var(--navy); }

  /* QUANTITATIVE RESULTS GRID */
  .results-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin-top: 32px;
  }
  .result {
    background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 28px 24px;
    position: relative; overflow: hidden;
  }
  .result::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--teal);
  }
  .result.water::before  { background: var(--aqua); }
  .result.salt::before   { background: var(--teal); }
  .result.bicarb::before { background: var(--navy); }
  .result.acid::before   { background: var(--gold); }
  .result.energy::before { background: #5B6BC4; }
  .result.cost::before   { background: var(--green); }
  .result .pct {
    font-size: 56px; font-weight: 800; letter-spacing: -0.03em;
    color: var(--navy); line-height: 1;
  }
  .result.cost .pct { color: var(--green); }
  .result .name {
    font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--muted); margin-top: 12px;
  }
  .result .desc {
    font-size: 14px; color: #3a4452; margin-top: 8px;
  }

  /* COST STORY — chemical cards */
  .chems {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin-top: 28px;
  }
  .chem {
    background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 24px;
    position: relative; overflow: hidden;
  }
  .chem::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  }
  .chem.acid::before { background: var(--gold); }
  .chem.salt::before { background: var(--teal); }
  .chem.bicarb::before { background: var(--navy); }
  .chem .name {
    font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
  }
  .chem .title {
    font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 8px;
    letter-spacing: -0.01em;
  }
  .chem .stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-top: 14px;
    border-top: 1px solid var(--line); padding-top: 14px;
  }
  .chem .stat .k { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
  .chem .stat .v { font-size: 17px; font-weight: 700; color: var(--navy); margin-top: 2px; }
  .chem .savings {
    margin-top: 14px; padding: 10px 14px;
    background: var(--green-soft); color: var(--green);
    border-radius: 8px; font-weight: 700;
    display: flex; align-items: baseline; justify-content: space-between;
  }
  .chem .savings .amt { font-size: 20px; }
  .chem .savings .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; }

  /* VOLUME TIMELINE — monthly line chart, 2023 vs 2023 */
  .vol-section { background: #fff; }
  .vol-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin-top: 32px;
  }
  .vol-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 22px 20px 20px;
    position: relative; overflow: hidden;
  }
  .vol-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  }
  .vol-card.acid::before   { background: var(--gold); }
  .vol-card.salt::before   { background: var(--teal); }
  .vol-card.bicarb::before { background: var(--navy); }
  .vol-card .vol-name {
    font-size: 16px; font-weight: 800; color: var(--navy);
    letter-spacing: -0.01em; margin-bottom: 2px;
  }
  .vol-card .vol-unit {
    font-size: 10px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700;
    margin-bottom: 14px;
  }
  .vol-card .vol-totals {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-bottom: 10px; margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
  }
  .vol-card .vol-totals .total-block .yr {
    font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--muted);
  }
  .vol-card .vol-totals .total-block .num {
    font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.1;
    letter-spacing: -0.01em;
  }
  .vol-card .vol-totals .total-block.post .num { color: var(--green); }
  .vol-card .vol-totals .delta {
    font-size: 11px; font-weight: 800; color: var(--green);
    background: var(--green-soft); padding: 4px 10px;
    border-radius: 999px; letter-spacing: 0.06em;
  }
  .vol-card .vol-totals .delta.neutral {
    color: var(--muted); background: #F5F7FA;
  }
  .vol-chart { width: 100%; height: auto; display: block; }
  .vol-marker {
    margin-top: 12px; padding: 9px 12px;
    background: var(--paper); color: var(--navy);
    border-radius: 8px; border: 1px solid var(--line);
    font-size: 11px; font-weight: 600; line-height: 1.4;
  }
  .vol-marker b { color: var(--green); }
  .vol-legend {
    display: flex; gap: 24px; margin-top: 24px;
    align-items: center; font-size: 12px; color: var(--muted);
    flex-wrap: wrap;
  }
  .vol-legend .legend-item { display: flex; align-items: center; }
  .vol-legend .swatch {
    display: inline-block; width: 22px; height: 3px;
    border-radius: 2px; margin-right: 8px;
  }
  .vol-footnote {
    margin-top: 10px; font-size: 11px; color: var(--muted);
    line-height: 1.5; font-style: italic;
  }

  /* FORWARD-LOOKING OUTLOOK */
  .forward-hero {
    background: linear-gradient(135deg, #0F8F5C 0%, #15a268 60%, #0a7548 100%);
    color: #fff;
    border-radius: 16px;
    padding: 40px 44px;
    margin: 32px 0 28px;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px;
    align-items: center;
    box-shadow: 0 8px 24px rgba(15,143,92,0.18);
  }
  .forward-hero .fh-num {
    font-size: 64px; font-weight: 800;
    letter-spacing: -0.025em; line-height: 1;
  }
  .forward-hero .fh-lbl {
    font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
    margin-top: 12px; opacity: 0.95; font-weight: 700;
  }
  .forward-hero .fh-sub {
    font-size: 14px; margin-top: 6px; opacity: 0.85;
  }
  .forward-hero .fh-context {
    border-left: 1px solid rgba(255,255,255,0.25);
    padding-left: 28px;
    font-size: 13px; line-height: 1.6;
  }
  .forward-hero .fh-context b { font-weight: 700; }
  .forward-hero .fh-context .ctx-row {
    display: flex; justify-content: space-between;
    padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .forward-hero .fh-context .ctx-row:last-child { border-bottom: none; }

  .config-table { margin-top: 8px; }
  .config-table table {
    width: 100%; border-collapse: collapse;
    font-variant-numeric: tabular-nums;
  }
  .config-table thead th {
    text-align: left; font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--muted); padding: 12px 14px;
    border-bottom: 2px solid var(--line);
    background: var(--paper);
  }
  .config-table thead th:nth-child(2),
  .config-table thead th:nth-child(3),
  .config-table thead th:nth-child(4) { text-align: right; }
  .config-table tbody td {
    padding: 14px; border-bottom: 1px solid var(--line);
    font-size: 14px; color: var(--ink);
  }
  .config-table tbody td:nth-child(2),
  .config-table tbody td:nth-child(3),
  .config-table tbody td:nth-child(4) { text-align: right; font-weight: 600; }
  .config-table tbody tr.pilot-row td {
    background: var(--green-soft);
    color: var(--green);
    font-weight: 800;
  }
  .config-table tbody tr.pilot-row td:first-child::after {
    content: " · PILOT";
    font-size: 10px; letter-spacing: 0.14em;
    background: var(--green); color: #fff;
    padding: 2px 8px; border-radius: 999px;
    margin-left: 8px; font-weight: 800;
  }
  .config-table tbody tr.total-row td {
    border-bottom: none; border-top: 2px solid var(--navy);
    padding-top: 16px; font-weight: 800; font-size: 15px;
    color: var(--navy);
  }
  .config-table tbody tr.total-row td:nth-child(4) {
    color: var(--green); font-size: 16px;
  }
  .config-extra {
    margin-top: 14px; padding: 12px 16px;
    background: var(--paper); border-radius: 8px;
    font-size: 12px; color: var(--muted);
    display: flex; justify-content: space-between;
  }

  .line-items-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin-top: 16px;
  }
  .li-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 22px 24px;
    position: relative; overflow: hidden;
  }
  .li-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  }
  .li-card.chemicals::before { background: var(--teal); }
  .li-card.water::before    { background: var(--aqua); }
  .li-card.energy::before   { background: var(--gold); }
  .li-card .li-name {
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--muted);
  }
  .li-card .li-num {
    font-size: 28px; font-weight: 800; color: var(--navy);
    letter-spacing: -0.015em; margin: 6px 0 4px;
  }
  .li-card .li-sub {
    font-size: 12px; color: var(--muted); line-height: 1.5;
  }

  .multi-year-card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: 12px; padding: 24px 28px; margin-top: 16px;
  }
  .multi-year-card table {
    width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums;
  }
  .multi-year-card th {
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--muted);
    text-align: left; padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
  .multi-year-card th:nth-child(2),
  .multi-year-card th:nth-child(3) { text-align: right; }
  .multi-year-card td {
    padding: 10px 0; border-bottom: 1px solid var(--line);
    font-size: 14px;
  }
  .multi-year-card td:nth-child(2),
  .multi-year-card td:nth-child(3) { text-align: right; font-weight: 700; color: var(--navy); }
  .multi-year-card tr.year5 td {
    border-bottom: none;
    background: var(--green-soft);
    font-weight: 800; color: var(--green);
    font-size: 16px;
  }
  .multi-year-card tr.year5 td:first-child {
    border-radius: 8px 0 0 8px; padding-left: 12px;
  }
  .multi-year-card tr.year5 td:last-child {
    border-radius: 0 8px 8px 0; padding-right: 12px;
  }

  .forward-note {
    margin-top: 20px; padding: 16px 22px;
    background: #FAF1DC; border-left: 4px solid var(--gold);
    border-radius: 8px;
    font-size: 13px; color: var(--ink); line-height: 1.55;
  }
  .forward-note b { color: var(--navy); }

  /* PILOT POOL OPERATIONAL MODEL */
  .pool-model-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin-top: 32px;
  }
  .pool-model-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 24px;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
  }
  .pool-model-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  }
  .pool-model-card.chem::before   { background: var(--teal); }
  .pool-model-card.water::before  { background: var(--aqua); }
  .pool-model-card.energy::before { background: var(--gold); }
  .pool-model-card .icon-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
  }
  .pool-model-card .icon-row .ico {
    width: 28px; height: 28px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
  }
  .pool-model-card.chem   .ico { background: var(--aqua-soft); color: var(--teal); }
  .pool-model-card.water  .ico { background: var(--aqua-soft); color: var(--teal); }
  .pool-model-card.energy .ico { background: #FAF1DC; color: #8E6E2A; }
  .pool-model-card .name {
    font-size: 16px; font-weight: 800; color: var(--navy);
    letter-spacing: -0.01em;
  }
  .pool-model-card .pct-tag {
    display: inline-block; font-size: 11px; font-weight: 800;
    color: var(--green); background: var(--green-soft);
    padding: 4px 10px; border-radius: 999px; letter-spacing: 0.06em;
    margin-bottom: 16px; align-self: flex-start;
  }
  .pool-model-card .lines {
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }
  .pool-model-card .line {
    display: grid; grid-template-columns: 1fr auto;
    padding: 6px 0; font-size: 13px;
    align-items: baseline;
  }
  .pool-model-card .line .k { color: var(--muted); }
  .pool-model-card .line .v { color: var(--navy); font-weight: 700; }
  .pool-model-card .line.sub .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
  .pool-model-card .line.sub .v { font-size: 11px; color: var(--muted); font-weight: 600; }
  .pool-model-card .save-strip {
    margin-top: 14px; padding: 14px 16px;
    background: var(--green-soft); color: var(--green);
    border-radius: 10px; font-weight: 800;
    display: flex; align-items: baseline; justify-content: space-between;
  }
  .pool-model-card .save-strip .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
  .pool-model-card .save-strip .amt { font-size: 22px; letter-spacing: -0.01em; }
  .pool-model-card .method-note {
    margin-top: 14px; padding-top: 14px;
    border-top: 1px dashed var(--line);
    font-size: 11px; color: var(--muted); line-height: 1.5; font-style: italic;
  }
  .pool-model-card .method-note b { color: var(--navy); font-style: normal; }

  .pool-model-total {
    margin-top: 24px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--deep) 100%);
    color: #fff;
    border-radius: 14px;
    padding: 32px 36px;
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px;
    align-items: center;
  }
  .pool-model-total .total-num {
    font-size: 56px; font-weight: 800; color: #fff;
    letter-spacing: -0.025em; line-height: 1;
  }
  .pool-model-total .total-label {
    font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 700; opacity: 0.85; margin-top: 10px;
  }
  .pool-model-total .total-sub {
    font-size: 13px; opacity: 0.75; margin-top: 6px;
  }
  .pool-model-total .total-breakdown {
    border-left: 1px solid rgba(255,255,255,0.18);
    padding-left: 28px;
  }
  .pool-model-total .total-breakdown .bd-row {
    display: flex; justify-content: space-between;
    padding: 6px 0; font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .pool-model-total .total-breakdown .bd-row:last-child { border-bottom: none; }
  .pool-model-total .total-breakdown .bd-row b { font-weight: 700; }
  .pool-model-total .total-breakdown .bd-row .k { opacity: 0.85; }

  .upside-callout {
    margin-top: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    padding: 22px 28px;
  }
  .upside-callout .uc-title {
    font-size: 13px; font-weight: 800; color: var(--navy);
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 10px;
  }
  .upside-callout .uc-title .plus {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--gold); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
  }
  .upside-callout ul {
    margin: 0; padding-left: 18px; columns: 2; column-gap: 32px;
  }
  .upside-callout ul li {
    font-size: 13px; color: var(--ink); margin: 6px 0;
    line-height: 1.5; break-inside: avoid;
  }

  .model-method-box {
    margin-top: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px 28px;
  }
  .model-method-box .mmb-title {
    font-size: 12px; font-weight: 800; color: var(--navy);
    letter-spacing: 0.14em; text-transform: uppercase;
    margin-bottom: 14px;
  }
  .model-method-box .mmb-row {
    display: grid; grid-template-columns: 100px 1fr;
    gap: 18px; padding: 12px 0;
    border-top: 1px solid var(--line);
  }
  .model-method-box .mmb-row:first-of-type { border-top: none; padding-top: 4px; }
  .model-method-box .mmb-row .mmb-k {
    font-size: 11px; font-weight: 800; color: var(--teal);
    letter-spacing: 0.14em; text-transform: uppercase;
    padding-top: 2px;
  }
  .model-method-box .mmb-row .mmb-v {
    font-size: 13px; color: var(--ink); line-height: 1.55;
  }
  .model-method-box .mmb-row .mmb-v code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px; background: var(--paper); padding: 2px 6px;
    border-radius: 3px; color: var(--navy);
  }
  .model-method-box .mmb-row .mmb-v .src {
    font-size: 11px; color: var(--muted); font-style: italic;
    display: block; margin-top: 4px;
  }

  /* CHART CARD */
  .chart-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 24px; margin-top: 24px;
  }
  .chart-card .chart-title {
    font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px;
  }
  .chart-card .chart-sub {
    font-size: 12px; color: var(--muted); margin-bottom: 18px;
  }
  .bars { display: flex; flex-direction: column; gap: 16px; }
  .barpair .row-label {
    font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px;
    display: flex; justify-content: space-between;
  }
  .barpair .row-label .delta { color: var(--green); font-weight: 700; }
  .bar-wrap { position: relative; height: 22px; background: #F5F7FA; border-radius: 4px; margin-bottom: 4px; }
  .bar { position: absolute; top: 0; left: 0; height: 100%; border-radius: 4px;
         display: flex; align-items: center; padding: 0 8px;
         font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; }
  .bar.pre { background: var(--navy); }
  .bar.post { background: var(--green); }

  /* QUALITATIVE — bullets in card */
  .quals {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
    margin-top: 24px;
  }
  .qual {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 22px 24px;
  }
  .qual .icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--aqua-soft); color: var(--teal);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800;
    margin-bottom: 10px;
  }
  .qual h4 {
    margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--navy);
    letter-spacing: -0.005em;
  }
  .qual p {
    margin: 0; font-size: 14px; color: #3a4452; line-height: 1.5;
  }

  /* PUBLISHED CASE STUDY VALIDATION CALLOUT */
  .esg {
    background: linear-gradient(135deg, #143654 0%, #0A2540 100%);
    color: #fff;
    padding: 36px 56px;
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center;
  }
  .esg .meta {
    display: flex; flex-direction: column; justify-content: space-between;
  }
  .esg .badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
    padding: 8px 14px; border-radius: 999px;
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 700; align-self: flex-start;
  }
  .esg h2 { color: #fff; font-size: 30px; font-weight: 800; margin: 16px 0 10px; letter-spacing: -0.015em; line-height: 1.2; }
  .esg .source { font-size: 12px; opacity: 0.7; margin-top: auto; }
  .esg-quote {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 20px 24px;
    position: relative;
  }
  .esg-quote .lead {
    font-size: 18px; font-weight: 600; line-height: 1.45; color: #E6F4F6;
    margin-bottom: 12px;
  }
  .esg-quote ul { margin: 0; padding: 0 0 0 18px; }
  .esg-quote ul li {
    font-size: 14px; color: #C8D7E2; margin: 8px 0; line-height: 1.5;
  }
  .esg-quote .attribution {
    margin-top: 18px; padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    opacity: 0.7; font-weight: 700;
  }

  /* ESG STAT BOX (water drop card matching ESG report) */
  .esg-water-card {
    background: var(--aqua-soft);
    border-left: 4px solid var(--teal);
    border-radius: 10px;
    padding: 24px;
    margin-top: 20px;
    display: grid; grid-template-columns: 60px 1fr; gap: 18px; align-items: start;
  }
  .esg-water-card .drop {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--teal); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    /* Replace via background-image with CDN water-drop icon */
  }
  .esg-water-card p { margin: 0; color: var(--navy); font-size: 14px; line-height: 1.5; }
  .esg-water-card p b { color: var(--navy); }

  /* IMAGE GALLERY — property photos */
  .gallery {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px;
    margin-top: 32px;
  }
  .gallery .img-slot { border-radius: 12px; }

  /* CTA / FOOTER */
  .cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    color: #fff;
    padding: 56px 56px;
    text-align: center;
  }
  .cta h2 { color: #fff; font-size: 32px; font-weight: 800; margin: 0 0 12px; letter-spacing: -0.02em; }
  .cta p { margin: 0 auto 28px; max-width: 700px; opacity: 0.92; font-size: 16px; }
  .cta .btn {
    display: inline-block; background: #fff; color: var(--navy);
    padding: 14px 28px; border-radius: 999px;
    font-weight: 800; letter-spacing: 0.04em;
    text-decoration: none; font-size: 14px; text-transform: uppercase;
  }
  .cta .contact {
    display: flex; gap: 28px; justify-content: center; margin-top: 28px;
    font-size: 13px; opacity: 0.92; flex-wrap: wrap;
  }
  .cta .contact span b { font-weight: 700; margin-right: 6px; opacity: 0.7; }

  .footer {
    padding: 28px 56px; background: var(--paper);
    font-size: 11px; color: var(--muted); line-height: 1.6;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  }
  .footer .brand {
    font-weight: 800; color: var(--navy); letter-spacing: 0.06em;
  }
  .footer .meta { font-size: 11px; }

  /* Methodology card */
  .method {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px 28px;
    margin-top: 16px;
  }
  .method ul { margin: 8px 0 0; padding-left: 18px; }
  .method ul li { margin: 6px 0; font-size: 13px; color: #3a4452; }

  @media print {
    .aquarev-case-study { background: #fff; }
    .doc { box-shadow: none; margin: 0; max-width: 100%; border-radius: 0; }
    .section, .testimonial, .esg, .cta { page-break-inside: avoid; }
  }

  /* === WEBFLOW HOST OVERRIDES ===
   * Webflow's site CSS at aquarevwater.us defines .section, .contact, .icon classes
   * that would otherwise clobber our case study. Prefix with .aquarev-case-study to
   * raise specificity (0,2,0) above Webflow's (0,1,0) and reset their visual props. */
  .aquarev-case-study .section {
    background: transparent;
    background-image: none;
    background-color: transparent;
    padding: 56px 56px;
    margin-bottom: 0;
    border-radius: 0;
  }
  .aquarev-case-study .section.tight {
    padding: 40px 56px;
  }
  .aquarev-case-study .icon {
    color: inherit;
  }
  .aquarev-case-study .contact {
    background: transparent;
    background-color: transparent;
  }
