/* Service pages (/services/*.html). Loaded after styles.css and case-study.css, which provide the header, footer,
   section bands (.cs-sec, .cs-sec--grey, .cs-sec--navy), headings (.cs-h2), reading column (.cs-col) and the
   homepage's closing call to action. Everything here is a class under .ae-service; no bare element rules, so the
   shared blocks keep their own look. Colours follow the homepage: orange captions, ink headings, muted body text. */

/* ---------- captions: orange, like Who we are and the case studies ---------- */
.ae-service .sv-eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--orange); margin: 0 0 20px; }
.ae-service .cs-sec--navy .sv-eyebrow { color: var(--orange); }

/* ---------- opening (grey, like the homepage service cards, so the live figure sits on its own background) ---------- */
.ae-service .sv-hero { background: var(--grey); padding: calc(var(--nav-h) + 56px) 0 88px; overflow-x: clip; }
.ae-service .sv-hero .cs-crumbs ol { color: var(--muted); }
.ae-service .sv-hero .cs-crumbs li + li::before { color: rgba(13, 13, 13, .3); }
.ae-service .sv-hero .cs-crumbs a { color: var(--muted); text-decoration-color: var(--line-light); }
.ae-service .sv-hero .cs-crumbs a:hover { color: var(--ink); }
.ae-service .sv-hero .cs-crumbs [aria-current] { color: var(--ink); }
.ae-service .sv-hero__grid { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 64px; align-items: center; }
.ae-service .sv-hero h1 { color: var(--ink); max-width: 12em; }
.ae-service .sv-deck { margin-top: 24px; max-width: 34em; font-size: 18px; line-height: 27px; letter-spacing: -.18px; color: var(--muted); }
.ae-service .sv-scope { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-light); max-width: 34em; font-size: 15px; line-height: 22px; color: var(--ink); }
.ae-service .sv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
/* the secondary action: the homepage's small orange text link with an arrow */
/* one underline under the text and the arrow together, and the whole link nudges down as one */
.ae-service .sv-more { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 2px; border-bottom: 1px solid currentColor; font-size: 16px; line-height: 24px; font-weight: 500;
  color: var(--orange); text-decoration: none; transition: transform .25s var(--ease-btn); }
/* arrows never move on hover, in any direction (Andrii, 2026-11-04) */
.ae-service .sv-micro { margin-top: 16px; font-size: 13px; line-height: 20px; color: var(--muted); }
/* the homepage card's figure: .dcard__art keeps its look and behaviour; only its size and margins change here */
.ae-service .sv-figure { width: 100%; max-width: 540px; margin: 0; justify-self: end; }

/* ---------- reading sections: muted body text, ink lists with orange markers (as on the homepage) ---------- */
.ae-service .sv-reading .cs-prose p, .ae-service .sv-reading p { font-size: 18px; line-height: 1.65; color: var(--muted); }
.ae-service .sv-reading .cs-h2 + p { margin-top: 28px; }
.ae-service .sv-reading p + p { margin-top: 20px; }
.ae-service .sv-list { list-style: none; margin: 24px 0; padding: 0; }
.ae-service .sv-list li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--line-light); font-size: 17px; line-height: 1.5; color: var(--ink); }
.ae-service .sv-list li:last-child { border-bottom: 1px solid var(--line-light); }
.ae-service .sv-list li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 6px; height: 6px; background: var(--orange); }

/* ---------- How it works: four cards; the one you point at (or tab to) lights up: outline, number and title ---------- */
.ae-service .sv-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ae-service .sv-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; align-content: start; padding: 32px 32px 36px; background: var(--white); border: 1px solid var(--line-light); outline: none; cursor: default;
  transition: border-color .25s var(--ease-btn), box-shadow .25s var(--ease-btn); }
.ae-service .sv-step__num { grid-row: span 2; font-family: var(--serif); font-weight: 300; font-size: 40px; line-height: 1; letter-spacing: -.02em; color: #808080; transition: color .25s var(--ease-btn); }
.ae-service .sv-step__title { font-family: var(--sans); font-size: 20px; line-height: 1.3; font-weight: 500; color: var(--ink); transition: color .25s var(--ease-btn); }
.ae-service .sv-step__text { grid-column: 2; margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.ae-service .sv-step:hover, .ae-service .sv-step:focus-visible { border-color: var(--orange); box-shadow: inset 0 0 0 .5px var(--orange); }
.ae-service .sv-step:hover .sv-step__num, .ae-service .sv-step:focus-visible .sv-step__num,
.ae-service .sv-step:hover .sv-step__title, .ae-service .sv-step:focus-visible .sv-step__title { color: var(--orange); }

/* ---------- What you get (navy): green round checks and green titles, like the case-study results ---------- */
.ae-service .sv-gets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 72px; margin-top: 40px; }
.ae-service .sv-get { padding: 28px 0 32px; border-top: 1px solid var(--line-dark); }
.ae-service .sv-get__title { display: flex; align-items: flex-start; gap: 12px; font-family: var(--sans); font-size: 20px; line-height: 1.3; font-weight: 500; color: var(--good); }
.ae-service .sv-check { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--good); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ae-service .sv-get__text { margin: 12px 0 0 32px; max-width: 30em; font-size: 16px; line-height: 1.6; color: var(--on-dark-muted); }

/* ---------- smaller screens ---------- */
@media (max-width: 1023px) {
  .ae-service .sv-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ae-service .sv-figure { justify-self: start; max-width: 460px; }
}
@media (max-width: 899px) {
  .ae-service .sv-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ae-service .sv-gets { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ae-service .sv-hero { padding: calc(var(--nav-h) + 32px) 0 56px; }
  .ae-service .sv-figure { max-width: 100%; }
  .ae-service .sv-step { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .ae-service .sv-step__num { grid-row: auto; font-size: 32px; margin-bottom: 12px; }
  .ae-service .sv-step__text { grid-column: 1; }
  .ae-service .sv-reading p { font-size: 17px; }
  .ae-service .sv-list li { font-size: 16px; }
  .ae-service .sv-get__text { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .ae-service .sv-step, .ae-service .sv-step__num, .ae-service .sv-step__title, .ae-service .sv-more { transition: none; } }

/* ================= New service-page structure (.ae-service--v2; Andrii, 2026-11-04) ================= */
/* 1. black hero, as on the case studies: figures proving the pain point, cited sources, the live figure in dark */
.ae-service--v2 .sv2-hero .cs-hero__grid { align-items: center; }
.ae-service--v2 .sv2-hero .sv-actions { margin-top: 32px; }
.ae-service--v2 .sv2-proof { margin-top: 44px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
.ae-service--v2 .sv2-proof dd { font-size: 14px; line-height: 20px; }
.ae-service--v2 .sv2-sources { margin-top: 12px; font-size: 12px; line-height: 18px; color: rgba(255, 255, 255, .6); }
.ae-service--v2 .sv2-sources a { color: rgba(255, 255, 255, .78); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.ae-service--v2 .sv2-sources a:hover { color: var(--white); }
.ae-service--v2 .sv2-figure { justify-self: end; width: 100%; max-width: 540px; aspect-ratio: 5 / 4; }
/* the dark figure uses the flat kit's dark palette, with the brand orange for the part under the lens (as on the homepage card) */
.ae-service--v2 .sv2-figure { --hairline-plate: #000000; --hairline-hi: #FF772E; --hairline-edge: #C9C9CF; --hairline-mid: #6B6B73; --hairline-lo: #2E2E33; --hairline-stroke: 1; }
.ae-service--v2 .sv2-figure svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ae-service--v2 .sv2-figure svg * { vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }

/* 2. the pain point: the reading column, muted body text */
.ae-service--v2 #challenge .cs-h2 + p { margin-top: 28px; }

/* 3. when an audit helps: the homepage Use Cases block as is (styles.css .ind); a plain list without JavaScript */
.ae-service--v2 .sv2-cases__plain { margin: 32px 0 0; padding: 0; list-style: none; color: var(--on-dark-muted); display: grid; gap: 12px; }
.ae-service--v2 .sv2-cases__plain b { color: var(--white); font-weight: 500; }

/* 4. what you get: illustrated cards, in the style of the homepage service cards */
.ae-service--v2 .sv2-gets { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ae-service--v2 .sv2-get { display: flex; flex-direction: column; background: var(--grey); }
.ae-service--v2 .sv2-get__art { padding: 12px 16px 0; }
.ae-service--v2 .sv2-get__art img { width: 100%; height: auto; }
.ae-service--v2 .sv2-get__body { padding: 20px 24px 28px; border-top: 1px solid var(--line-light); display: grid; gap: 10px; }
.ae-service--v2 .sv2-get__title { font-family: var(--sans); font-size: 20px; line-height: 1.3; font-weight: 500; color: var(--ink); }
.ae-service--v2 .sv2-get__text { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* 5. how it works: four interactive steps in a row, then timing, what you provide and the scope */
.ae-service--v2 .sv2-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ae-service--v2 .sv2-steps .sv-step { grid-template-columns: minmax(0, 1fr); padding: 28px 24px 32px; }
.ae-service--v2 .sv2-steps .sv-step__num { grid-row: auto; margin-bottom: 18px; }
.ae-service--v2 .sv2-steps .sv-step__text { grid-column: 1; }
.ae-service--v2 .sv2-scope { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line-light); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.ae-service--v2 .sv2-scope__label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--orange); margin: 0 0 10px; }
.ae-service--v2 .sv2-scope__time p:not(.sv2-scope__label) { font-size: 16px; line-height: 1.6; color: var(--muted); }
.ae-service--v2 .sv2-scope__time p.sv2-scope__big { font-family: var(--serif); font-weight: 300; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin-bottom: 32px; }
.ae-service--v2 .sv2-scope__list .sv-list { margin: 0; }
.ae-service--v2 .sv2-scope__small { margin-top: 16px; font-size: 14px; line-height: 1.55; color: var(--muted); }

@media (max-width: 1100px) {
  .ae-service--v2 .sv2-gets, .ae-service--v2 .sv2-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .ae-service--v2 .sv2-figure { justify-self: start; max-width: 460px; }
}
@media (max-width: 760px) {
  .ae-service--v2 .sv2-scope { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
  .ae-service--v2 .sv2-gets, .ae-service--v2 .sv2-steps { grid-template-columns: minmax(0, 1fr); }
  .ae-service--v2 .sv2-figure { max-width: 100%; }
}

/* 2. the pain point uses the homepage's Who we are classes (styles.css .about); until its drawing exists it is one column */
.ae-service--v2 .sv2-pain__grid--solo { grid-template-columns: minmax(0, 1fr); }
.ae-service--v2 .sv2-pain__grid--solo .about__copy { max-width: 780px; }
.ae-service--v2 .sv2-pain__art { width: 100%; max-width: 480px; height: auto; }

/* 4. what the audit includes: under the four deliverables, spread across two columns */
.ae-service--v2 .sv2-includes { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line-light); }
.ae-service--v2 .sv2-includes__label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--orange); margin: 0 0 16px; }
.ae-service--v2 .sv2-includes__list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.ae-service--v2 .sv2-includes__list li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line-light); } /* both columns end on a line */
.ae-service--v2 .sv2-includes__small { margin-top: 16px; font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 760px) { .ae-service--v2 .sv2-includes__list { grid-template-columns: minmax(0, 1fr); } .ae-service--v2 .sv2-includes__list li:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }

/* 3. a link at the foot of the tab list: the list and the link fill the column, so the link lines up with the bottom of the panel card */
.ae-service--v2 .sv2-cases__side { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.ae-service--v2 .sv2-cases__more { align-self: flex-start; }
@media (max-width: 900px) { .ae-service--v2 .sv2-cases__side { order: 0; } }
@media (min-width: 901px) {
  /* the homepage pins the tab list over the whole column; here it shares the column with the link below it */
  .ae-service--v2 .sv2-cases__side .ind__list { position: relative; inset: auto; flex: 1 1 0; min-height: 0; }
}

/* Clarify when service-page proof comes from a wider client engagement. */
.ae-service .sv-story-context { margin: 20px 0 0; font-size: 14px; line-height: 1.5; color: var(--on-dark-muted); }
