/* The light opening the service pages share (components/LightHero.tsx), set to the procurement page's
   values: a white surface with a pale blue wash from the top right, a large two-line title with one
   blue phrase, the page's purpose, two actions, and a page-specific drawing in the right-hand space. Then
   `.light-intro`, the first section's label | heading-and-copy split under a hairline, and the scroll
   reveal. The rules name the pages that use it: each page sets its own text styles by id, and the
   opening has to sit above them. */
.details-page :is(#v-certification, #v-insights, #v-company) .lh-hero { position: relative; isolation: isolate; overflow: clip; background: #fff; }
.details-page :is(#v-certification, #v-insights, #v-company) .lh-hero :is(h1, p) { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
.details-page :is(#v-certification, #v-insights, #v-company) .lh-frame { width: min(calc(100% - 2 * var(--gutter)), var(--site-width)); min-width: 0; margin-inline: auto; }
/* Keep the atmosphere behind the right-hand space; the reading surface stays clear. */
.details-page :is(#v-certification, #v-insights, #v-company) .lh-atmosphere { position: absolute; z-index: -1; inset: 0; overflow: clip; pointer-events: none; }
.details-page :is(#v-certification, #v-insights, #v-company) .lh-ambient-intro { position: absolute; inset: 0; transform-origin: 85% 24%; }
.details-page :is(#v-certification, #v-insights, #v-company) .lh-ambient-wash { position: absolute; inset: -34% -16% -24% 16%; background: radial-gradient(ellipse at 68% 34%, rgb(107 156 200 / 30%) 0%, rgb(107 156 200 / 15%) 34%, rgb(107 156 200 / 5%) 54%, transparent 72%); transform-origin: 72% 30%; }
.details-page :is(#v-certification, #v-insights, #v-company) .lh-art { position: absolute; top: clamp(136px, 20svh, 216px); right: max(var(--gutter), calc((100% - var(--site-width)) / 2)); width: clamp(280px, 26vw, 380px); height: auto; }
.details-page :is(#v-certification, #v-insights, #v-company) .lh-art-motion { transform-box: fill-box; transform-origin: center; }
.details-page #v-insights .lh-insight-page-left { transform-origin: right center; }
.details-page #v-insights :is(.lh-insight-page-right, .lh-insight-highlight) { transform-origin: left center; }
/* A generous lead-in above the title, scaled to the viewport rather than a fixed hero height. */
.details-page :is(#v-certification, #v-insights, #v-company) .lh-content { padding-block: clamp(120px, 24svh, 248px) clamp(72px, 9svh, 96px); }
.details-page :is(#v-certification, #v-insights, #v-company) .lh-hero h1 { max-width: 1100px; color: #1a2028; font-size: clamp(2.5rem, 5.2vw, 5rem); font-weight: 750; line-height: 1.18; letter-spacing: -.055em; }
.details-page :is(#v-certification, #v-insights, #v-company) .lh-line { display: inline-block; max-width: 100%; vertical-align: top; }
.details-page :is(#v-certification, #v-insights, #v-company) .lh-accent { color: var(--brand); }
.details-page :is(#v-certification, #v-insights, #v-company) .lh-hero p { max-width: 36em; margin-top: 28px; color: #56616d; font-size: clamp(18px, 1.5vw, 20px); font-weight: var(--fw-body); line-height: 1.8; }
.details-page :is(#v-certification, #v-insights, #v-company) .lh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.details-page :is(#v-certification, #v-insights, #v-company) .lh-actions .button-link { min-height: 52px; padding: 12px 26px; border-color: #e7edf3; background: #f0f4f8; color: #3d454f; font-size: 16px; text-decoration: none; }
.details-page :is(#v-certification, #v-insights, #v-company) .lh-actions .lh-primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.details-page :is(#v-certification, #v-insights, #v-company) .lh-actions .button-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }

/* The first section after the opening: what the page is about on the left, the claim and its
   explanation on the right, under a hairline that runs the width of the frame. */
.details-page :is(#v-certification, #v-insights, #v-company) .light-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(40px, 5vw, 80px); margin-bottom: 56px; padding-top: 40px; border-top: 1px solid #e3e8ee; text-align: left; }
.details-page :is(#v-certification, #v-insights, #v-company) .light-intro :is(h2, p) { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
.details-page :is(#v-certification, #v-insights, #v-company) .light-intro-label { color: #576370; font-size: 16px; font-weight: var(--fw-strong); line-height: 1.85; }
.details-page :is(#v-certification, #v-insights, #v-company) .light-intro h2 { color: #1a2028; font-size: clamp(24px, 2.5vw, 34px); font-weight: var(--fw-heading); line-height: 1.5; letter-spacing: -.04em; text-align: left; text-wrap: balance; }
.details-page :is(#v-certification, #v-insights, #v-company) .light-intro-copy > p { max-width: 36em; margin-top: 20px; color: #56616d; font-size: 17px; line-height: 1.85; text-align: left; text-wrap: pretty; }

@media (hover: hover) and (pointer: fine) {
  .details-page :is(#v-certification, #v-insights, #v-company) .lh-actions .button-link:hover { border-color: #e2e9f1; background: #e2e9f1; color: #1a2028; }
  .details-page :is(#v-certification, #v-insights, #v-company) .lh-actions .lh-primary:hover { border-color: #1261a4; background: #1261a4; color: #fff; }
}
@media (max-width: 1080px) {
  .details-page :is(#v-certification, #v-insights, #v-company) .lh-art { top: 14px; right: var(--gutter); width: 200px; opacity: .75; }
}
@media (max-width: 767px) {
  .details-page :is(#v-certification, #v-insights, #v-company) .lh-art { display: none; }
  .details-page :is(#v-certification, #v-insights, #v-company) .lh-ambient-wash { inset: -18% -60% 0 -10%; }
  .details-page :is(#v-certification, #v-insights, #v-company) .lh-content { padding-block: clamp(88px, 13svh, 128px) clamp(52px, 7svh, 64px); }
  .details-page :is(#v-certification, #v-insights, #v-company) .lh-hero h1 { font-size: clamp(1.75rem, 8.4vw, 2.75rem); line-height: 1.3; }
  .details-page :is(#v-certification, #v-insights, #v-company) .lh-hero p { max-width: 32em; margin-top: 24px; font-size: 16px; line-height: 1.8; }
  .details-page :is(#v-certification, #v-insights, #v-company) .lh-copy-break { display: none; }
  .details-page :is(#v-certification, #v-insights, #v-company) .lh-actions { gap: 10px; margin-top: 24px; }
  .details-page :is(#v-certification, #v-insights, #v-company) .lh-actions .button-link { padding-inline: 22px; }
  .details-page :is(#v-certification, #v-insights, #v-company) .light-intro { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 32px; padding-top: 28px; }
  .details-page :is(#v-certification, #v-insights, #v-company) .light-intro h2 { font-size: clamp(22px, 5.8vw, 30px); }
  .details-page :is(#v-certification, #v-insights, #v-company) .light-intro-copy > p { margin-top: 16px; font-size: 16px; line-height: 1.8; }
}
@media (max-width: 370px) {
  .details-page :is(#v-certification, #v-insights, #v-company) .lh-actions .button-link { flex: 1; padding-inline: 14px; white-space: nowrap; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Title, then what the page does, then the actions; the first section waits for the actions. */
  .details-page :is(#v-certification, #v-insights, #v-company).active .lh-line { animation: lh-title-enter 640ms cubic-bezier(.22, 1, .36, 1) 80ms backwards; }
  .details-page :is(#v-certification, #v-insights, #v-company).active .lh-line:last-child { animation-delay: 240ms; }
  .details-page :is(#v-certification, #v-insights, #v-company).active .lh-content > p { animation: lh-content-enter 560ms cubic-bezier(.22, 1, .36, 1) 640ms backwards; }
  .details-page :is(#v-certification, #v-insights, #v-company).active .lh-actions { animation: lh-content-enter 520ms cubic-bezier(.22, 1, .36, 1) 960ms backwards; }
  .details-page :is(#v-certification, #v-insights, #v-company) .lh-ambient-wash { animation: lh-wash-spread 22s ease-in-out infinite alternate; animation-play-state: paused; }
  .details-page :is(#v-certification, #v-insights, #v-company).active .lh-ambient-intro { animation: lh-atmosphere-enter 1600ms cubic-bezier(.22, .6, .36, 1) 80ms both paused; }
  .details-page :is(#v-certification, #v-insights, #v-company).active .lh-art { animation: lh-content-enter 800ms cubic-bezier(.22, 1, .36, 1) 500ms backwards; }
  /* Certificate: settle the document, press its seal, then draw the verification mark. */
  .details-page #v-certification.active .lh-cert-sheet { animation: lh-content-enter 800ms cubic-bezier(.22, 1, .36, 1) 600ms backwards paused; }
  .details-page #v-certification.active .lh-cert-seal { animation: lh-seal-press 650ms cubic-bezier(.22, 1, .36, 1) 1300ms backwards paused; }
  .details-page #v-certification.active .lh-cert-check { stroke-dasharray: 100; animation: lh-ink-draw 600ms ease-out 1750ms backwards paused; }
  /* Insights: pages open around the spine; the useful passage is highlighted. */
  .details-page #v-insights.active .lh-insight-page-left { animation: lh-page-open 1000ms cubic-bezier(.22, 1, .36, 1) 550ms backwards paused; }
  .details-page #v-insights.active .lh-insight-page-right { animation: lh-page-open 1000ms cubic-bezier(.22, 1, .36, 1) 750ms backwards paused; }
  .details-page #v-insights.active .lh-insight-highlight { animation: lh-passage-highlight 800ms cubic-bezier(.22, 1, .36, 1) 1500ms backwards paused; }
  .details-page #v-insights.active .lh-insight-bookmark { animation: lh-bookmark-enter 700ms cubic-bezier(.22, 1, .36, 1) 1150ms backwards paused; }
  /* Company: architecture settles into place before the business-growth line is drawn. */
  .details-page #v-company.active .lh-company-building { animation: lh-content-enter 850ms cubic-bezier(.22, 1, .36, 1) 550ms backwards paused; }
  .details-page #v-company.active .lh-company-annex { animation: lh-content-enter 750ms cubic-bezier(.22, 1, .36, 1) 750ms backwards paused; }
  .details-page #v-company.active .lh-company-growth { stroke-dasharray: 100; animation: lh-ink-draw 1000ms cubic-bezier(.22, .6, .36, 1) 1200ms backwards paused; }
  .details-page #v-company.active .lh-company-arrowhead { animation: lh-company-arrow-enter 300ms ease-out 2000ms backwards paused; }
  .details-page :is(#v-certification, #v-insights, #v-company) .lh-atmosphere[data-running='true'] :is(.lh-ambient-intro, .lh-ambient-wash, .lh-art-motion) { animation-play-state: running; }

  /* The scroll reveal itself is shared by every detail page (reveal.css); here the first section
     only waits for the opening's actions. */
  .details-page :is(#v-certification, #v-insights, #v-company)[data-detail-observed][data-intro-pending='true'] .light-intro [data-detail-reveal].detail-in { animation-play-state: paused; }
  .details-page :is(#v-certification, #v-insights, #v-company) .light-intro { transition: border-color 700ms ease; }
  .details-page :is(#v-certification, #v-insights, #v-company)[data-detail-observed][data-intro-pending='true'] .light-intro { border-top-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .details-page :is(#v-certification, #v-insights, #v-company) :is(.lh-line, .lh-content > *, .lh-art, .lh-art-motion, .lh-ambient-intro, .lh-ambient-wash) { animation: none; transition: none; transform: none; }
}
@keyframes lh-title-enter { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes lh-content-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lh-wash-spread { from { opacity: .9; transform: translate3d(2%, -2%, 0) scale(.88); } to { opacity: 1; transform: translate3d(-4%, 4%, 0) scale(1.14); } }
@keyframes lh-atmosphere-enter { from { opacity: 0; transform: scale(.36); } 45% { opacity: .72; } to { opacity: 1; transform: scale(1); } }
@keyframes lh-ink-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes lh-seal-press { from { opacity: 0; transform: translateY(-10px) scale(1.16); } to { opacity: 1; transform: none; } }
@keyframes lh-page-open { from { opacity: 0; transform: scaleX(.78); } to { opacity: 1; transform: none; } }
@keyframes lh-passage-highlight { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }
@keyframes lh-bookmark-enter { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes lh-company-arrow-enter { from { opacity: 0; } to { opacity: 1; } }
