/* ============================================================
   Full Wave homepage v5 — rotating hero + rich sections
   Loaded AFTER redo.css (reuses its tokens + components).
   index.html only.
   ============================================================ */

:root { --serif: "Fraunces", Georgia, "Times New Roman", serif; }

/* ============================================================
   ROTATING SERVICE HERO (light version of the live site)
   ============================================================ */
.rhero {
  position: relative;
  min-height: 100dvh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--sky-50) 46%, var(--sky-100) 100%);
}
.rhero-mesh {
  position: absolute; inset: -20% -12% 30% -12%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(34% 42% at 18% 26%, rgba(0,212,255,0.18), transparent 62%),
    radial-gradient(40% 46% at 84% 20%, rgba(0,102,255,0.14), transparent 60%);
  filter: blur(34px);
  animation: heroMesh 20s ease-in-out infinite alternate;
}
.rhero-body { position: relative; z-index: 3; flex: 1 1 auto; display: flex; align-items: center; padding: clamp(24px,4vh,54px) 0; }
.rhero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 52px; align-items: center; width: 100%; }

.rhero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue);
}
.rhero-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); }
.rhero-title {
  font-size: clamp(38px, 5.6vw, 66px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
  margin: 18px 0 18px; max-width: 13ch;
}
.rhero-sub { color: var(--ink-soft); font-size: clamp(16px,1.6vw,19px); max-width: 480px; margin-bottom: 30px; }
.rhero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.rhero-note { margin-top: 20px; font-size: 13.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.rhero-note svg { color: var(--blue); }
/* swap animation */
.rhero-fade { opacity: 0; transform: translateY(14px); filter: blur(5px); transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s var(--ease); }
.rhero-fade.show { opacity: 1; transform: none; filter: blur(0); }

/* device visual */
.rhero-visual { position: relative; }
.rhero-device {
  position: relative; z-index: 2;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: #fff;
  transform: rotate(1.2deg);
}
.rhero-device .bar { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); background: var(--sky-50); }
.rhero-device .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.rhero-device .bar i:first-child { background: var(--cyan); }
.rhero-shot { position: relative; aspect-ratio: 16/10.5; overflow: hidden; }
.rhero-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .6s var(--ease); }
.rhero-shot img.on { opacity: 1; }
.rhero-chip {
  position: absolute; z-index: 3;
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  box-shadow: var(--shadow-md); padding: 12px 15px;
  display: flex; align-items: center; gap: 11px;
}
.rhero-chip .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--sky-100); color: var(--blue); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.rhero-chip b { font-size: 18px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--blue); }
.rhero-chip span { display: block; font-size: 11.5px; color: var(--ink-soft); line-height: 1.3; }
.rhero-chip.c1 { left: -26px; top: 30%; animation: floaty 6s ease-in-out infinite; }
.rhero-chip.c2 { right: -22px; bottom: 16%; animation: floaty 7s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }

/* rotating tabs w/ progress */
.rhero-tabs { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-top: 1px solid var(--line); }
.rtab { position: relative; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 22px 22px; color: var(--ink-soft); transition: color .25s var(--ease); font: inherit; }
.rtab::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--line); }
.rtab::after { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--grad); }
.rtab.active { color: var(--ink); }
.rtab.active::after { width: var(--rp, 0%); }
.rtab .n { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: 0.08em; }
.rtab .t { display: block; font-size: clamp(15px,1.5vw,18px); font-weight: 700; margin-top: 4px; letter-spacing: -0.01em; }
.rtab .d { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.rtab:hover { color: var(--ink); }

/* ============================================================
   VIDEO TESTIMONY + RESULT CARDS
   ============================================================ */
.vtest-row { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.vtest-row + .vtest-row { margin-top: 68px; }
.vtest-row.flip .vplayer { order: 2; }
.vplayer {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 16/10; border: 1px solid var(--line);
  box-shadow: var(--shadow-md); background: var(--ink);
  cursor: pointer;
}
.vplayer img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s var(--ease); }
/* branded poster (no screenshot available) */
.vplayer.vbrand { background: linear-gradient(150deg, var(--blue) 0%, var(--blue-600) 62%, #06306e 100%); }
.vplayer.vbrand::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 82% 12%, rgba(0,212,255,0.35), transparent 60%); pointer-events: none; }
.vplayer.vbrand .vbrand-name { position: absolute; top: 20px; left: 22px; z-index: 2; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.vplayer:hover img { transform: scale(1.05); filter: brightness(0.92); }
.vplayer .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,29,71,0.05), rgba(10,29,71,0.45)); }
.vplayer .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 78px; height: 78px; border-radius: 50%;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 34px -10px rgba(10,29,71,0.5);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.vplayer .play::after {
  content: ""; margin-left: 5px;
  border-left: 22px solid var(--blue); border-top: 13px solid transparent; border-bottom: 13px solid transparent;
}
.vplayer:hover .play { transform: translate(-50%,-50%) scale(1.08); background: #fff; }
.vplayer .play::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6); animation: playPulse 2.4s var(--ease) infinite;
}
@keyframes playPulse { 0%{ transform: scale(1); opacity: 1;} 70%,100%{ transform: scale(1.4); opacity: 0;} }
.vplayer .vmedia {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; background: #0A1D47; object-fit: contain;
}
.vplayer.playing { cursor: default; }
.vplayer .label {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: 13px; font-weight: 600;
}
.vplayer .label .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; box-shadow: 0 0 0 0 rgba(255,95,87,.7); animation: recDot 1.6s ease-in-out infinite; }
@keyframes recDot { 0%,100%{opacity:1;} 50%{opacity:.35;} }

.vcard { }
.vcard .who { font-family: var(--serif); font-size: clamp(26px,3vw,34px); font-weight: 600; letter-spacing: -0.01em; }
.vcard .stat { display: flex; align-items: baseline; gap: 14px; margin: 16px 0 6px; font-family: var(--serif); }
.vcard .stat .from { font-size: clamp(34px,5vw,54px); font-weight: 600; color: #9aa7bd; line-height: 1; }
.vcard .stat .arw { color: #9aa7bd; font-size: clamp(26px,3.4vw,38px); }
.vcard .stat .to { font-size: clamp(46px,7vw,78px); font-weight: 700; color: var(--blue); line-height: 0.9; letter-spacing: -0.02em; }
.vcard .stat .unit { font-family: var(--sans, "Poppins"); font-size: 16px; font-weight: 700; color: var(--ink); align-self: flex-end; }
.vcard .stat-solo { font-family: var(--serif); font-size: clamp(52px,8vw,84px); font-weight: 700; color: var(--blue); line-height: 0.9; letter-spacing: -0.02em; margin: 14px 0 4px; }
.vcard .cap { font-size: 17px; color: var(--ink-soft); }
.vcard .desc { margin-top: 18px; color: var(--ink-soft); font-size: 15.5px; max-width: 440px; }
.vcard .quote { margin-top: 20px; padding-left: 18px; border-left: 3px solid var(--blue); font-size: 15px; color: var(--ink); font-style: italic; }
.vcard .quote cite { display: block; font-style: normal; font-weight: 600; font-size: 13.5px; margin-top: 8px; color: var(--ink-soft); }

/* ============================================================
   ABOUT US
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-copy .lead { color: var(--ink-soft); max-width: 480px; margin-bottom: 16px; }
.about-people { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pcard .ph { aspect-ratio: 1/1; overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .ph img { transform: scale(1.05); }
.pcard .info { padding: 16px 18px 20px; }
.pcard .info b { font-size: 18px; font-weight: 700; }
.pcard .info span { display: block; font-size: 13px; color: var(--blue); font-weight: 600; margin-top: 2px; }
.pcard .info p { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }
.about-phone { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 18px; font-weight: 700; color: var(--ink); }
.about-phone svg { color: var(--blue); }
.about-phone:hover { color: var(--blue); }

/* ============================================================
   SERVICES BENTO
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(232px, 1fr); gap: 18px; }
.bento { --bscrim: linear-gradient(180deg, rgba(6, 30, 70, 0.18) 0%, rgba(6, 30, 70, 0.45) 42%, rgba(8, 42, 100, 0.93) 100%); }
.bcell {
  position: relative; overflow: hidden;
  color: #fff;
  background-color: #0A2A64;
  background-image: var(--bscrim);
  background-size: cover, cover;
  background-position: center, center;
  border: 1px solid rgba(10, 29, 71, 0.2); border-radius: 18px;
  padding: 20px; display: flex; flex-direction: column;
  /* Text sits at the bottom so the photo reads through the top of the card.
     The icon used to do this with margin-bottom:auto; with the icons gone
     the column has to anchor itself. */
  justify-content: flex-end;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
/* card background photos (paths relative to THIS css file) */
.bcell:hover { transform: translateY(-5px); border-color: var(--blue-300); box-shadow: var(--shadow-md); }
.bcell h3 { font-size: 20px; font-weight: 700; margin-top: 0; letter-spacing: -0.01em; color: #fff; text-shadow: 0 1px 12px rgba(4, 18, 44, 0.5); }
.bcell p { font-size: 14px; color: rgba(255,255,255,0.85); margin-top: 7px; }
.bcell .go { margin-top: 12px; padding-top: 0; font-size: 14px; font-weight: 600; color: #fff; display: inline-flex; align-items: center; gap: 7px; }
.bcell .go svg { transition: transform .25s var(--ease); }
.bcell:hover .go svg { transform: translateX(4px); }
/* big lead-gen cell */
.bcell-lead {
  grid-column: 1 / 3; grid-row: 1 / 3;
  color: #fff;
  --bscrim-lead: linear-gradient(180deg, rgba(0,102,255,0.62) 0%, rgba(0,90,201,0.8) 55%, rgba(6,48,110,0.95) 100%);
  background-image: var(--bscrim-lead);
  border-color: transparent;
  padding: 24px;
}
.bcell-lead.bg-skyline { background-image: var(--bscrim-lead), url("../images/cincySkyline.jpg"); }

/* One image per service, matching that service's own page.
   Deliberately photographs, not website screenshots: a screenshot shrunk into
   a 369x232 tile reads as a cramped webpage whichever way it is anchored,
   which is exactly the cut-off look to avoid. Photos crop to their subject. */
.bcell.bg-webdev { background-image: var(--bscrim), url("../images/blog-website-build.jpg"); }
.bcell.bg-seo    { background-image: var(--bscrim), url("../images/seo-local-search.jpg"); }
.bcell.bg-design { background-image: var(--bscrim), url("../images/mile42photo.jpg"); }
.bcell.bg-voice  { background-image: var(--bscrim), url("../images/voice-ai-shop-phone.jpg"); }
.bcell.bg-autom  { background-image: var(--bscrim), url("../images/blog-code.jpg"); }

/* All six are photographs now, so centre-cropping keeps the subject. */
.bcell-lead::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 85% 12%, rgba(0,212,255,0.35), transparent 60%);
}
.bcell-lead > * { position: relative; z-index: 1; }
.bcell-lead h3 { font-size: clamp(26px,3vw,34px); margin-top: 20px; }
.bcell-lead p { color: rgba(255,255,255,0.85); font-size: 15.5px; max-width: 30ch; }
.bcell-lead .go { color: #fff; }
.bcell-lead .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bcell-lead .tags span { font-size: 12px; font-weight: 600; background: rgba(255,255,255,0.16); border-radius: 999px; padding: 5px 12px; }

/* ============================================================
   PORTFOLIO / GALLERY (marquee, opposing rows)
   ============================================================ */
.gallery { overflow: hidden; }
.gal-row { overflow: hidden; padding: 8px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.gal-track { display: flex; gap: 22px; width: max-content; }
.gal-track.rtl { animation: galScroll 46s linear infinite; }
.gal-track.ltr { animation: galScroll 52s linear infinite reverse; }
/* Deliberately NOT paused on hover — the Our Work strip keeps moving even
   with the cursor over it. */
@keyframes galScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.gal-card {
  position: relative; flex: 0 0 auto; width: clamp(280px, 30vw, 400px);
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.gal-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-md); z-index: 2; }
.gal-card .shot { aspect-ratio: 16/10.5; overflow: hidden; }
.gal-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.gal-card:hover img { transform: scale(1.06); }
.gal-card .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px;
  background: linear-gradient(transparent, rgba(10,29,71,0.82));
  color: #fff; opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gal-card:hover .cap { opacity: 1; transform: none; }
.gal-card .cap b { font-size: 16px; font-weight: 600; display: block; }
.gal-card .cap span { font-size: 12.5px; opacity: 0.85; }

/* ============================================================
   CONTACT
   ============================================================ */

.contact-lead .lead { color: var(--ink-soft); max-width: 420px; margin-bottom: 26px; }






/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .rhero-grid { grid-template-columns: 1fr; gap: 30px; }
  .rhero-visual { max-width: 560px; }
  .rhero-chip.c1 { left: 6px; } .rhero-chip.c2 { right: 6px; }
  .vtest-row, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .vtest-row.flip .vplayer { order: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bcell-lead { grid-column: 1 / 3; grid-row: 1 / 2; min-height: 240px; }
}
@media (max-width: 620px) {
  .rhero-tabs { grid-template-columns: 1fr; }
  .rtab { padding: 14px 6px; }
  .rtab::before { display: none; } .rtab.active::after { display: none; }
  .rtab { border-top: 1px solid var(--line); }
  .about-people { grid-template-columns: 1fr 1fr; }
  /* Horizontal service rows. The icon column is gone, so the text takes the
     full width; the rows were cramped at 14px padding, so they get real
     vertical room instead — a legible card rather than a list item. */
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .bcell {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 14px;
    padding: 22px 18px;
    min-height: 112px;
    border-radius: 14px;
  }
  .bento { --bscrim: linear-gradient(100deg, rgba(0, 74, 170, 0.78) 0%, rgba(8, 42, 100, 0.88) 100%); }
  .bcell h3 { text-shadow: none; }
  .bcell h3 { margin-top: 0; font-size: 18px; grid-column: 1; }
  .bcell p { margin-top: 0; font-size: 13.5px; line-height: 1.45; grid-column: 1; }
  .bcell .go { margin: 0; padding: 0; grid-column: 2; grid-row: 1 / span 2; font-size: 0; }
  .bcell .go svg { width: 17px; height: 17px; }
  .bcell-lead { grid-column: auto; grid-row: auto; min-height: 132px; padding: 22px 18px; }
  .bcell-lead h3 { font-size: 21px; margin-top: 0; }
  .bcell-lead p { max-width: none; font-size: 13.5px; }
  .bcell-lead .tags { grid-column: 1 / 3; margin-top: 10px; gap: 6px; }
  .bcell-lead .tags span { font-size: 10.5px; padding: 4px 10px; }
  .gal-card { width: 78vw; }
  .vcard .stat { flex-wrap: wrap; }
  /* tighter mobile rhythm */
  .vtest-row { gap: 22px; }
  .vtest-row + .vtest-row { margin-top: 44px; }
  .vcard .stat { margin: 10px 0 4px; }
  .vcard .desc { margin-top: 12px; }
  .vcard .quote { margin-top: 14px; }
  .pcard .info { padding: 12px 14px 16px; }
  .lead-form { padding: 22px 18px; }
  .contact-points li { padding: 12px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rhero-mesh, .rhero-chip.c1, .rhero-chip.c2, .gal-track.rtl, .gal-track.ltr, .vplayer .play::before, .vplayer .label .dot { animation: none; }
}

/* ---------- Testimonial: real video paused in frame ---------- */
/* The poster IS the video, so it sits exactly where the old <img> did.
   Contain-on-navy in both states: both testimonials are vertical, and
   matching the playing state means clicking play doesn't reframe. */
.vplayer video.vposter {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: var(--ink);
  transition: filter .4s var(--ease);
}
.vplayer:hover video.vposter { filter: brightness(0.92); }
.vplayer.playing video.vposter { z-index: 3; background: #000; }
.vplayer.playing { cursor: default; }

/* ---------- Multiplication sign weight ---------- */
/* A serif × at the same weight as the numeral reads noticeably thinner.
   text-stroke thickens the glyph itself rather than faking it with scale. */
.vcard .stat .mult,
.vcard .stat .to.has-mult .cu-suf {
  font-weight: 800;
  -webkit-text-stroke: 0.055em currentColor;
  paint-order: stroke fill;
  margin-left: 0.02em;
}

/* ---------- Contact block sitting on the blue lead-form section ---------- */
/* These live here rather than in redo.css because home.css loads later, and
   the rules being corrected (.contact-lead .lead, .contact-points span) are
   in this file — at equal specificity source order would otherwise win and
   leave this text at ~1:1 contrast on the blue. */
.fw-waved .contact-lead .lead { color: rgba(255,255,255,0.85); }
.fw-waved .contact-points a,
.fw-waved .contact-points span { color: rgba(255,255,255,0.85); }
.fw-waved .contact-points b { color: #fff; }
.fw-waved .contact-points a:hover { color: var(--cyan); }
