/* ESGWorks — "The printed annual". Brand colours from the logo; one face, General Sans. */
:root {
  --paper: #f4f6f5;
  --surface: #e4ebe8;
  --surface-2: #d8e2de;
  --ink: #08316c;          /* logo navy: text and dark tiles */
  --deep: #05214a;
  --soft: #3c5276;
  --green: #2bb258;        /* logo green: fields only, never text on paper */
  --green-ink: #05214a;
  --on-ink: #ffffff;

  --font: "General Sans", "Helvetica Neue", Arial, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 0.6rem + 5vw, 5.75rem);

  --gap: 8px;
  --margin: max(clamp(1rem, 2.2vw, 2rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --section: clamp(6rem, 12vw, 12rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 0.95; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--green); color: var(--green-ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
:target { scroll-margin-top: 1rem; }

.wrap { padding-inline: var(--margin); }
.head { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.3; max-width: 34ch; }
.small { font-size: var(--step-small); line-height: 1.45; }
.cover { width: 100%; height: 100%; object-fit: cover; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--ink); color: var(--on-ink); padding: 12px 16px; }
.skip:focus { top: 8px; }

.tile { margin: 0; border-radius: 0; overflow: hidden; position: relative; }
.tile-ink { background: var(--ink); color: var(--on-ink); }
.tile-surface { background: var(--surface); color: var(--ink); }
.tile-green { background: var(--green); color: var(--green-ink); }
figure.tile, .panel, .ct-pic { background: var(--surface); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem; text-decoration: none; font-weight: 500; white-space: nowrap; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.button:active { transform: scale(0.97); }
.button-ink { background: var(--ink); color: var(--on-ink); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.08em; transition: text-decoration-color 180ms ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: color 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { color: var(--soft); }
  .button-ink:hover, .bar-action:hover { background: var(--deep); }
}

/* ---------- hero board ---------- */
.board { display: grid; gap: var(--gap); padding: var(--gap); height: 100svh; min-height: 640px; grid-template-columns: 1fr 1fr; grid-template-rows: 60px 1fr 1fr; }
.bar { grid-column: 1 / -1; display: grid; grid-template-columns: 60px 1fr auto; gap: var(--gap); }
.bar-mark { display: grid; place-items: center; }
.bar-mark img { width: 30px; height: auto; }
.bar-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.5rem); padding-left: calc(50% - 68px - var(--gap) / 2 + 24px); font-weight: 500; }
.bar-nav a { text-decoration-thickness: 0.08em; }
.bar-menu { display: none; }
.bar-action { padding: 0 1.6rem; }
.hero-name { display: flex; flex-direction: column; justify-content: space-between; padding: 24px; }
.hero-logo { width: clamp(180px, 20vw, 300px); }
.display { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.035em; }
.hero-video video, .hero-photo img { position: absolute; inset: 0; }
.hero-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.hero-say { padding: 24px; font-size: var(--step-lead); line-height: 1.25; font-weight: 500; }

/* ---------- intro mosaic ---------- */
.intro { padding: var(--gap); margin-top: calc(var(--section) * 0.5); }
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 38svh 38svh; gap: var(--gap); }
.m-a { grid-column: 1 / 9; grid-row: 1 / 3; display: flex; align-items: flex-end; padding: 20px; }
.slogan { font-size: var(--step-display); line-height: 1; text-transform: uppercase; letter-spacing: -0.035em; }
.m-b { grid-column: 9 / 13; grid-row: 1; display: flex; align-items: flex-end; padding: 20px; }
.mword { font-size: var(--step-display); font-weight: 700; line-height: 0.82; letter-spacing: -0.04em; }
.m-c { grid-column: 9 / 13; grid-row: 2; }
.m-c img { position: absolute; inset: 0; }
.intro-text { display: grid; grid-template-columns: repeat(12, 1fr); padding: 40px 0; margin-top: var(--gap); }
.intro-text p { grid-column: 7 / 13; padding: 0 40px; font-size: var(--step-lead); line-height: 1.35; }

/* ---------- comparison ---------- */
.compare { margin-top: var(--section); }
.compare .head { margin-bottom: 48px; }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cmp th, .cmp td { text-align: left; vertical-align: middle; padding: 18px 20px; height: 68px; }
.cmp thead th { font-size: var(--step-body); font-weight: 700; height: auto; padding-top: 0; padding-bottom: 16px; vertical-align: bottom; }
.cmp thead th:first-child { width: 36%; }
.cmp tbody th { font-size: var(--step-lead); font-weight: 500; line-height: 1.15; }
.cmp td { font-size: var(--step-body); line-height: 1.3; }
.cmp tbody tr:nth-child(odd) { background: var(--surface); }
.cmp .feat { background: var(--ink); color: var(--on-ink); }
.cmp thead .feat { padding-top: 24px; }
.cmp tbody tr:nth-child(odd) .feat { background: #0b3a7c; }

/* ---------- staircase ---------- */
.steps { margin-top: var(--section); }
.stair { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; row-gap: 56px; }
.stair li { grid-column: 1 / -1; }
.stair li:nth-child(2) { grid-column-start: 3; }
.stair li:nth-child(3) { grid-column-start: 5; }
.stair li:nth-child(4) { grid-column-start: 7; }
.stair-line { font-size: var(--step-head); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.stair-line + p { margin-top: 12px; max-width: 40ch; font-size: var(--step-body); color: var(--soft); }

/* ---------- planner (full green field) ---------- */
.planner { margin-top: var(--section); background: var(--green); color: var(--green-ink); padding-block: clamp(4rem, 8vw, 8rem); }
.planner :focus-visible { outline-color: var(--deep); }
.pl-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; }
.pl-intro { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: end; }
.pl-intro .head { grid-column: 1 / 7; }
.pl-intro .lead { grid-column: 8 / 13; }
.pl-form { grid-column: 1 / 6; display: grid; gap: 32px; align-content: start; }
.pl-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.pl-field legend { font-weight: 700; font-size: var(--step-body); margin-bottom: 12px; padding: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; min-height: 44px; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--ink); flex: none; cursor: pointer; }
input[type="range"] { width: 100%; accent-color: var(--ink); height: 44px; cursor: pointer; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; min-height: 56px; padding: 10px 14px; background: rgba(5, 33, 74, 0.12); font-weight: 500; line-height: 1.2; transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out); }
.seg label:active span { transform: scale(0.97); }
.seg input:checked + span { background: var(--ink); color: var(--on-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--deep); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .seg input:not(:checked) + span:hover { background: rgba(5, 33, 74, 0.22); } }
.pl-result { grid-column: 7 / 13; background: var(--paper); color: var(--ink); padding: clamp(24px, 3vw, 40px); }
.pl-big { font-size: var(--step-display); font-weight: 700; line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pl-big + .pl-big { margin-top: 12px; }
.pl-unit { font-size: var(--step-lead); letter-spacing: -0.01em; font-weight: 500; }
.pl-list { margin: 32px 0 28px; }
.pl-list li { font-size: var(--step-body); display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; font-variant-numeric: tabular-nums; }
.pl-list li:nth-child(odd) { background: var(--surface); }
.pl-list li span:last-child { white-space: nowrap; font-weight: 500; }
.pl-note { margin-top: 14px; color: var(--soft); }

/* ---------- picture band ---------- */
.band-sec { margin-top: var(--section); }
.band-h { padding-left: calc(var(--margin) + (100% - 2 * var(--margin)) / 6); margin-bottom: 64px; }
.band { display: flex; height: 68svh; min-height: 420px; }
.panel { position: relative; flex: 2 1 0; overflow: hidden; transition: flex-grow 500ms var(--ease-out); }
.panel:nth-child(1) { flex-grow: 5; }
.panel:nth-child(3) { flex-grow: 3; }
.panel img { position: absolute; inset: 0; }
.panel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 20px; color: #fff; background: rgba(3, 20, 45, 0.55); display: grid; gap: 6px; }
.panel-title { font-size: var(--step-lead); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.panel-text { font-size: var(--step-small); line-height: 1.3; max-width: 30ch; }
@media (hover: hover) and (pointer: fine) and (min-width: 64em) {
  .band:hover .panel { flex-grow: 2; }
  .band .panel:hover { flex-grow: 6; }
}
.band-cap { margin-top: 16px; color: var(--soft); }

/* ---------- about ---------- */
.about { margin-top: var(--section); }
.ab-row { display: grid; grid-template-columns: calc(34vw - var(--margin)) 1fr; }
.ab-facts { display: grid; gap: 20px; align-content: start; max-width: 220px; }
.ab-facts dt { color: var(--soft); }
.ab-facts dd { font-weight: 500; }
.ab-para { font-size: var(--step-lead); line-height: 1.35; max-width: calc(56vw); }
.ab-row-2 { margin-top: 120px; }
.ab-word { font-weight: 500; }
.ab-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 64px; }
.rec li { display: flex; justify-content: space-between; gap: 16px; font-size: var(--step-body); padding: 6px 0; }
.rec li span:last-child { color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rec li:last-child span { font-weight: 700; color: var(--ink); }

/* ---------- faq bands ---------- */
.faq { margin-top: var(--section); }
.faq-head { background: var(--ink); color: var(--on-ink); min-height: 40svh; display: flex; align-items: flex-end; padding: var(--margin); }
.faq-head h2 { font-size: var(--step-display); letter-spacing: -0.04em; }
.qa { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 56px var(--margin); background: var(--paper); }
.qa:nth-child(odd) { background: var(--surface); }
.qa h3 { grid-column: 1 / 6; font-size: var(--step-lead); line-height: 1.1; }
.qa p { grid-column: 7 / 13; font-size: var(--step-body); line-height: 1.5; max-width: 60ch; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding-top: 160px; padding-bottom: 120px; align-items: start; }
.ct-say { grid-column: 1 / 6; font-size: var(--step-lead); line-height: 1.12; font-weight: 500; letter-spacing: -0.015em; }
.ct-pic { grid-column: 8 / 10; width: 160px; height: 160px; position: relative; overflow: hidden; }
.ct-pic img { position: absolute; inset: 0; }
.ct-links { grid-column: 10 / 13; display: grid; gap: 6px; justify-items: start; font-size: var(--step-body); min-width: 0; overflow-wrap: anywhere; }
.ct-q { font-weight: 500; margin-bottom: 14px; }
.ct-who { margin-top: 14px; color: var(--soft); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--on-ink); min-height: 90svh; display: flex; flex-direction: column; padding: clamp(2.5rem, 5vw, 4rem) var(--margin) 32px; }
.foot-name img { width: 100%; }
.foot-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-top: 72px; }
.foot-places { grid-column: 1 / 6; display: grid; gap: 6px; }
.foot-places a { font-size: var(--step-lead); font-weight: 500; color: #7fd89c; text-decoration: none; letter-spacing: -0.015em; }
.foot-places a:hover { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
.foot-cols { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: var(--step-body); }
.foot-cols li + li { margin-top: 8px; }
.foot-legal { margin-top: auto; padding-top: 96px; display: flex; justify-content: space-between; gap: 16px; font-size: var(--step-small); }

/* ---------- tablet ---------- */
@media (max-width: 64em) {
  .bar-nav { padding-left: 24px; }
  .board { height: auto; min-height: 0; grid-template-rows: 60px auto 44svh auto; }
  .hero-name { grid-column: 1 / -1; gap: 48px; }
  .hero-pair { grid-column: 1 / -1; }
  .hero-say { min-height: 200px; }
  .pl-form, .pl-result { grid-column: 1 / -1; }
  .pl-intro .head { grid-column: 1 / -1; }
  .pl-intro .lead { grid-column: 1 / -1; }
  .intro-text p { grid-column: 4 / 13; }
  .stair li:nth-child(4) { grid-column-start: 6; }
  .pl-grid { row-gap: 88px; }
  .ct-say { grid-column: 1 / 8; }
  .ct-pic { grid-column: 9 / 13; }
  .ct-links { grid-column: 1 / -1; margin-top: 40px; }
}

/* ---------- phone ---------- */
@media (max-width: 47.99em) {
  :root { --gap: 6px; --section: 5.5rem; }
  .board { height: auto; min-height: 0; grid-template-columns: 1fr 1fr; grid-template-rows: 56px 30svh auto auto; }
  .bar { grid-template-columns: 56px 1fr; }
  .bar-nav, .bar-action { display: none; }
  .bar-menu { display: block; overflow: visible; z-index: 5; }
  .bar-menu > button { width: 100%; height: 56px; display: flex; align-items: center; justify-content: flex-end; padding: 0 20px; font-weight: 500; cursor: pointer; background: none; border: 0; }
  .menu-panel[hidden] { display: none; }
  .menu-panel { position: absolute; right: 0; top: calc(100% + 6px); width: 100%; min-width: 220px; background: var(--ink); color: var(--on-ink); display: grid; padding: 8px 0; }
  .menu-panel a { padding: 12px 20px; text-decoration: none; font-weight: 500; }
  .hero-name { grid-column: 1 / -1; padding: 16px; }
  .hero-video { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .hero-photo { display: none; }
  .hero-pair { grid-column: 1 / -1; }
  .hero-pair { grid-template-columns: 1fr; }
  .hero-say { min-height: 0; padding: 20px 16px 40px; font-size: var(--step-body); }
  .hero-logo { width: 160px; }
  .display { font-size: 11.5vw; }

  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 46svh auto; }
  .m-a { grid-column: 1 / -1; grid-row: 1; }
  .slogan { font-size: 8.4vw; }
  .m-b { grid-column: 1; grid-row: 2; aspect-ratio: 1; }

  .m-c { grid-column: 2; grid-row: 2; aspect-ratio: 1; }
  .intro-text { display: block; padding: 28px 14px 0; }
  .intro-text p { padding: 0; font-size: var(--step-body); }

  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; height: auto; }
  .cmp thead { display: none; }
  .cmp tbody tr { padding: 16px 0 8px; background: var(--paper); }
  .cmp tbody tr:nth-child(odd) { background: var(--surface); }
  .cmp tbody th { font-weight: 700; padding: 0 16px 8px; }
  .cmp td { padding: 6px 16px; }
  .cmp td::before { content: attr(data-col) ": "; font-weight: 500; }
  .cmp tbody tr:nth-child(odd) .feat, .cmp .feat { background: var(--ink); }

  .stair { row-gap: 40px; }
  .stair li, .stair li:nth-child(n) { grid-column: 1 / -1; }
  .stair li:nth-child(2) { padding-left: 6vw; }
  .stair li:nth-child(3) { padding-left: 12vw; }
  .stair li:nth-child(4) { padding-left: 18vw; }
  .stair-line { font-size: 8.4vw; }

  .seg { grid-template-columns: 1fr; }


  .band-h { padding-left: var(--margin); margin-bottom: 24px; }
  .band { display: grid; grid-template-areas: "a b" "c d"; grid-template-columns: 64fr 36fr; grid-template-rows: 1fr 1fr; height: 84svh; }
  .panel:nth-child(1) { grid-area: a; } .panel:nth-child(2) { grid-area: b; }
  .panel:nth-child(3) { grid-area: c; grid-column: auto; } .panel:nth-child(4) { grid-area: d; }
  .band > .panel:nth-child(3) { grid-area: c; }
  .panel figcaption { padding: 28px 12px 12px; }


  .ab-row { grid-template-columns: 1fr; gap: 28px; }
  .ab-row:first-child { display: flex; flex-direction: column-reverse; }
  .ab-facts { grid-template-columns: 1fr 1fr; max-width: none; }
  .ab-para { max-width: none; }
  .ab-row-2 { margin-top: 56px; }
  .ab-lists { grid-template-columns: 1fr; gap: 40px; }

  .faq-head { min-height: 30svh; padding: 20px; }

  .qa { display: block; padding: 32px 20px; }
  .qa h3 { margin-bottom: 12px; }

  .contact { grid-template-columns: 96px 1fr; column-gap: 16px; row-gap: 28px; padding-top: 96px; padding-bottom: 80px; }
  .ct-say { grid-column: 1 / -1; }
  .ct-pic { grid-column: 1; width: 96px; height: 96px; }
  .ct-links { grid-column: 2; margin-top: 0; }
  .ct-pic { grid-column: 1; }
  .ct-who { grid-column: 1 / -1; }

  .foot { min-height: 0; }
  .foot-row { display: block; margin-top: 48px; }
  .foot-cols { margin-top: 40px; grid-template-columns: 1fr 1fr; }
  .foot-legal { padding-top: 64px; }
}

/* ---------- motion (content stays visible without script or with reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 700ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter[data-reveal] img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }
  .js .hero-name > * { opacity: 0; transform: translateY(24px); animation: rise 900ms var(--ease-out) 150ms forwards; }
  .js .hero-name h1 { animation-delay: 300ms; }
  .js .hero-photo { animation: shutter 1100ms var(--ease-in-out) 250ms both; }
  .js .hero-photo img { animation: settle 1600ms var(--ease-soft) 250ms both; }
  .pl-big span:first-child { display: inline-block; transition: transform 240ms var(--ease-out); }
  .pl-big.bump span:first-child { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .panel { transition: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes shutter { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
