/**
 * Prompt 3F/3G - detached gold/teal card frames (now scoped tightly per
 * 3G's G0 correction: gold only on Data & Decision Intelligence /
 * Cybersecurity & Digital Risk card representations and the "Our
 * Services"/"Our Approach" cards on those two pages' own detail pages;
 * teal only on Our Firm's four sliding cards), a real metallic-gold
 * system with a travelling shine (G1), eyebrow-chip treatment for
 * glass info cards (fixed in 3G, G7, for the overflow:hidden clipping
 * bug), marquee section-blend anchor fix, Industries/Commitment
 * backing graphics, bigger CTA buttons with a visible boundary (G9),
 * DAVERON Method heading/stage sizing, and the shared roadmap
 * timeline's node/card vertical-alignment fix (G8). Loaded after
 * dv-gold.css/dv-round4.css/dv-motion-system.css (functions.php).
 */

/* =========================================================
   G1 - shared metallic gold system
   ========================================================= */
@property --dv-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* ---- Frame (detached, inset -10px) ---- */
.dv-frame {
  position: relative;
  --dv-frame-card-radius: 20px;
}
@media (min-width: 768px) {
  .dv-frame { --dv-frame-card-radius: 28px; }
}
.dv-frame::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: 1;
  border-radius: calc(var(--dv-frame-card-radius) + 10px);
  pointer-events: none;
  border: 4px solid transparent;
  background:
    conic-gradient(from var(--dv-angle), #8A6A12, #D4A017, #F7E08A, #FFF6C8, #E3B53B, #B8861A, #8A6A12) border-box;
  -webkit-mask: linear-gradient(#10263e 0 0) padding-box, linear-gradient(#10263e 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
/* Static fallback for engines without conic-gradient support - a
   fixed-angle metallic gradient, no shine, still clearly gold. */
@supports not (background: conic-gradient(red, blue)) {
  .dv-frame--gold::before { background: linear-gradient(135deg, #8A6A12 0%, #D4A017 22%, #F7E08A 45%, #FFF6C8 60%, #E3B53B 80%, #B8861A 100%) border-box !important; }
  .dv-frame--teal::before { background: linear-gradient(135deg, #10263e 0%, #167B8C 35%, #167b8c 60%, #ffffff 80%, #167b8c 100%) border-box !important; }
}
.dv-frame--gold::before {
  box-shadow: 0 0 22px rgba(232, 199, 102, .32);
}
.dv-motion .dv-frame--gold::before { animation: dv-gold-angle 6s linear infinite; }
@keyframes dv-gold-angle { to { --dv-angle: 360deg; } }

/* Teal frame: "shiny dark teal" - same travelling-shine mechanism,
   teal stops (Our Firm's four sliding cards, G6). */
.dv-frame--teal::before {
  background: conic-gradient(from var(--dv-angle), #10263e, #167B8C, #167b8c, #ffffff, #167b8c, #167B8C, #10263e) border-box;
}
.dv-motion .dv-frame--teal::before { animation: dv-gold-angle 6s linear infinite; }
.dv-frame--teal-sm::before { border-width: 5px; }

@media (prefers-reduced-motion: reduce) {
  .dv-motion .dv-frame--gold::before,
  .dv-motion .dv-frame--teal::before { animation: none; --dv-angle: 120deg; }
}
.motion-paused .dv-frame--gold::before,
.motion-paused .dv-frame--teal::before { animation-play-state: paused; }

/* Hosts with their OWN overflow:hidden that the frame is applied to
   directly (not via wrapper): free the host's overflow and move the
   clip onto its own children instead, so the frame ring is never cut
   off. */
.dv-rotary-card.dv-frame,
.dv-straddle-card.dv-frame { overflow: visible; }
.dv-rotary-card.dv-frame .dv-rotary-card-media,
.dv-rotary-card.dv-frame .dv-rotary-card-scrim { border-radius: inherit; }

/* ---- Text: metallic gradient fill with a travelling highlight band.
   Two variants - bright for dark backgrounds, a deeper one (passes
   4.5:1 on its own, the shine is a bonus) for light backgrounds. ---- */
.dv-gold-text {
  background: linear-gradient(100deg, #D4A017 0%, #FFF6C8 45%, #D4A017 55%, #B8861A 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #B8861A;
  font-weight: 700;
}
.dv-gold-text--on-light {
  background: linear-gradient(100deg, #6B4E0A 0%, #D9B24A 45%, #6B4E0A 55%, #A8800F 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #6B4E0A;
}
.dv-motion .dv-gold-text { animation: dv-gold-text-shine 4s linear infinite; }
@keyframes dv-gold-text-shine {
  from { background-position: 200% 50%; }
  to   { background-position: -50% 50%; }
}
/* Context switch (same convention dv-gold.css already used for the old
   flat-color version): white/off-white sections and any light glass
   card automatically get the deeper on-light variant instead of the
   bright one, so a gold phrase in dv_problem_section()/
   dv_outcomes_section() on Data's white/off-white alternating
   background never renders near-white-on-white. */
.section-white .dv-gold-text,
.section-offwhite .dv-gold-text,
.glass-ui-on-light .dv-gold-text {
  background: linear-gradient(100deg, #6B4E0A 0%, #D9B24A 45%, #6B4E0A 55%, #A8800F 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #6B4E0A;
}
@media (prefers-reduced-motion: reduce) {
  .dv-motion .dv-gold-text { animation: none; background-position: 60% 50%; }
}
.motion-paused .dv-gold-text { animation-play-state: paused; }

/* ---- Numerals: metallic fill + thin stroke so they still read as
   "outlined numerals" like every other .dv-num variant. ---- */
.dv-gold-num {
  background: linear-gradient(100deg, #B8861A 0%, #FFF6C8 45%, #D4A017 55%, #8A6A12 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px #D4A017;
  color: transparent;
}
.dv-motion .dv-gold-num { animation: dv-gold-text-shine 4s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .dv-motion .dv-gold-num { animation: none; }
}
.motion-paused .dv-gold-num { animation-play-state: paused; }

/* ---- Chips: metallic gradient fill, dark navy text. The gradient is
   kept to the mid/light portion of the metallic palette on purpose -
   the full range (down to #8A6A12) drops navy-on-gold under 4.5:1 at
   its darkest point; this range stays above ~6:1 everywhere the
   gradient travels, verified against the WCAG relative-luminance
   formula, so the shine never has a moment where the text disappears. */
.dv-gold-chip {
  background: linear-gradient(100deg, #C9A227 0%, #E8C766 25%, #F7E08A 50%, #E8C766 75%, #C9A227 100%);
  background-size: 250% 100%;
  color: #10263E;
  border: none;
}
.dv-motion .dv-gold-chip { animation: dv-gold-text-shine 4s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .dv-motion .dv-gold-chip { animation: none; background-position: 60% 50%; }
}
.motion-paused .dv-gold-chip { animation-play-state: paused; }

/* ---- Sparkles: straight-edged 4-point stars, a brief brightening
   glint instead of (or in addition to) the twinkle, 8-14px. ---- */
.dv-sparkle--corner { width: 10px; height: 10px; opacity: .7; }
.dv-motion .dv-sparkle--corner {
  animation: dv-sparkle-glint 3.2s ease-in-out infinite;
  animation-delay: var(--dv-sparkle-delay, 0s);
}
@keyframes dv-sparkle-glint {
  0%, 80%, 100% { opacity: .45; filter: brightness(1); transform: scale(.85); }
  90%           { opacity: 1; filter: brightness(1.6); transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .dv-motion .dv-sparkle--corner { animation: none; opacity: .65; transform: none; }
}
.motion-paused .dv-sparkle--corner { animation-play-state: paused; }

/* =========================================================
   G2/G3 - Capabilities-overview + Home bleed cards: Data/Cybersecurity
   chips use the metallic system; other four keep their plain teal/
   white chip, unchanged, no frame.
   ========================================================= */
.dv-bleed-card2-tint::before { opacity: .22 !important; }
.dv-bleed-card2--featured .dv-bleed-card2-chips .dv-chip {
  background: linear-gradient(100deg, #C9A227 0%, #E8C766 25%, #F7E08A 50%, #E8C766 75%, #C9A227 100%);
  background-size: 250% 100%;
  color: #10263E;
  box-shadow: 0 6px 16px -6px rgba(16, 38, 62, .4);
}
/* Prompt 3I, I1: the line above used to be an UNCONDITIONAL
   `animation: dv-gold-text-shine ...` - same `animation` property the
   component's own hover-reveal (`dv-chip-in`) uses, equal specificity,
   loaded later, so it silently replaced the reveal animation entirely
   and the chip never left opacity:0, hover or not. Fixed by only
   adding the shine on top of (not instead of) the reveal, triggered by
   the exact same :hover/:focus-within/.is-expanded the component
   already uses - nothing duplicated, the chips are hidden at rest and
   reveal with the same animation/timing as the other four cards. */
.dv-motion .dv-bleed-card2--featured:hover .dv-bleed-card2-chips .dv-chip,
.dv-motion .dv-bleed-card2--featured:focus-within .dv-bleed-card2-chips .dv-chip,
.dv-motion .dv-bleed-card2--featured.is-expanded .dv-bleed-card2-chips .dv-chip {
  animation-name: dv-chip-in, dv-gold-text-shine;
  animation-duration: .4s, 4s;
  animation-timing-function: var(--m-ease-out, ease), linear;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: both, none;
  animation-delay: calc(var(--dv-chip-i, 0) * 50ms), 0s;
}
@media (prefers-reduced-motion: reduce) {
  /* I1: visible without animation under reduced motion, same as the
     component's own reduced-motion intent for every card's chips. */
  .dv-bleed-card2--featured .dv-bleed-card2-chips,
  .dv-bleed-card2--featured .dv-bleed-card2-chips .dv-chip { opacity: 1 !important; transform: none !important; }
}
.dv-bleed-card2--light .dv-bleed-card2-chips .dv-chip {
  background: var(--teal-deep);
  color: var(--white);
  box-shadow: 0 6px 16px -6px rgba(16, 38, 62, .4);
}
.dv-bleed-card2-title .dv-gold-text { font-style: italic; }

/* Prompt 3I, I3: belt-and-braces corner clip. overflow:hidden plus a
   border-radius can fail to clip a child once that child is promoted
   to its own GPU compositing layer (object-fit:cover images, certain
   blend/filter layers) - a known Chromium quirk. isolation:isolate
   pins this card to its own stacking/compositing context, and
   clip-path is a second, independent clip that doesn't rely on the
   same compositing-aware path overflow does, so even if one fails the
   other still cuts the corners. The frame for the two featured cards
   lives on a SEPARATE wrapper element (dv_capability_bleed_cards()),
   so clipping the card itself here can never touch the frame ring. */
.dv-bleed-card2 {
  isolation: isolate;
  clip-path: inset(0 round 20px);
}
@media (min-width: 768px) {
  .dv-bleed-card2 { clip-path: inset(0 round 28px); }
}
.dv-bleed-card2-hit,
.dv-bleed-card2-media-wrap,
.dv-bleed-card2-media,
.dv-bleed-card2-scrim,
.dv-bleed-card2-tint { border-radius: inherit; }

/* Rotary cards (Home stack): same safety net, but only for the four
   NON-framed cards - the two featured (gold) cards need the card's own
   overflow left visible so the frame ::before (on the card itself, not
   a wrapper, inset -10px) can show outside it; clip-path:inset(0 ...)
   would re-clip that ring right back off. Those two rely on
   border-radius:inherit on their media/scrim layers instead (already
   in place, see below), same visual result without cutting the frame. */
.dv-rotary-card:not(.dv-frame) {
  isolation: isolate;
  clip-path: inset(0 round 20px);
}
@media (min-width: 768px) {
  .dv-rotary-card:not(.dv-frame) { clip-path: inset(0 round 28px); }
}

/* Prompt 3H, H3 added an always-visible override here for Data/
   Cybersecurity's chips; Prompt 3I, I1 reverses that - these two cards
   go back to the exact same hover/focus/tap reveal the other four use
   (same class, same mechanism, nothing duplicated). Gold chip colour,
   gold frame, metallic number and metallic title word are untouched -
   only the show/hide behaviour reverts. */

/* Prompt 3H, H6: services-grid numerals stay metallic gold but static -
   no shimmer. A modifier instead of touching the base .dv-gold-num
   (which Home/Capabilities-overview numbers, H3, still animate). */
.dv-gold-num--static,
.dv-motion .dv-gold-num--static {
  animation: none !important;
  background-position: 55% 50%;
}

/* =========================================================
   G3 - Our Services grid (8 numbered cards) and Our Approach strip (3
   pills) on Data & Cybersecurity: every card/pill gets the same frame,
   not just the odd ones - see page content wiring in template-tags.php
   (dv_service_card()) and page-capability.php for the approach strip.
   ========================================================= */
.dv-svc-card.dv-frame { overflow: visible; }
.dv-svc-card.dv-frame > [class*="dv-gfx-"]::before { border-radius: inherit; }
[class*="dv-gfx-"]::before,
[class*="dv-bg-"]::before { border-radius: inherit; }

/* G4's .dv-outcomes-glass-fix (Our Philosophy / Business Outcomes glass
   card fix) was removed in Prompt 4D, D1 along with the glass card
   itself - see dv_text_row_section() in inc/template-tags.php. */

/* =========================================================
   G7 - eyebrow chip on glass/light info cards: fixed clipping (the
   card's own overflow:hidden was cutting the chip's top half - the
   card wrapper now keeps overflow visible, see the markup change in
   inc/template-tags.php; [class*="dv-bg-"]::before above now inherits
   the card's own radius instead of relying on overflow:hidden to look
   rounded). Chip centred on the top edge, display-serif font (the same
   one the Method card headings use), navy/white or metallic-gold fill.
   ========================================================= */
/* The overlapping chip (.dv-eyebrow-chip and its variants) and the
   glass card it sat on were removed in Prompt 4D, D1 - see
   dv_text_row_section() in inc/template-tags.php and
   dv-text-rows.css for the plain heading/text row that replaced it. */

/* =========================================================
   F8 - Industries white section graphic + Our Commitment's backing
   plate (dv_navy_text_band() now always gets a navy-dark backing
   graphic when the Commitment band passes one - see page-our-approach.php).
   ========================================================= */
.dv-ind-sector-section { position: relative; }

/* =========================================================
   G9 - CTA buttons: a visible boundary ring (detached, not touching
   the button's own fill/border), dark teal on light buttons, a
   lighter teal on dark backgrounds.
   ========================================================= */
.btn {
  outline: 2px solid #10263e;
  outline-offset: 4px;
}
.btn-on-navy,
.btn-on-teal,
.site-header-inner .btn-primary {
  outline-color: #ffffff;
}
@media (max-width: 480px) {
  /* A 4px-offset ring around every button on a narrow phone can nudge
     two adjacent buttons' hit areas into visually touching - trimmed,
     not removed. */
  .btn { outline-offset: 3px; }
}

/* Header CTA: F9's 3F sizing kept, just the vertical centring/overflow
   fix (G9) - the pill was clipping the button's own text. */
.site-header-inner .btn {
  height: auto;
  min-height: 52px;
  padding: .875rem 1.75rem;
  font-size: var(--text-sm);
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
}
.site-header-inner {
  display: flex;
  align-items: center;
}

/* Admin bar offset: WP's admin bar (32px, 46px under 783px) sits above
   everything and would otherwise cover this fixed header. */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* =========================================================
   F10 - DAVERON Method: bigger stage type, same compact card layout
   from 3E. (The timeline heading itself moved to the shared
   .dv-section-title component in Prompt 4A - see dv-4a.css.)
   ========================================================= */
.dv-motion .dv-roadmap-card-title { font-size: clamp(1.5rem, 2vw, 1.875rem); }
.dv-motion .dv-roadmap-card-body p,
.dv-motion .dv-roadmap-output { font-size: 1.125rem; }

/* =========================================================
   I2 - two tiny gold sparkles beside "Data & Decision Intelligence" /
   "Cybersecurity & Digital Risk" in the header dropdown + mobile menu.
   Inline (not absolute against the whole link), zero footprint on the
   link's own box so dropdown size/spacing/text/hover are unchanged.
   ========================================================= */
.dropdown-link,
.mobile-nav-sublink { position: relative; }
.dv-nav-sparkle-group {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  vertical-align: middle;
}
.dv-nav-sparkle { position: absolute; }
.dv-nav-sparkle--main { right: 0; bottom: 0; }
.dv-nav-sparkle--top { top: -3px; left: 3px; width: 6px; height: 6px; }

/* =========================================================
   G8 - shared roadmap timeline (DAVERON Method + every capability
   page's "How We Create Value"/stepper that reuses dv_roadmap()):
   the card and its node were landing in DIFFERENT auto-placed grid
   rows whenever the card's explicit column (3, "even" stages) came
   AFTER the node's column (2) in the DOM - CSS grid's auto-placement
   cursor only moves forward, so placing the card at column 3 first
   pushed the node (DOM order: card, then node) to the next row
   instead of back-filling column 2 of row 1. Forcing both onto
   `grid-row: 1` explicitly removes the ambiguity completely, on every
   stage, both sides - align-items:center (already set on
   .dv-roadmap-stage) then centres them correctly for the first time.
   ========================================================= */
.dv-motion .dv-roadmap-card,
.dv-motion .dv-roadmap-node {
  grid-row: 1;
  position: relative;
}
.dv-motion .dv-roadmap-card { z-index: 1; }
.dv-motion .dv-roadmap-node { z-index: 3; }
