/**
 * DAVERON V3 - Round 3 inner-page components: Our Firm (sections 9),
 * Industries (section 10), Method (section 11) will extend this file
 * too once built.
 */

.dv-chip--lg {
  font-size: 1rem;
  padding: .625rem 1.15rem;
}

/* =========================================================
   SECTION 9 - founder card (Pinterest overlay-text layout)
   ========================================================= */
.dv-founder-card-r3 {
  /* Round 7 Q4: wide band, breaking out of the section-container it's
     nested in. Fixed height 480-560px - never grows taller for the
     picture (text/figure both fit inside this budget instead).
     Round 8 H2: padding-inline is the gutter that keeps the coloured
     background off the browser edge - overflow stays visible (not
     hidden) specifically so the figure can still pop out above the
     top edge; the background itself is a separate ::before layer
     (below) that gets the rounded corners and is inset by this
     padding, so it never needs to clip the figure to look rounded. */
  position: relative;
  overflow: visible;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-inline: clamp(16px, 3vw, 48px);
  /* Founder-section update: name moved into the left column needs a
     touch more room than the original 560px cap. */
  height: clamp(540px, 3vw + 480px, 600px);
  border-radius: 20px;
  --dv-founder-glow-1: rgba(245, 184, 61, .22); /* amber, subtle by default */
  --dv-founder-glow-2: rgba(22, 123, 140, 0);
  background:
    radial-gradient(60% 70% at 50% 60%, var(--dv-founder-glow-1) 0%, var(--dv-founder-glow-2) 70%),
    linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
}
@media (min-width: 768px) {
  .dv-founder-card-r3 { border-radius: 28px; }
}
/* The glow/gradient background needs its own clipped layer since the
   card itself is overflow:visible (so the figure can pop out). */
.dv-founder-card-r3::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: inherit;
}
/* Bleed-card inner area (shared definition): max 1700px, 48-64px side
   padding - the actual grid/figure/text all live in here, inside the
   full-bleed band above. */
.dv-founder-card-r3-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  max-width: 1700px;
  margin-inline: auto;
  padding-inline: clamp(48px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  /* Wide enough to clear the figure's own width (below) by >=24px on
     each side at any card height in the 480-560px band. */
  gap: clamp(340px, 42vw, 650px);
  align-items: center;
}
.dv-founder-card-r3-left { position: relative; z-index: 2; }
.dv-founder-card-r3-right {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.dv-founder-card-r3-figure {
  /* Round 7 Q4: stands ON the card's bottom edge and rises upward
     (was floating near the top via a fixed top offset) - never
     floated at the top. Width:auto + aspect-ratio means height
     (set by initFounderPopout() in dv-round4.js, card height + a
     60-100px overhang) is the only thing driving its size, and
     object-fit:contain on the image (below) still guarantees the
     whole figure shows, never cropped, whatever its real aspect ratio
     turns out to be once a real photo replaces the placeholder. */
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: auto;
  aspect-ratio: 1319 / 1193;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.dv-founder-card-r3-img {
  width: 100%;
  height: 100%;
  /* contain, not cover: never crops the figure, whatever its aspect
     ratio turns out to be once the real photo replaces the placeholder. */
  object-fit: contain;
  border-radius: 18px;
  filter:
    drop-shadow(0 8px 0 rgba(255,255,255,.08))
    drop-shadow(0 10px 18px rgba(255,255,255,.25))
    drop-shadow(0 40px 56px rgba(16,38,62,.5));
  transition: transform .15s ease-out;
  will-change: transform;
}
svg.dv-founder-card-r3-img {
  width: auto;
  height: auto;
  max-height: 160px;
  color: rgba(255,255,255,.35);
  object-fit: contain;
  mask-image: none;
  -webkit-mask-image: none;
}
.dv-founder-float-card {
  padding: 1.1rem 1.35rem;
  max-width: 280px;
}
.dv-founder-float-card--quote { max-width: 320px; }

/* Prompt 4C, C3: left column now holds the moved "What We Do" prose,
   plain text, no box. */
.dv-founder-moved-text { max-width: 46ch; }
/* Founder-section update: name moved above this block (left column),
   both paragraphs sized up. */
.dv-founder-moved-text--big p {
  font-size: clamp(1.1875rem, .95rem + .6vw, 1.375rem);
  line-height: 1.5;
}
.dv-founder-name-plain--left { max-width: none; margin-bottom: 1rem; }

/* Prompt 4C, C3: name/quote blocks - boxes removed, plain text. Name
   made clearly larger; quote gets a large decorative serif glyph
   instead of a card background. */
.dv-founder-name-plain { max-width: 300px; }
.dv-founder-name-lg {
  display: block;
  font-weight: 700;
  color: #fff;
  font-size: clamp(3rem, 5.2vw, 4.75rem);
  line-height: 1.05;
}
.dv-founder-quote-plain {
  position: relative;
  max-width: 320px;
  padding-top: .5rem;
}
.dv-founder-quote-mark {
  position: absolute;
  top: -1.6rem;
  left: -.5rem;
  font-size: clamp(8rem, 14vw, 14rem);
  line-height: 1;
  font-weight: 700;
  color: rgba(255,255,255,.14);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.dv-founder-quote-plain .dv-eyebrow,
.dv-founder-quote-plain .dv-founder-quote-text {
  position: relative;
  z-index: 1;
}

@media (max-width: 1023px) {
  /* The pop-out overhang is a desktop flourish built around the
     3-column layout's horizontal room; below 1024px the card stacks to
     one column and the figure reverts to a normal, contained portrait
     in flow (same simpler treatment this had before Round 5). Height
     goes to auto too - the fixed 480-560px band is a desktop-only
     budget, stacked content needs its own natural room. */
  .dv-founder-card-r3 { height: auto; }
  .dv-founder-card-r3-inner {
    grid-template-columns: 1fr;
    text-align: left;
    padding-block: clamp(2rem, 2vw + 1.5rem, 3rem);
  }
  .dv-founder-card-r3-figure {
    /* Round 6 B8: aspect-ratio (not a fixed height) so this never
       crops either - same fix as the desktop figure above. */
    position: relative;
    z-index: 2;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1319 / 1193;
    margin: 0 auto 1.5rem;
    order: -1;
  }
  .dv-founder-card-r3-img {
    border-radius: 16px;
  }
  .dv-founder-card-r3-right { flex-direction: row; flex-wrap: wrap; }
}

/* =========================================================
   SECTION 9 - "What Makes DAVERON Different" merge stack
   ========================================================= */
.dv-diff-container {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  padding: clamp(1.5rem, 2vw + 1rem, 3rem);
}
.dv-diff-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.dv-diff-card {
  /* Round 6 B9: no click/accordion behaviour any more - every card is
     always fully visible, so there's nothing left to dim or fade. */
  position: relative;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-block: 1.5rem;
  margin-top: -1px;
}
.dv-diff-card:first-child { border-top: none; }
.dv-diff-card-trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
}
.dv-diff-card-trigger .dv-num { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.5rem); flex-shrink: 0; }
.dv-diff-card-trigger h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  color: var(--white);
}
.dv-diff-card-body {
  margin-left: calc(2.5rem + 1rem);
  /* Round 7 Q5: 62ch -> 80ch - the card is now much wider (stretched
     to the full left column), so letting paragraphs actually use that
     width (fewer, longer lines) is what makes the card shorter. */
  max-width: 80ch;
  /* Always visible - no overflow:hidden / max-height clamp, no
     opacity gating. A card grows to fit its own text instead of
     risking clipping it. */
}
.dv-diff-card-body p { padding-top: .5rem; }
.dv-diff-card-graphic {
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 100%;
  opacity: .25;
  pointer-events: none;
  filter: hue-rotate(var(--dv-diff-hue, 0deg));
}
@media (max-width: 639px) {
  .dv-diff-card-body { margin-left: 0; }
  .dv-diff-card-graphic { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dv-diff-card-body { transition: none; }
}

/* =========================================================
   SECTION 10 - Industries, text-led expand cards
   ========================================================= */
/* Prompt 3D, Stage 5: four cards in one row at 1100px+, 2x2 between
   700-1099px, one column below 700px - same hover/visual style, no
   markup change. This is also the shared base for .dv-svc-grid
   (capability service cards), which keeps its own narrower override
   below (Round 8 H8) for its own breakpoints. */
/* Prompt 3E, E7: the grid now lives in its own wider container
   (.dv-ind-wide-container, glass.css) instead of the shared 1180px
   .section-container, so each card has real room - at 1440px viewport
   width that's ~380px/card before gap, comfortably over the ~300px
   floor, where it was ~265px before. Gap trimmed 1.5rem -> 18px. */
.dv-ind-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1099px) {
  .dv-ind-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 699px) {
  .dv-ind-grid { grid-template-columns: 1fr; }
}
.dv-ind-card {
  position: relative;
  border-radius: 24px;
  padding: 1.5rem;
  min-height: 200px;
  color: var(--white);
  overflow: hidden;
}
/* Base fill: dv-bg-dots/rings/grid are pattern-only overlays with no
   fill of their own (see dv-graphics.css), so every card needs one of
   these two solid/gradient bases underneath, alternating. */
.dv-ind-card--navy { background: var(--grad-navy); }
.dv-ind-card--teal { background: var(--grad-teal); }
.dv-ind-card-trigger {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.dv-ind-card-trigger .dv-num { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); flex-shrink: 0; }
.dv-ind-card-trigger h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem); line-height: 1.15; }
/* Prompt 3E, E7: this used to indent the description under the heading
   (padding-left: calc(2.25rem + .9rem), ~50px) on top of the card's own
   2rem side padding - at the card's actual width that left as little as
   ~190px for the paragraph, squeezing it to one or two words per line
   with some text effectively cut off by the max-height below. Full
   card width instead; the heading's own left edge no longer needs to
   line up with it. */
.dv-ind-card-desc {
  position: relative;
  z-index: 1;
  margin-top: .9rem;
}

/* Collapse/expand enhancement - only once JS has confirmed it's
   available (html.js, set inline in <head> before paint). Without it
   the description above is already fully visible, satisfying the
   "works without JavaScript" requirement with no separate markup. */
html.js .dv-ind-card-desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .4s var(--m-ease-out), opacity .3s ease;
}
html.js .dv-ind-card:hover .dv-ind-card-desc,
html.js .dv-ind-card:focus-within .dv-ind-card-desc,
html.js .dv-ind-card.is-expanded .dv-ind-card-desc {
  /* Prompt 3E, E7: raised from 220px - with the full card width now
     available this is more margin than the actual text needs, but it
     keeps the four cards' hover panels equal and the text was getting
     close to the old ceiling at the narrowest supported width (699px). */
  max-height: 280px;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  html.js .dv-ind-card-desc { transition: none; }
}

/* =========================================================
   SECTION 11 - The DAVERON Method: premium roadmap upgrade
   (layers onto the existing .dv-roadmap component from Prompt 2C,
   section 6 - doesn't touch the simpler steppers that reuse the same
   component elsewhere, since this only activates with the
   .dv-roadmap--premium modifier the Method page opts into).
   ========================================================= */
.dv-roadmap--premium .dv-roadmap-card {
  /* Prompt 3E, E6: trimmed from 1.75rem (28px) to 1.25rem (20px) top/
     bottom - inside the Method's "clearly shorter" target. */
  padding: 1.25rem clamp(1.25rem, 1vw + 1rem, 2rem);
  border-radius: 20px;
}
/* Round 6 B11: the teal half of the alternating pair (the markup
   itself switches text-navy/text-body-muted to text-white/white-85
   per card, see dv_roadmap()). */
.dv-roadmap--premium .dv-roadmap-card--teal {
  background: var(--grad-teal);
}
/* Prompt 4B, B4: glowing head of the drawn line - position (top %) and
   visibility are set inline by scrolly.js, tied one-to-one to the same
   scrub progress that draws the path itself (never an independent
   ambient loop, so there is nothing here for Pause Motion to need to
   stop - it only moves when the page scrolls, exactly like the line). */
.dv-roadmap-travel-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--teal-light);
  box-shadow: 0 0 12px 4px rgba(255,255,255, .95), 0 0 24px 8px rgba(255,255,255, .4);
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .dv-roadmap-travel-dot { display: none; }
}
@media (max-width: 767px) {
  .dv-roadmap-travel-dot { left: 1.5rem; margin-left: -6px; }
}
