/* ESG Reporting Intelligence case study. Shared pieces: case-study.css, case-contact.css.
   The page runs from sky (hero) to meadow (results), after the product's landscape art.
   Signature: the ESGI score dial in .es-score climbs as each challenge is read (case-esg.js). */

:root {
  --accent: #12c38a;
  --es-navy: #1e3f8f;
  --es-sky: #e3f4fc;
  --es-meadow: #edf6e8;
  --cs-ink: #10213f;
  --cs-muted: #4b5a6b;
  --cs-faint: #7d8a97;
  --cs-line: rgb(16 33 63 / 12%);
  --cs-bg: #f6fbfd;
  --cs-dark: #0e3326;
  --cs-dot-radius: 50%;
  --cs-dot-dark: #6fe0b5;
  --cf-dots: rgb(16 33 63 / 9%);
  --cf-glow: rgb(18 195 138 / 16%);
  --cf-btn: #10213f;
  --cf-btn-icon: #6fe0b5;
  --cf-btn-icon-fg: #10213f;
  --cf-sent: #10213f;
  --cf-sent-fg: #6fe0b5;
}

a:hover { color: var(--accent); }
.es-h3, .es-step .cs-h3, .es-note .cs-h3, .es-type .cs-h3 { font-size: clamp(21px, 1.7vw, 26px); line-height: 1.15; letter-spacing: -.02em; }

/* ---------- hero: sky over a horizon line ---------- */
.es-hero { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 104px) var(--gutter) 0; background: #25a4f5; text-align: center; }
.es-hero__sky span { position: absolute; border-radius: 50%; background: rgb(255 255 255 / 70%); filter: blur(40px); }
.es-hero__sky span:first-child { top: 8%; left: -6%; width: 46vw; height: 14vw; }
.es-hero__sky span:last-child { top: 22%; right: -8%; width: 40vw; height: 12vw; }
.es-hero__copy { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.es-mark { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: rgb(255 255 255 / 70%); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--es-navy); }
.es-mark__ring { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--es-navy); border-right-color: var(--accent); }
.es-hero__title { max-width: 1120px; margin-inline: auto; font-weight: 600; font-size: clamp(30px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; color: var(--cs-ink); }
.es-hero__lead { max-width: 720px; margin: 10px auto 0; }
.es-hero__copy { z-index: 2; }
.es-hero__stage { position: relative; margin-top: 0; }
.es-hero__bg { display: block; width: 100vw; max-width: none; height: auto; aspect-ratio: 1177 / 1100; object-fit: cover; object-position: center top; margin: calc(56px - 27.6vw) 0 0 calc(50% - 50vw); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%); mask-image: linear-gradient(180deg, transparent 0, #000 8%); }
.es-hero__sky { display: none; }
.es-hero__title, .es-hero__lead { color: var(--white); text-shadow: 0 2px 18px rgb(10 40 90 / 35%); }
.es-hero__shot { margin: 0; border-radius: 28px 28px 0 0; overflow: hidden; box-shadow: 0 -10px 60px rgb(30 63 143 / 12%); }
.es-hero__shot img { display: block; width: 100%; height: auto; }
.es-horizon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100vw; margin: 0 0 0 calc(50% - 50vw); padding: 0 max(var(--gutter), calc(50vw - var(--maxw) / 2)); box-sizing: border-box; border-top: 3px solid var(--accent); background: var(--white); text-align: left; }
.es-horizon > div { padding: 22px 24px 26px; border-left: 1px solid var(--cs-line); }
.es-horizon > div:first-child { border-left: 0; }
.es-horizon dt { margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cs-faint); }
.es-horizon dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--cs-ink); }

/* ---------- brief + project gauges ---------- */
.es-brief { background: linear-gradient(180deg, var(--cs-bg), var(--white) 30%); }
.es-brief .cs-2 { align-items: center; }
.es-brief__art { margin: 0; }
.es-brief__art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.es-pills li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--cs-line); background: var(--white); font-size: 14px; color: var(--cs-ink); }
.es-gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(56px, 6vw, 88px); padding: 0; list-style: none; }
.es-gauges li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; border-radius: 20px; background: var(--white); border: 1px solid var(--cs-line); overflow: hidden; }
.es-gauges li::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: linear-gradient(90deg, var(--es-navy), var(--accent)); }
.es-gauges__n { font-weight: 600; font-size: clamp(36px, 3.4vw, 54px); line-height: 1; letter-spacing: -.04em; color: var(--es-navy); }
.es-gauges__l { font-size: 14px; color: var(--cs-muted); }

/* ---------- signature: the score dial ---------- */
.es-score { background: linear-gradient(180deg, var(--cs-bg), var(--white)); }
.es-score__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); margin-top: 64px; }
.es-dial { position: sticky; top: 14vh; align-self: start; display: grid; justify-items: center; gap: 22px; padding: 36px 28px; border-radius: 28px; background: linear-gradient(160deg, #f1f8ff, #effaf4); border: 1px solid var(--cs-line); }
.es-dial__face { position: relative; width: min(100%, 300px); }
.es-dial__svg { display: block; width: 100%; height: auto; transform: rotate(-90deg); }
.es-dial__track, .es-dial__fill { fill: none; stroke-width: 16; }
.es-dial__track { stroke: rgb(30 63 143 / 10%); }
.es-dial__fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - var(--es-v, 0)); transition: stroke-dashoffset .9s cubic-bezier(.22, 1, .36, 1); }
.es-dial__read { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.es-dial__n { font-weight: 600; font-size: clamp(48px, 4.6vw, 68px); line-height: 1; letter-spacing: -.04em; color: var(--es-navy); font-variant-numeric: tabular-nums; }
.es-dial__of { font-size: 15px; color: var(--cs-faint); }
.es-dial__lbl { margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.es-dial__esg { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.es-dial__esg li { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 700; color: var(--cs-faint); background: var(--white); border: 1px solid var(--cs-line); transition: background .4s, color .4s, border-color .4s; }
.es-dial__esg li.is-on { background: var(--es-navy); border-color: var(--es-navy); color: var(--white); }
.es-steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: es; }
.es-step { position: relative; display: grid; gap: 12px; padding: 32px 32px 32px 88px; border-radius: 24px; background: var(--white); border: 1px solid var(--cs-line); opacity: .45; transition: opacity .5s, box-shadow .5s, border-color .5s; counter-increment: es; }
.es-step::before { content: counter(es, decimal-leading-zero); position: absolute; top: 32px; left: 32px; font-size: 14px; font-weight: 700; color: var(--accent); }
.es-step.is-on { opacity: 1; border-color: rgb(18 195 138 / 45%); box-shadow: 0 18px 48px rgb(30 63 143 / 8%); }
.es-step p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--cs-muted); }
.es-step b { font-weight: 600; color: var(--cs-ink); }

/* ---------- platform tour (tabs) ---------- */
.es-tour { background: #044a35 url(../../../uploads/esg/tour-bg.webp) center bottom / cover no-repeat; color: var(--white); }
.es-tour .cs-kicker { color: rgb(255 255 255 / 60%); }
.es-tour .cs-kicker::before { background: var(--cs-dot-dark); }
.es-tabs { display: inline-flex; justify-self: end; gap: 6px; padding: 6px; border-radius: 999px; background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 12%); }
.es-tabs button { padding: 12px 20px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: rgb(255 255 255 / 70%); cursor: pointer; transition: background .3s, color .3s; }
.es-tabs button[aria-selected="true"] { background: var(--white); color: var(--es-navy); }
.es-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.es-stage { position: relative; margin-top: 48px; }
.es-panel { position: relative; }
.es-panel figure { margin: 0; padding: 20px; border-radius: 28px; overflow: hidden; background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 18%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%); }
.es-panel figure img { border-radius: 9px; }
.es-panel img { display: block; width: 100%; height: auto; }
.es-panel.is-on figure { animation: es-in .7s cubic-bezier(.22, 1, .36, 1) both; }
.es-note { position: absolute; left: 32px; bottom: 32px; max-width: 380px; padding: 24px 26px; border-radius: 20px; background: rgb(255 255 255 / 86%); backdrop-filter: blur(12px); box-shadow: 0 18px 50px rgb(16 33 63 / 14%); color: var(--es-navy); }
.es-note p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--cs-muted); }
@keyframes es-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- screen wall ---------- */
.es-wall { position: relative; display: flex; align-items: flex-end; min-height: clamp(560px, 62vw, 900px); padding: 0 var(--gutter); overflow: hidden; background: #e7ebf3; }
.es-wall > img { object-position: center 30%; }
.es-wall::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(180deg, rgb(14 51 38 / 0%), rgb(14 51 38 / 70%) 45%, rgb(14 51 38 / 92%)); }
.es-wall__copy { position: relative; z-index: 1; display: grid; gap: 16px; width: 100%; padding-bottom: clamp(48px, 6vw, 88px); color: var(--white); }
.es-wall__copy .cs-h2 { max-width: 760px; }
.es-wall__copy p:last-child { max-width: 600px; margin: 0; font-size: 17px; line-height: 1.65; color: rgb(255 255 255 / 78%); }

/* ---------- process timeline + brand ---------- */
.es-road { background: linear-gradient(180deg, #e8f5fc, var(--es-meadow)); }
.es-road__scroll { max-width: var(--maxw); margin: 56px auto 0; border-radius: 28px; overflow-x: auto; scrollbar-width: thin; }
.es-road__scroll img { display: block; width: 100%; min-width: 900px; height: auto; }
.es-road__hint { display: none; margin-top: 12px; font-size: 13px; color: var(--cs-faint); }
.es-type { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; align-items: center; margin-top: clamp(56px, 6vw, 88px); }
.es-type p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--cs-muted); }
.es-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.es-swatches li { display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; padding: 16px; border-radius: 18px; background: var(--c); font-size: 13px; color: var(--t, var(--white)); }
.es-swatches li span { font-size: 16px; font-weight: 600; }

/* ---------- results: a report card on dark meadow ---------- */
.es-out { background: radial-gradient(120% 90% at 85% 0%, #17553e 0%, var(--cs-dark) 60%); }
.es-report { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 64px 0 0; padding: 0; list-style: none; }
.es-report li { display: grid; align-content: start; gap: 12px; padding: 28px 22px; border-radius: 20px; background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 12%); }
.es-report li::before { content: ""; width: 34px; height: 34px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e3326' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat; }
.es-report h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.es-report p { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgb(255 255 255 / 68%); }

@media (max-width: 1100px) {
  .es-report { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .es-horizon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .es-horizon > div:nth-child(3) { border-left: 0; }
  .es-horizon > div:nth-child(n + 3) { border-top: 1px solid var(--cs-line); }
  .es-tabs { justify-self: start; }
}
@media (max-width: 900px) {
  .es-score__grid { grid-template-columns: 1fr; }
  .es-dial { position: sticky; top: 72px; z-index: 2; display: block; padding: 12px 18px; border-radius: 20px; background: rgb(241 248 255 / 94%); backdrop-filter: blur(10px); }
  .es-dial__face { display: flex; align-items: center; gap: 16px; width: 100%; }
  .es-dial__svg { flex: 0 0 64px; width: 64px; }
  .es-dial__read { position: static; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 2px 6px; text-align: left; }
  .es-dial__n { font-size: 30px; }
  .es-dial__lbl { width: 100%; margin-top: 2px; font-size: 11.5px; }
  .es-dial__esg { display: none; }
  .es-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .es-type { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .es-hero__shot { border-radius: 20px 20px 0 0; }
  .es-horizon { grid-template-columns: 1fr; }
  .es-horizon > div { border-left: 0; border-top: 1px solid var(--cs-line); padding: 16px 20px; }
  .es-horizon > div:first-child { border-top: 0; }
  .es-step { padding: 24px 22px 24px 22px; }
  .es-step::before { position: static; }
  .es-tabs { display: flex; width: 100%; }
  .es-tabs button { flex: 1; padding: 11px 4px; font-size: 13px; white-space: nowrap; }
  .es-note { position: static; max-width: none; margin-top: 12px; box-shadow: none; background: var(--white); }
  .es-road__hint { display: block; }
  .es-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .es-swatches li { min-height: 110px; }
  .es-report { grid-template-columns: 1fr; }
  .es-wall { min-height: 620px; }
}
@media (prefers-reduced-motion: reduce) {
  .es-dial__fill, .es-step, .es-dial__esg li { transition: none; }
  .es-panel.is-on figure { animation: none; }
}

/* the client logo (from the site logo set) on a white pill, readable on light and dark heroes */
.es-brand { display: inline-flex; align-items: center; justify-self: start; margin: 0; padding: 10px 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 6%), 0 10px 24px -14px rgb(0 0 0 / 35%); }
.es-brand img { display: block; width: auto; height: 30px; }
