/* ============================================================================
   ARUSI — Transmission & Distribution widgets
   Ported from the design system's ui_kits/website/td/td.css.

   Because the T&D widgets render the design's own markup, this is close to a
   verbatim port rather than a re-mapping onto Elementor's wrapper structure.
   Prefix: td-

   Depends on arusi-widgets.css for the shared primitives:
     --arusi-blue / --arusi-gold / --font-display / --font-body / --fg-*
     .arc-container  .arc-eyebrow  .arc-pill
     .td-lead*       (lead form, already defined there for the CAP CTA widget)
   ========================================================================= */

/* ---- Uploaded SVG icons ----------------------------------------------------
   Elementor inlines uploaded SVGs (Icons_Manager -> Svg::get_inline_svg), so
   the file's own fill/stroke attributes end up in the DOM. Presentation
   attributes on a child beat an inherited `color`, which is why the icon colour
   control appears to do nothing on an uploaded SVG.

   These rules recolour the artwork explicitly. Two things they deliberately
   preserve: fill="none" and stroke="none" stay untouched, so outline-style
   icons stay outlines instead of filling in as solid blobs.

   Scoped to .td-icon--svg — a marker span added only around uploaded SVGs — so
   the design's own stroke-based icon set is never affected. */
.td-icon--svg { display: inline-flex; line-height: 0; }
.td-icon--svg svg { max-width: 100%; }

/* Recolour only what actually declares a colour.

   `[fill]` requires the attribute to be PRESENT. A child with no fill attribute
   inherits from the root <svg>, so in a stroke-based icon (root fill="none") it
   must be left alone — matching bare `*:not([fill="none"])` catches those
   children too and force-fills hollow shapes into solid blobs.

   Which parts to recolour is a per-icon choice (see the "Uploaded SVG Colors"
   control): a downloaded icon may draw its artwork as strokes, as filled paths,
   or sit on a background rectangle that carries its own fill. Nothing in CSS
   can tell those apart, so the editor picks.
   Modes: auto | stroke (outline only) | fill (solid only) | original (off). */

/* IMPORTANT: many downloaded icons declare colour in an inline `style`
   attribute rather than as fill=/stroke= presentation attributes, e.g.
       <polyline style="fill:none;stroke:#000000;stroke-width:30;">
   Attribute selectors like [stroke] cannot see those, so stroke recolouring
   has to target elements directly and win with !important (which also beats
   the inline style). Setting a stroke on a shape that has none is harmless
   here: in auto/solid modes the fill is the same colour, so any hairline it
   introduces is invisible.

   Fill is the opposite — force-filling a hollow shape is very visible, so it
   stays attribute-guarded and never applies in "Outline only" mode. */

/* AUTO — fill recolouring, precise enough to handle every pattern:

     a) solid icon, no colour declared anywhere  -> recolour the ROOT; bare
        children inherit it. (helmet.svg, transformer.svg, approval.svg …)
     b) explicit fill="#xxx" attribute           -> recolour that element.
     c) explicit inline style="fill:#xxx"        -> recolour that element.
        [style*="fill:"] can read inside the style attribute as plain text,
        which is how inline-styled icons get caught at all.
     d) fill:none, by attribute OR inline style  -> left alone, so hollow
        outline shapes are never filled in. (electric-tower.svg …)

   Deliberately NOT matching bare descendants: in a Feather/Lucide-style icon
   the root carries fill="none" and the paths declare nothing, so a blanket
   rule would fill them solid. Only elements that positively declare a fill
   are touched; everything else inherits. */
.td-svg--auto .td-icon--svg svg:not([fill="none"]),
.td-svg--auto .td-icon--svg svg [fill]:not([fill="none"]),
.td-svg--auto .td-icon--svg svg [style*="fill:"]:not([style*="fill:none"]):not([style*="fill: none"]),
/* SOLID ONLY — aggressive by design; the editor has declared it a filled icon */
.td-svg--fill .td-icon--svg svg:not([fill="none"]),
.td-svg--fill .td-icon--svg svg *:not([fill="none"])  { fill: currentColor !important; }

/* auto + outline — recolour strokes, including inline-style ones */
.td-svg--auto   .td-icon--svg svg,
.td-svg--auto   .td-icon--svg svg *,
.td-svg--stroke .td-icon--svg svg,
.td-svg--stroke .td-icon--svg svg *                   { stroke: currentColor !important; }

/* td-svg--original intentionally has no rules — the file renders as authored. */

/* ---------------------------------------------------------------- HERO ---- */
.td-hero { position: relative; min-height: 400px; color: #fff; overflow: hidden; display: flex; align-items: center; }
.td-hero__bg { position: absolute; inset: 0; background: linear-gradient(115deg, #08163f 0%, #0c1d56 55%, #132d85 100%); }
.td-hero__bg--photo::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(8,22,63,0.92) 0%, rgba(8,22,63,0.55) 45%, rgba(8,22,63,0.18) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 400' preserveAspectRatio='none'><g fill='%23050d27'><polygon points='1180,40 1160,260 1120,400 1240,400 1200,260'/><polygon points='1180,40 1160,260 1120,400 1170,400 1180,260'/><rect x='1175' y='40' width='10' height='30'/><polygon points='1130,90 1230,90 1220,100 1140,100'/><polygon points='1140,140 1220,140 1210,150 1150,150'/><polygon points='1150,190 1210,190 1200,200 1160,200'/><polygon points='1390,265 1420,265 1423,290 1387,290'/><polygon points='1500,268 1530,268 1533,290 1497,290'/><path d='M1185,95 Q1300,150 1404,212' stroke='%23050d27' stroke-width='2' fill='none'/><path d='M1407,212 Q1460,235 1514,226' stroke='%23050d27' stroke-width='2' fill='none'/></g></svg>"),
    radial-gradient(ellipse at 85% 100%, rgba(209,130,50,0.28), transparent 55%),
    linear-gradient(to top, #050d27 0 12%, transparent 30%);
  background-repeat: no-repeat; background-size: cover, 100% 100%, cover, cover;
  background-position: center, bottom, bottom, bottom;
}
.td-hero__bg--solid::before {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 480px; height: 480px;
  background: var(--td-emblem, none) no-repeat center / contain; opacity: 0.05;
}
.td-hero__inner { position: relative; width: 100%; padding-top: 72px; padding-bottom: 72px; }
.td-hero__crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 26px; }
.td-hero__crumbs a { color: inherit; text-decoration: none; transition: color 140ms; }
.td-hero__crumbs a:hover { color: #fff; }
.td-hero__crumbs span[aria-hidden] { color: var(--arusi-gold); }
.td-hero__crumbs em { font-style: normal; color: rgba(255,255,255,0.92); }
.td-hero__title {
  font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1.18;
  letter-spacing: 0.035em; text-transform: uppercase; margin: 0 0 18px; max-width: 760px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.4); color: #fff;
}
.td-hero__sub {
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; line-height: 1.9; color: rgba(255,255,255,0.85); margin: 0; max-width: 560px;
}
.td-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* Custom background image treatment. The scrim keeps the white headline
   legible over an arbitrary photo; colour + style are widget controls. */
.td-hero__bg--image { background-size: cover; background-position: center; background-repeat: no-repeat; }
.td-hero__bg--image::before { content: ""; position: absolute; inset: 0; }
.td-hero__bg--image.is-flat::before { background: rgba(8, 22, 63, 0.72); }
.td-hero__bg--image.is-gradient::before {
  background: linear-gradient(to right, rgba(8,22,63,0.92) 0%, rgba(8,22,63,0.72) 30%, transparent 100%);
}

/* ------------------------------------------------------------ BUTTONS ----
   Same construction as the homepage button widget (.arc-pill with .btn-text,
   .hover-fill and four .ripple layers) so hover behaviour is identical.
   The --gold / --ghost variants carry no colours in arusi-widgets.css — the
   homepage sets them per-instance via Elementor controls — so defaults are
   defined here, SCOPED to the T&D sections. Unscoped rules would restyle any
   homepage button still on its defaults. */
.td-hero .arc-pill--gold,
.td-cta .arc-pill--gold { background: var(--arusi-gold); }
.td-hero .arc-pill--gold .hover-fill,
.td-cta .arc-pill--gold .hover-fill { background: var(--gold-500, #b56a22); }

.td-hero .arc-pill--ghost,
.td-cta .arc-pill--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
}
.td-hero .arc-pill--ghost .btn-text,
.td-cta .arc-pill--ghost .btn-text { color: #fff; }
.td-hero .arc-pill--ghost .hover-fill,
.td-cta .arc-pill--ghost .hover-fill { background: rgba(255, 255, 255, 0.16); }
.td-hero .arc-pill--ghost:hover,
.td-cta .arc-pill--ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }

.td-hero .arc-pill--blue,
.td-cta .arc-pill--blue { background: var(--arusi-blue); }
.td-hero .arc-pill--blue .hover-fill,
.td-cta .arc-pill--blue .hover-fill { background: var(--arusi-gold); }

/* The label sits above the rising fill (z-index 5 in arusi-widgets.css); give
   it a transition so a hover text colour eases in with the fill rather than
   snapping. Scoped so homepage buttons keep their current behaviour. */
.td-hero .arc-pill .btn-text,
.td-cta  .arc-pill .btn-text { transition: color 220ms cubic-bezier(0.22, 1, 0.36, 1); }

@media (prefers-reduced-motion: reduce) {
  .td-hero .arc-pill .btn-text,
  .td-cta  .arc-pill .btn-text { transition: none; }
}
.td-hero__trust {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0;
  margin: 44px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,0.18);
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.72);
}
.td-hero__trust li { display: inline-flex; align-items: center; }
.td-hero__trust li + li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--arusi-gold); margin: 0 18px; flex: none;
}

/* ----------------------------------------------------------------- WHY ---- */
.td-why { padding: 96px 0 88px; background: #fff; }

/* Layout is driven by custom properties so the widget's width controls can
   set the variables while the stacking media query below still owns the
   grid-template-columns property itself. Elementor writes its control rules at
   a higher specificity, so a control that set the property directly would beat
   the mobile breakpoint and stop the fold from stacking. */
.td-why__inner {
  --td-why-max:   1100px;
  --td-why-media: 500px;
  --td-why-gap:   64px;
  max-width: var(--td-why-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--td-why-media) minmax(0, 1fr);
  gap: var(--td-why-gap);
  align-items: center;
}
/* Photo on the right. */
.td-why__inner.is-flipped { grid-template-columns: minmax(0, 1fr) var(--td-why-media); }
.td-why__inner.is-flipped .td-why__media { order: 2; }
.td-why__media { position: relative; }
.td-why__media::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  background: var(--blue-50, #eef1fa); border-radius: 6px; z-index: 0;
}
/* NOTE ON SPECIFICITY FOR ALL <img> RULES BELOW
   Elementor ships `.elementor img { height:auto; max-width:100%; border-radius:0 }`
   in frontend.min.css, which loads AFTER this file. `.elementor img` is (0,1,1),
   so a plain `.td-x__media img` (0,1,1) loses the tie on source order and a
   single-class rule like `.td-cred__badge` (0,1,0) loses outright. Every image
   rule here is therefore qualified with its section class to reach (0,2,1). */
.td-why .td-why__media img { position: relative; z-index: 1; display: block; width: 100%; height: 480px; object-fit: cover; border-radius: 6px; }
.td-why__mark { width: 44px; height: 3px; background: var(--arusi-gold); margin-bottom: 34px; }
.td-why__lead {
  font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.45;
  letter-spacing: -0.005em; color: var(--arusi-blue); margin: 0 0 28px;
}
.td-why__copy p { font-family: var(--font-body); font-size: 15px; line-height: 1.8; color: var(--fg-2, #3a3b3d); margin: 0 0 16px; }
.td-why__copy p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- DIFF ---- */
.td-diff { padding: 92px 0 96px; background: #fff; border-top: 1px solid var(--rule, rgba(19,45,133,0.12)); }
.td-diff__head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.td-diff__title { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--arusi-blue); margin: 14px 0 22px; line-height: 1.25; }
.td-diff__lead { font-family: var(--font-display); font-weight: 500; font-size: 17px; line-height: 1.55; color: var(--fg-1, #0b0d12); margin: 0 0 10px; }
.td-diff__lead-sub { font-family: var(--font-body); font-size: 13.5px; line-height: 1.7; color: var(--fg-3, #636466); margin: 0; }
.td-diff__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 56px; max-width: 1020px; margin: 0 auto; }
.td-diff__item { position: relative; }
.td-diff__num { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.td-diff__num > span:first-child { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--arusi-blue); letter-spacing: -0.02em; line-height: 1; }
.td-diff__dots { flex: 1; height: 6px; background-image: radial-gradient(circle, var(--neutral-300, #b9bdc6) 1px, transparent 1.5px); background-size: 8px 6px; background-repeat: repeat-x; background-position: 0 50%; }
.td-diff__icon { color: var(--arusi-gold); margin-bottom: 16px; line-height: 0; }
.td-diff__h { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--arusi-blue); margin: 0 0 10px; }
.td-diff__body { font-family: var(--font-body); font-size: 13.5px; line-height: 1.7; color: var(--fg-2, #3a3b3d); margin: 0; }

/* ------------------------------------------------------------ SERVICES ---- */
.td-svc { padding: 92px 0 96px; background: var(--neutral-50, #f6f7f9); border-top: 1px solid var(--rule, rgba(19,45,133,0.12)); border-bottom: 1px solid var(--rule, rgba(19,45,133,0.12)); }
/* The first track is a variable so the Heading Column Width control can set it
   without either layout losing its own second track. */
.td-svc__head { display: grid; grid-template-columns: var(--td-svc-head-col, 1.2fr) 1fr; gap: 56px; align-items: end; margin-bottom: 52px; }
/* Intro beneath the heading: the copy column takes the space and the arrows
   shrink to their own width on the right. */
.td-svc__head--stacked { grid-template-columns: var(--td-svc-head-col, minmax(0, 1fr)) auto; }
.td-svc__head--stacked .td-svc__intro { margin-top: 18px; max-width: var(--td-svc-intro-max, 720px); }
.td-svc__head--stacked .td-svc__ctrl { margin-top: 0; }
.td-svc__aside { display: flex; flex-direction: column; justify-content: flex-end; }
.td-svc__title { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.25; letter-spacing: 0.02em; text-transform: uppercase; color: var(--arusi-blue); margin: 12px 0 0; }
.td-svc__intro p { font-family: var(--font-body); font-size: 14px; line-height: 1.7; color: var(--fg-2, #3a3b3d); margin: 0; }

.td-svc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.td-svc__grid--rows { grid-template-columns: 1fr; max-width: 880px; margin: 0 auto; }

.td-svc__track {
  display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  padding: 6px 6px 28px; margin: -6px -6px -10px;
  scrollbar-width: none;
  /* The JS tween writes scrollLeft each frame; native smooth scrolling would
     fight it, so keep this on auto. */
  scroll-behavior: auto;
  outline: none;
}
.td-svc__track::-webkit-scrollbar { display: none; }
.td-svc__track .td-svc-card { flex: 0 0 min(400px, 82vw); scroll-snap-align: start; }

/* Scroll-snap and a JS tween fight each other — the browser re-snaps mid-
   animation, which reads as stutter. Snap is suspended while animating or
   dragging, then restored so manual/touch scrolling still snaps. */
.td-svc__track.is-animating,
.td-svc__track.is-dragging,
.td-svc__track.no-snap { scroll-snap-type: none; }

.td-svc__track.is-draggable { cursor: grab; }
.td-svc__track.is-dragging  { cursor: grabbing; user-select: none; }
.td-svc__track.is-dragging a,
.td-svc__track.is-dragging .td-svc-card { pointer-events: none; }

/* Keyboard focus ring on the track (it is focusable for arrow-key paging). */
.td-svc__track:focus-visible { outline: 2px solid var(--arusi-blue); outline-offset: 4px; }

/* ---- Pagination dots ---- */
.td-svc__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.td-svc__dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--blue-200, #aab6dc);
  transition: background 180ms, transform 180ms, width 180ms;
}
.td-svc__dot:hover { background: var(--arusi-blue); }
.td-svc__dot.is-active { background: var(--arusi-gold); width: 22px; border-radius: 999px; }
.td-svc__ctrl { display: flex; gap: 10px; margin-top: 22px; }
.td-svc__arrow {
  width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--blue-200, #aab6dc); background: #fff; color: var(--arusi-blue);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 160ms, color 160ms, border-color 160ms, opacity 160ms;
}
.td-svc__arrow:hover:not(:disabled) { background: var(--arusi-blue); border-color: var(--arusi-blue); color: #fff; }
.td-svc__arrow:disabled { opacity: 0.35; cursor: default; }

.td-svc-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--border-subtle, #eceef2); border-radius: 4px;
  box-shadow: 0 1px 2px rgba(11,13,18,0.06), 0 1px 1px rgba(11,13,18,0.04);
  padding: 30px 32px 32px;
  transition: box-shadow 200ms, transform 200ms, border-color 200ms;
}
.td-svc-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--arusi-gold); transform: scaleX(0); transform-origin: left;
  transition: transform 260ms;
}
.td-svc-card:hover { box-shadow: 0 12px 24px rgba(11,13,18,0.08), 0 4px 8px rgba(11,13,18,0.04); transform: translateY(-3px); border-color: var(--blue-200, #aab6dc); }
.td-svc-card:hover::after { transform: scaleX(1); }
.td-svc-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.td-svc-card__icon { color: var(--arusi-gold); display: inline-flex; transition: color 200ms, transform 200ms; }
.td-svc-card:hover .td-svc-card__icon { color: var(--arusi-blue); transform: translateY(-2px); }
.td-svc-card__tag { font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--arusi-blue); background: var(--blue-50, #eef1fa); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.td-svc-card__title { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--arusi-blue); margin: 0 0 10px; }
.td-svc-card__body { font-family: var(--font-body); font-size: 13.5px; line-height: 1.7; color: var(--fg-2, #3a3b3d); margin: 0; }

/* ------------------------------------------------------------- PROCESS ---- */
.td-proc { padding: 92px 0 96px; background: #fff; }
.td-proc__head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.td-proc__title { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--arusi-blue); margin: 14px 0 16px; line-height: 1.25; }
.td-proc__sub { font-family: var(--font-body); font-size: 14px; line-height: 1.7; color: var(--fg-2, #3a3b3d); margin: 0; }
.td-proc__cols { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: start; }

.td-step { display: grid; grid-template-columns: 40px 1fr; gap: 20px; position: relative; padding-bottom: 34px; }
.td-step:last-child { padding-bottom: 0; }
.td-step::before { content: ""; position: absolute; left: 19.5px; top: 44px; bottom: 8px; width: 1px; background-image: linear-gradient(to bottom, var(--blue-200, #aab6dc) 60%, transparent 0); background-size: 1px 7px; }
.td-step:last-child::before { display: none; }
.td-step__num {
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
  border: 1.5px solid var(--blue-200, #aab6dc); color: var(--arusi-blue);
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.td-step__h { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--fg-1, #0b0d12); margin: 9px 0 7px; }
.td-step__body { font-family: var(--font-body); font-size: 13.5px; line-height: 1.65; color: var(--fg-2, #3a3b3d); margin: 0; }

/* ---- Unblocking position:sticky -------------------------------------------
   The Energo parent theme sets `overflow: hidden !important` on .boxed_wrapper,
   which wraps the whole page. Any ancestor with overflow hidden/auto/scroll
   creates a scroll container and disables position:sticky on every descendant,
   so no CSS on the panel itself can fix it. (An earlier page in this project
   worked around the same rule with JS position:fixed — see
   energo-child/assets/css/insight-post.css.)

   `overflow: clip` clips identically to `hidden` but does NOT create a scroll
   container, so sticky keeps working and the theme's intent — no horizontal
   scrollbar — is preserved. overflow-x:clip + overflow-y:visible is a legal
   pair (unlike hidden + visible, where visible would compute to auto).

   Scoped with :has() so only pages that actually contain the timeline panel are
   affected; the rest of the site keeps the theme's rule untouched. On a browser
   without :has() support the selector simply never matches and the panel scrolls
   normally — the current behaviour, so nothing breaks. */
body:has(.td-timeline) .boxed_wrapper {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

/* Sticky timeline panel.
   position/top come from custom properties so the widget controls can set them
   while the 980px breakpoint below still owns the `position` property itself —
   Elementor writes control rules at a higher specificity, so a control setting
   `position` directly would keep the panel sticky on mobile too.
   `align-self: start` is what actually makes sticking possible: as a grid item
   it would otherwise stretch to the full row height, leaving nothing to scroll
   against. */
.td-timeline {
  background: var(--neutral-50, #f6f7f9);
  border: 1px solid var(--border-subtle, #eceef2);
  border-radius: 6px;
  padding: 34px 34px 30px;
  position: var(--td-tl-pos, sticky);
  top: var(--td-tl-top, 96px);
  align-self: start;
}
.td-timeline__h { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--arusi-blue); margin: 0 0 22px; line-height: 1.4; }
.td-timeline__row { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--rule, rgba(19,45,133,0.12)); }
.td-timeline__label { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--fg-1, #0b0d12); }
.td-timeline__dur { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--arusi-gold); }
.td-timeline__body { font-family: var(--font-body); font-size: 12.5px; line-height: 1.6; color: var(--fg-3, #636466); margin: 2px 0 0; }
.td-timeline__note { font-family: var(--font-body); font-size: 12.5px; line-height: 1.65; color: var(--fg-3, #636466); margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--rule, rgba(19,45,133,0.12)); }

/* --------------------------------------------------------------- PROOF ---- */
.td-proof { position: relative; padding: 96px 0; background: linear-gradient(115deg, #08163f 0%, #0c1d56 60%, #132d85 100%); color: #fff; overflow: hidden; }
.td-proof::before { content: ""; position: absolute; left: -100px; top: -140px; width: 460px; height: 460px; background: var(--td-emblem, none) no-repeat center / contain; opacity: 0.04; }
.td-proof__inner { position: relative; }

/* ---- Case-study slider ----
   Driven by the same engine as the service-card carousel. Each slide is one
   full track width. With a single study the track never overflows, so the
   arrows and dots hide themselves and this behaves as a static section. */
.td-proof__track {
  display: flex; gap: 0; overflow-x: auto;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; scroll-behavior: auto; outline: none;
}
.td-proof__track::-webkit-scrollbar { display: none; }
.td-proof__track > .td-proof__slide { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }

/* Column layout on the slide so a minimum height has something to distribute:
   justify-content positions the content inside any spare vertical space, and
   the stretch option lets the photo/copy row absorb it instead. Purely
   structural — with no height set this renders identically to a block. */
.td-proof__slide {
  display: flex;
  flex-direction: column;
  justify-content: var(--td-proof-valign, flex-start);
  min-height: var(--td-proof-slide-h, auto);
}
.td-proof > .arc-container { width: 100%; }
.td-proof__track.is-animating,
.td-proof__track.is-dragging { scroll-snap-type: none; }
.td-proof__track.is-draggable { cursor: grab; }
.td-proof__track.is-dragging  { cursor: grabbing; user-select: none; }
.td-proof__track:focus-visible { outline: 2px solid var(--arusi-gold); outline-offset: 6px; }

.td-proof__nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; flex-wrap: wrap; }
.td-proof__ctrl { display: flex; gap: 10px; }
.td-proof__arrow {
  width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.3); background: transparent; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 160ms, color 160ms, border-color 160ms, opacity 160ms;
}
.td-proof__arrow:hover:not(:disabled) { background: var(--arusi-gold); border-color: var(--arusi-gold); color: #fff; }
.td-proof__arrow:disabled { opacity: 0.3; cursor: default; }
.td-proof__dots { margin-top: 0; }
.td-proof__dots .td-svc__dot { background: rgba(255,255,255,0.35); }
.td-proof__dots .td-svc__dot:hover { background: rgba(255,255,255,0.65); }
.td-proof__dots .td-svc__dot.is-active { background: var(--arusi-gold); }

.td-proof__layout {
  --td-proof-media: 480px;
  display: grid; grid-template-columns: var(--td-proof-media) minmax(0, 1fr);
  gap: 56px; align-items: stretch;
}
.td-proof__layout.is-flipped { grid-template-columns: minmax(0, 1fr) var(--td-proof-media); }
.td-proof__layout.is-flipped .td-proof__media { order: 2; }
.td-proof__media { position: relative; }
.td-proof__media::before {
  content: ""; position: absolute; inset: 20px -20px -20px 20px;
  border: 1px solid rgba(209,130,50,0.45); border-radius: 6px;
}
.td-proof .td-proof__media img { position: relative; display: block; width: 100%; height: 100%; min-height: 520px; object-fit: cover; border-radius: 6px; background: var(--neutral-50, #f6f7f9); }
.td-proof__head { max-width: 820px; margin-bottom: 40px; }
.td-proof__title { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: 0.02em; text-transform: uppercase; color: #fff; margin: 14px 0 14px; }
.td-proof__case { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.92); margin: 0; }
.td-proof__case small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--arusi-gold); margin-top: 8px; }
.td-proof__cols { display: grid; gap: 26px; }
.td-proof__col { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 24px; }
.td-proof__col h3 { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--arusi-gold); margin: 0 0 14px; }
.td-proof__col-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.td-proof__col-head h3 { margin: 0; }
.td-proof__badge {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.06);
  color: var(--arusi-gold); display: inline-flex; align-items: center; justify-content: center;
}
.td-proof__badge svg { width: 20px; height: 20px; }
.td-proof__col p { font-family: var(--font-body); font-size: 13.5px; line-height: 1.75; color: rgba(255,255,255,0.82); margin: 0; }
.td-proof__metric {
  margin-top: 52px; border: 1px dashed rgba(255,255,255,0.3); border-radius: 4px;
  padding: 18px 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.06em; color: rgba(255,255,255,0.55);
}
.td-proof__metric strong { font-weight: 700; color: rgba(255,255,255,0.78); letter-spacing: 0.1em; }

/* ----------------------------------------------------------------- FAQ ---- */
.td-faq { padding: 92px 0 96px; background: #fff; }
.td-faq__head { text-align: center; margin-bottom: 48px; }
.td-faq__title { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--arusi-blue); margin: 14px 0 0; }
.td-faq__list { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--border, #d8dbe1); }
.td-faq__item { border-bottom: 1px solid var(--border, #d8dbe1); }
.td-faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  text-align: left; padding: 22px 4px; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.45; color: var(--fg-1, #0b0d12);
  transition: color 140ms;
}
.td-faq__q:hover { color: var(--arusi-blue); }
.td-faq__item.is-open .td-faq__q { color: var(--arusi-blue); }
.td-faq__chev { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--blue-200, #aab6dc); color: var(--arusi-blue); display: inline-flex; align-items: center; justify-content: center; transition: transform 200ms, background 140ms; }
.td-faq__item.is-open .td-faq__chev { background: var(--arusi-blue); border-color: var(--arusi-blue); color: #fff; transform: rotate(45deg); }
.td-faq__a { overflow: hidden; max-height: 0; transition: max-height 280ms; }
.td-faq__item.is-open .td-faq__a { max-height: 400px; }
.td-faq__a p { font-family: var(--font-body); font-size: 13.5px; line-height: 1.75; color: var(--fg-2, #3a3b3d); margin: 0; padding: 0 44px 24px 4px; }

/* --------------------------------------------------------- CREDENTIALS ---- */
.td-cred { padding: 72px 0; background: #fff; border-top: 1px solid var(--rule, rgba(19,45,133,0.12)); }
.td-cred__head { text-align: center; margin-bottom: 40px; }
.td-cred__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--arusi-blue); margin: 12px 0 0; }
.td-cred__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
.td-cred__card { border: 1px solid var(--border-subtle, #eceef2); border-radius: 4px; background: #fff; box-shadow: 0 1px 1px rgba(11,13,18,0.04); padding: 26px 28px; display: flex; align-items: center; gap: 20px; }
.td-cred__seal {
  flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid var(--gold-200, #e9b988); background: var(--gold-50, #fbf2e8); color: var(--arusi-gold);
  display: flex; align-items: center; justify-content: center;
}
.td-cred__acro { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.04em; color: var(--arusi-blue); }
.td-cred__name { font-family: var(--font-body); font-size: 12px; line-height: 1.5; color: var(--fg-3, #636466); margin-top: 4px; }
.td-cred__text { min-width: 0; }

/* Certification badge artwork used instead of an icon. Badges are usually
   wider than they are tall, so height is the fixed dimension and width follows
   the artwork's own ratio — object-fit keeps it undistorted either way. */
.td-cred .td-cred__badge {
  flex: 0 0 auto;
  display: block;
  height: var(--td-cred-badge-h, 54px);
  width: auto;
  max-width: var(--td-cred-badge-max, 140px);
  object-fit: contain;
  border-radius: var(--td-cred-badge-radius, 0);
}
.td-cred__badge-link { flex: 0 0 auto; display: inline-flex; line-height: 0; }
/* A badge-only card (no acronym or name) centres its artwork. */
.td-cred__card--badge:not(:has(.td-cred__text)) { justify-content: center; }

/* ----------------------------------------------------------------- CTA ---- */
.td-cta { padding: 92px 0 100px; background: var(--neutral-50, #f6f7f9); border-top: 1px solid var(--rule, rgba(19,45,133,0.12)); text-align: center; }
.td-cta__title { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--arusi-blue); margin: 14px 0 18px; }
.td-cta__sub { font-family: var(--font-body); font-size: 14.5px; line-height: 1.75; color: var(--fg-2, #3a3b3d); max-width: 560px; margin: 0 auto 36px; }
.td-cta__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---- Lead form -------------------------------------------------------------
   The .td-lead* styles ship in arusi-widgets.css (shared with the CAP CTA
   widget), but that copy dropped two declarations the design had:
   `margin: 0 auto` and `text-align: left`. Without them the card sits flush
   left and every label inherits .td-cta's `text-align: center`.

   Restored here and scoped to .td-cta so the CAP widget keeps its own
   behaviour. Alignment is driven by custom properties the widget controls set. */
.td-cta .td-lead {
  margin-inline: var(--td-lead-align, auto);   /* auto = centred */
  text-align: left;
  max-width: var(--td-lead-max, 720px);
}
.td-cta .td-lead__label { text-align: var(--td-lead-label-align, left); }
.td-cta .td-lead__input { text-align: left; }
.td-cta .td-lead__foot  { justify-content: var(--td-lead-foot-align, flex-start); }

/* The confirmation panel is a centred message by design. */
.td-cta .td-lead--sent { text-align: center; margin-inline: var(--td-lead-align, auto); }
.td-cta .td-lead__error { text-align: left; }

/* ------------------------------------------------------------ Responsive -- */
@media (max-width: 980px) {
  .td-hero__title { font-size: 30px; }
  /* Set the property, not the variable — widget controls own the variables and
     Elementor's higher specificity would otherwise win here. */
  .td-diff__grid, .td-svc__grid, .td-proc__cols, .td-proof__cols, .td-cred__grid,
  .td-proof__layout, .td-proof__layout.is-flipped { grid-template-columns: 1fr; }
  .td-proof__media,
  .td-proof__layout.is-flipped .td-proof__media { order: 2; margin-top: 12px; }
  .td-proof .td-proof__media img { min-height: 320px; }
  .td-svc__head,
  .td-svc__head--stacked { grid-template-columns: 1fr; gap: 20px; }
  .td-svc__aside { justify-content: flex-start; }
  .td-timeline { position: static; }
}

@media (max-width: 880px) {
  /* Set the property, not the variable — the widget's width controls own the
     variables, and Elementor's higher specificity would otherwise win here. */
  .td-why__inner,
  .td-why__inner.is-flipped { grid-template-columns: 1fr; }
  .td-why__media,
  .td-why__inner.is-flipped .td-why__media { order: 2; }
  .td-why .td-why__media img { height: 320px; }
}

@media (max-width: 767px) {
  .td-hero__inner { padding-top: 48px; padding-bottom: 48px; }
  .td-hero__title { font-size: 26px; }
  .td-hero__trust li + li::before { margin: 0 12px; }
  .td-why, .td-diff, .td-svc, .td-proc, .td-faq, .td-cta { padding: 56px 0; }
  .td-proof { padding: 56px 0; }
  .td-proof::before, .td-why__media::before, .td-proof__media::before { display: none; }
  .td-step::before { display: none; }
  .td-svc__track .td-svc-card { flex-basis: 86vw; }
  .td-timeline { padding: 26px 24px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .td-svc-card, .td-svc-card::after, .td-svc-card__icon, .td-faq__a { transition: none !important; }
  .td-svc-card:hover { transform: none; }
}
