/**
 * V2 SILK DESIGN
 *
 * The organic V2 visual language on top of the existing site: a silk
 * ribbon in the hero flowing into the client strip, a folded silk wave in
 * About, one flowing process path, and an animated filled band around
 * "Need something different?". The pricing cards and the contact section
 * keep their original, calm look. Content, typography and behaviour are
 * unchanged.
 *
 *   WebGL (js/marketing/silk-ribbon.js + v2-silk.js, one shader, three
 *     presets): hero ribbon, About wave, band. Only on-screen instances
 *     draw. Process: one SVG path (js/marketing/v2-process.js) with CSS
 *     motion.
 *
 * COLOURS: all V2 colours are the tokens below. Amber (#F4C463) is a
 *   supporting accent: the hero's lower contour, the band's upper region,
 *   step 02 and three CTAs (nav "Get a Quote", "Let's talk", "Send message").
 *   To turn the amber CTAs back to green: set --v2-cta-bg to
 *   var(--accent), --v2-cta-text to #fff and --v2-cta-edge to transparent.
 * MOTION: --v2-speed multiplies the CSS durations (2 = twice as slow).
 *   prefers-reduced-motion: everything static (bottom of this file).
 * OFF: remove this <link> and the two V2 <script> tags in index.html.
 */

:root {
  --v2-amber:       #F4C463;
  --v2-amber-ink:   #F4C463;            /* amber used as text/lines on the page */
  --v2-edge-fill:   #0e0c0a;            /* = .partners background */
  --v2-cta-bg:      var(--v2-amber);
  --v2-cta-bg-hov:  #f8d48a;
  --v2-cta-text:    #18160f;
  --v2-cta-edge:    transparent;
  --v2-cta-glow:    rgba(244,196,99,.35);
  --v2-speed:       1;
}
[data-theme="light"] {
  --v2-amber-ink:   #8a5d00;
  --v2-edge-fill:   #38352e;            /* light-mode .partners background */
  --v2-cta-bg-hov:  #f0b84a;
  --v2-cta-edge:    #a87a1a;            /* keeps the amber fill visible on light */
  --v2-cta-glow:    rgba(244,196,99,.45);
}

/* ── SHARED ─────────────────────────────────────────── */
.silk-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.v2-silk-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.is-live > picture, .is-live > .v2-silk-fallback { display: none; }
/* light theme without WebGL: the About wave and the band have their own
   light fallback images (the hero is dark in both themes) */
[data-theme="light"] .v2-about-silk:not(.is-live) > .v2-silk-fallback,
[data-theme="light"] .v2-band-silk:not(.is-live) > picture { display: none; }
[data-theme="light"] .v2-about-silk:not(.is-live) { background: url(../../pics/v2/about-silk-light.webp) center / 100% 100% no-repeat; }
[data-theme="light"] .v2-band-silk:not(.is-live) { background: url(../../pics/v2/band-silk-light.webp) center / 100% 100% no-repeat; }
@media (max-width: 640px) {
  [data-theme="light"] .v2-band-silk:not(.is-live) { background-image: url(../../pics/v2/band-silk-mobile-light.webp); }
}

/* ── 1. HERO ────────────────────────────────────────── */
/* A little more room under the CTAs so the ribbon sits below them. */
.hero[data-hero-variant="city"] .hero-city-scene { padding-bottom: clamp(140px, 15vw, 220px); }
/* the ribbon box: lower part of the hero, above the city, below the text */
.v2-hero-silk {
  position: absolute; left: 0; right: 0; bottom: 0; height: 80%;   /* tall enough that the glow is never cut off */
  z-index: 1; pointer-events: none;
}
@media (max-width: 640px) { .v2-hero-silk { height: 64%; } }
/* beneath the ribbon the city fades into exactly the client strip's
   colour, so the hero flows into the logos without a boundary */
.v2-hero-silk::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 42%;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--v2-edge-fill) 80%, transparent) 55%, var(--v2-edge-fill));
}
.partners { border-top-color: transparent; border-bottom-color: transparent; }

/* ── 2. ABOUT ───────────────────────────────────────── */
#about { position: relative; isolation: isolate; overflow-x: clip; }
/* the client strip ends in a soft curve instead of a straight line */
.v2-about-edge { position: absolute; top: 0; left: 0; right: 0; height: clamp(34px, 5vw, 70px); z-index: -1; pointer-events: none; }
.v2-about-edge svg { width: 100%; height: 100%; display: block; }
.v2-edge-fill { fill: var(--v2-edge-fill); }
/* folded silk wave in the lower right (wide desktops only). It starts
   right of the 720px text column (50% - 552px wrap edge + 760px = text end
   + 40px), so it never sits behind the copy; below 1280px there is no
   free space beside the text, so it is left out. */
.v2-about-silk { display: none; }
@media (min-width: 1280px) {
  .v2-about-silk {
    display: block; position: absolute; z-index: -1; pointer-events: none;
    left: calc(50% + 208px); right: 0; top: 220px; height: 560px;
  }
}

/* ── 3. PROCESS ─────────────────────────────────────── */
/* ONE continuous wave line through the three circles (js/marketing/
   v2-process.js builds it from the real circle positions; the circles
   cover it where it passes through them). Green at 01, amber at 02, green
   at 03; a soft sheen and a small light travel along it toward 03; the
   chevrons sit on the line itself. The whole line slowly undulates (a
   vertical scale around the centre line, so it always meets the circles).
   While shown, the original straight track and connectors are hidden
   (their space is kept). Without JS / in the stacked mobile layout the
   original connectors stay. */
.v2-process-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; display: none; }
.has-v2-path > .v2-process-path { display: block; }
.has-v2-path::before { display: none; }
.has-v2-path .about-process-connector > * { visibility: hidden; }
.v2-proc-wave {
  transform-box: view-box;                 /* origin set by the script (centre line) */
  animation: v2-undulate calc(6s * var(--v2-speed)) ease-in-out infinite alternate;
}
@keyframes v2-undulate { from { transform: scaleY(1.1); } to { transform: scaleY(0.6); } }
.v2-proc-g { stop-color: var(--accent); }
.v2-proc-a { stop-color: var(--v2-amber); }
.v2-proc-line  { fill: none; stroke: url(#v2-proc-grad); stroke-width: 2; stroke-linecap: round; }
.v2-proc-glow  { fill: none; stroke: url(#v2-proc-grad); stroke-width: 10; stroke-opacity: .16; stroke-linecap: round; }
.v2-proc-sheen { fill: none; stroke: url(#v2-proc-sheen); stroke-width: 2.4; stroke-linecap: round; opacity: .35; }
[data-theme="light"] .v2-proc-sheen { opacity: .2; }
.v2-proc-arrow { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v2-proc-arrow--a { stroke: var(--v2-amber); }
.v2-proc-arrow--g { stroke: var(--accent); }
/* travelling light: a soft halo and a bright core, moving toward 03 */
.v2-proc-flow, .v2-proc-flow-halo {
  fill: none; stroke-linecap: round; stroke-dashoffset: 100;
  animation: v2-flow calc(6s * var(--v2-speed)) linear infinite;
}
.v2-proc-flow      { stroke: #e9fff3; stroke-width: 2; opacity: .6; stroke-dasharray: 4 96; }
.v2-proc-flow-halo { stroke: var(--accent-lt); stroke-width: 9; opacity: .16; stroke-dasharray: 8 92; }
[data-theme="light"] .v2-proc-flow { stroke: var(--accent); }
@keyframes v2-flow { to { stroke-dashoffset: 0; } }
/* div:nth-of-type so the injected SVG path does not shift the count */
.about-process-row > div.about-step:nth-of-type(3) .about-step-num {
  border-color: var(--v2-amber); color: var(--v2-amber-ink);
  box-shadow: 0 0 22px color-mix(in srgb, var(--v2-amber) 28%, transparent);
}

/* ── 4. SERVICES ────────────────────────────────────── */
/* Intentionally nothing here: the pricing cards keep their approved
   look on the plain dark background (no surface or motion behind them). */

/* ── 5. NEED SOMETHING DIFFERENT? ───────────────────── */
/* An animated filled band (WebGL, same silk shader): amber-dominant upper
   region, dark emerald middle, green lower region, threads only near the
   edges, and a fill that is strongest along both edges and fades out in
   the middle. Sized to the block, spanning the full width; the text and
   the amber "Let's talk" sit on top. */
#services { overflow-x: clip; }
.pkg-custom { position: relative; z-index: 0; }
.v2-band-silk {
  position: absolute; z-index: -1; pointer-events: none;
  top: -80px; bottom: -100px; left: 50%; width: 100vw; transform: translateX(-50%);
}
@media (max-width: 640px) {
  /* narrow screens: a little room above the heading for the band's upper line */
  .pkg-custom { padding-top: 44px; }
  .v2-band-silk { top: -30px; bottom: -110px; }
}

/* ── 6. CONTACT ─────────────────────────────────────── */
/* Original centred, stacked layout (heading above the form), no panel
   and no extra effects; only the "Send message" CTA is amber (below). */

/* ── 7. AMBER CTAs (decision moments only) ──────────── */
.nav-cta, .pkg-custom .btn-fill, .contact-form .cf-actions .btn-fill {
  background: var(--v2-cta-bg); color: var(--v2-cta-text); border-color: var(--v2-cta-bg);
  box-shadow: inset 0 0 0 1px var(--v2-cta-edge);
}
.nav-cta:hover, .pkg-custom .btn-fill:hover, .contact-form .cf-actions .btn-fill:hover {
  background: var(--v2-cta-bg-hov); border-color: var(--v2-cta-bg-hov);
  box-shadow: inset 0 0 0 1px var(--v2-cta-edge), 0 8px 24px var(--v2-cta-glow);
}
.contact-form .cf-actions .btn-fill:disabled { box-shadow: none; }
.mob-menu a.mob-cta { color: var(--v2-amber-ink); }

/* ── REDUCED MOTION: the same composition, static ──── */
@media (prefers-reduced-motion: reduce) {
  .v2-proc-wave, .v2-proc-flow, .v2-proc-flow-halo { animation: none !important; }
  .v2-proc-flow, .v2-proc-flow-halo { display: none; }
}
