:root {
  /* Greens from the reference design */
  --green-950: #08201d;
  --green-900: #0b2a26;
  --green-850: #0d302c;
  --green-800: #113a35;
  --green-700: #17504a;
  --accent: #2fc08c;        /* bright green for highlights */
  --accent-deep: #1a9a74;
  --text: #ffffff;
  --text-soft: rgba(255,255,255,.72);
  --text-muted: rgba(255,255,255,.48);
  --line: rgba(255,255,255,.12);
  --card: rgba(255,255,255,.045);
  --card-hover: rgba(255,255,255,.08);
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--green-900); }
body { font-family: var(--font); color: var(--text); background: var(--green-900); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* Type */
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.eyebrow--light { color: var(--accent); }
.display { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -0.035em; }
.display .muted, .h2 .muted { color: var(--text-muted); display: block; }
.display--light { color: #fff; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
.h2 .muted { display: inline; }
.muted-light { color: var(--text-muted); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-soft); max-width: 540px; margin-top: 28px; }
h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; }

/* Buttons */
.btn { display: inline-flex; align-items: center; white-space: nowrap; gap: 10px; background: linear-gradient(135deg, var(--accent-deep), var(--accent)); color: #fff; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; box-shadow: 0 6px 20px rgba(47,192,140,.25); transition: transform .2s, box-shadow .2s, filter .2s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 10px 28px rgba(47,192,140,.35); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--light { background: #fff; color: var(--green-900); box-shadow: none; }
.btn--light:hover { background: var(--accent); color: #fff; }
.btn--outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.btn--outline:hover { background: rgba(255,255,255,.1); filter: none; box-shadow: inset 0 0 0 1.5px #fff; }
.link-arrow { font-weight: 500; font-size: 15px; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; color: #fff; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--accent); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11,42,38,.78); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.logo sup { font-size: 11px; font-weight: 500; }
.nav__links { display: flex; gap: 32px; font-size: 15px; font-weight: 600; color: #fff; margin-right: auto; }
.nav__links a:hover, .nav__aside > a:not(.btn):hover { color: #fff; opacity: .75; }
.nav__aside { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; color: #fff; }

/* Hero */
.hero {
  padding-top: 48px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, rgba(47,192,140,.16), transparent 70%),
    linear-gradient(160deg, #134540 0%, var(--green-850) 55%, var(--green-900) 100%);
}
.hero .container { position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; }
.hero__copy { padding-bottom: 96px; align-self: center; }
.hero__cta { display: flex; align-items: center; gap: 28px; margin-top: 36px; }

.hero__portrait { position: relative; align-self: end; }
.hero__portrait img {
  position: relative; z-index: 1; width: 100%; height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}
.hero__glow {
  position: absolute; z-index: 0; left: 50%; top: 42%; width: 85%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(47,192,140,.45) 0%, rgba(47,192,140,.12) 45%, transparent 70%);
  filter: blur(10px);
}

/* Content blocks: one component, alternating light / dark green flare */
.block { padding: 112px 0; position: relative; overflow: clip; }  /* clip (not hidden) so sticky headings work */
.block::before { content: ""; position: absolute; width: 760px; height: 760px; top: -280px; border-radius: 50%; pointer-events: none; }
.block .container { position: relative; }

.block--dark { background: var(--green-950); }
.block--dark::before { right: -220px; background: radial-gradient(circle, rgba(47,192,140,.26), transparent 65%); }

.block--light { background: linear-gradient(160deg, #1b6156 0%, #145248 60%, #114640 100%); }
.block--light::before { left: -240px; background: radial-gradient(circle, rgba(120,240,190,.30), transparent 65%); }
.block--light .eyebrow, .block--light .list__kicker { color: #8ff5cc; }
.block--light .h2 .muted { color: rgba(255,255,255,.55); }
.block--light .list p { color: rgba(255,255,255,.8); }
.block--light .list > li { border-color: rgba(255,255,255,.18); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.block__head { position: sticky; top: 116px; }
.block__head .eyebrow { line-height: 1.5; font-size: 12px; margin-bottom: 8px; }
.block__note { margin-top: 28px; color: var(--text-soft); font-size: 15px; max-width: 440px; }

.list > li { padding: 26px 0; border-top: 1px solid var(--line); }
.list > li:first-child { padding-top: 0; border-top: 0; }  /* first item lines up with the heading */
.list > li:last-child { border-bottom: 1px solid var(--line); }
.list__kicker { display: block; line-height: 1.5; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.list h3 { font-size: 20px; }
.list p { margin-top: 8px; color: var(--text-soft); }
.list__meta { display: block; margin-top: 10px; font-size: 14px; color: var(--text-muted); }

/* Contact */
.contact { padding: 128px 0; position: relative; overflow: clip;
  background: radial-gradient(ellipse 60% 80% at 20% 100%, rgba(47,192,140,.22), transparent 70%), linear-gradient(180deg, var(--green-800), var(--green-950)); }
.contact__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; }

.contact--light { background: radial-gradient(ellipse 60% 80% at 20% 100%, rgba(120,240,190,.28), transparent 70%), linear-gradient(160deg, #1b6156 0%, #145248 60%, #114640 100%); }
.contact--light .eyebrow { color: #8ff5cc; }

/* Footer */
.footer { background: var(--green-950); color: var(--text-muted); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; row-gap: 12px; padding: 28px 0; border-top: 1px solid var(--line); }
.footer__disclaimer { flex-basis: 100%; font-size: 13px; color: var(--text-muted); }

/* Alternate layout: heading on top, list in columns (every second block) */
.block--stacked .split { grid-template-columns: 1fr; gap: 56px; }
.block--stacked .block__head { position: static; max-width: 820px; }
.block--stacked .list { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 48px; }
.block--stacked .list > li,
.block--stacked .list > li:first-child,
.block--stacked .list > li:last-child { padding: 24px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.22); }

/* Article pages */
.article-hero { padding: 72px 0 96px; position: relative; overflow: clip;
  background: radial-gradient(ellipse 60% 70% at 80% 20%, rgba(47,192,140,.18), transparent 70%), linear-gradient(160deg, #134540 0%, var(--green-850) 55%, var(--green-900) 100%); }
.article-hero__inner > * { max-width: 720px; position: relative; z-index: 1; }
.article-back { display: inline-block; margin-bottom: 40px; font-size: 14px; font-weight: 600; color: #fff; opacity: .8; }
.article-back:hover { opacity: 1; }
.article-hero__title { font-size: clamp(40px, 6vw, 76px); }
.article-hero__standfirst { max-width: 680px; }
.article-hero__byline { margin-top: 32px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.article-body { background: #fff; color: #10231f; padding: 88px 0 112px; }
.article-body__inner > * { max-width: 680px; }
.article-body h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.025em; color: #0b2a26; margin: 56px 0 18px; }
.article-body h2:first-child { margin-top: 0; }
.article-body__inner p, .article-body__inner li { font-size: 19px; line-height: 1.75; color: #33433f; }
.article-body p + p { margin-top: 20px; }
.article-body strong { color: #0b2a26; }
.article-body__inner ol, .article-body__inner ul { margin: 20px 0; padding-left: 0; }
.article-body__inner ol { counter-reset: step; }
.article-body__inner ol li { counter-increment: step; position: relative; padding-left: 40px; }
.article-body__inner ol li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: .15em; font-size: 14px; font-weight: 600; color: var(--accent-deep); }
.article-body__inner ul li { position: relative; padding-left: 26px; }
.article-body__inner ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-deep); }
.article-body__inner li + li { margin-top: 10px; }
.article-pullout { margin-top: 40px !important; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 28px) !important; line-height: 1.35 !important; letter-spacing: -0.02em; color: #0b2a26 !important; }

/* Article layout: body plus side index */
.article-layout { display: grid; grid-template-columns: minmax(0, 680px) 280px; justify-content: space-between; column-gap: 64px; align-items: start; }
.article-aside { position: sticky; top: 116px; padding-left: 32px; border-left: 1px solid #e3eae8; }
.article-aside__title { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 20px; }
.article-aside li + li { margin-top: 18px; }
.article-aside__link { display: block; color: #0b2a26; }
.article-aside__name { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; transition: color .2s; }
.article-aside__link:hover .article-aside__name { color: var(--accent-deep); }
.article-aside__all { display: inline-block; margin-top: 32px; font-size: 14px; font-weight: 600; color: #0b2a26; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.article-aside__all:hover { color: var(--accent-deep); }

/* Article icons */
.article-hero__inner { position: relative; }
.article-icon { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: clamp(320px, 36vw, 480px); right: -24px; max-width: none !important; color: #8ff5cc; opacity: .5; pointer-events: none; }
.article-icon svg { display: block; width: 100%; height: auto; stroke-width: .45; }

/* Links in the Points of view list */
.post-link { display: block; color: inherit; }
.post-link h3 { transition: color .2s; }
.post-link:hover h3 { color: #8ff5cc; }
.post-link .case-link__cta { display: inline-block; margin-top: 12px; }

@media (max-width: 1100px) {
  .article-layout { grid-template-columns: 1fr; row-gap: 64px; }
  .article-aside { position: static; padding-left: 0; padding-top: 32px; border-left: 0; border-top: 1px solid #e3eae8; }
  .article-icon { position: static; transform: none; width: 120px; margin-bottom: 24px; }
  .article-icon svg { stroke-width: 1; }
}

/* Articles index page and homepage CTA */
.article-index { background: #fff; color: #10231f; padding: 88px 0 112px; }
.article-index__list { max-width: 820px; }
.article-index .list > li { border-color: #e3eae8; }
.article-index .list__kicker { color: var(--accent-deep); }
.article-index .list h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.025em; color: #0b2a26; }
.article-index .list p { color: #33433f; font-size: 17px; max-width: 640px; }
.article-index .case-link__cta { color: #0b2a26; }
.article-index .post-link:hover h3 { color: var(--accent-deep); }
/* Featured (newest) article at the top of the articles page */
.article-index .list > li.is-featured { padding-bottom: 48px; }
.article-index .is-featured h3 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.035em; margin-top: 4px; }
.article-index .is-featured p { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.55; color: #2c3d39; max-width: 760px; margin-top: 18px; }
.article-index .is-featured .post-link__excerpt { font-size: 17px; line-height: 1.7; color: #4a5a56; max-width: 720px; margin-top: 16px; }
.article-index .is-featured .list__meta { margin-top: 24px; font-size: 16px; }
.block__head .view-all { margin-top: 32px; }
.split > .view-all { justify-self: start; }
.article-index__note { margin-top: 40px; color: #33433f; font-size: 17px; }
.article-index__note a { color: #0b2a26; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-index__note a:hover { color: var(--accent-deep); }

/* Responsive */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero__grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { padding-bottom: 0; }
  .hero__portrait { max-width: 460px; margin-inline: auto; }
  .block { padding: 80px 0; }
  .block__head { position: static; }
  .block--stacked .list { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 600px) {
  .nav__aside > a:first-child { display: none; }
  .hero__cta { gap: 12px; flex-wrap: wrap; }
  .footer__inner { flex-direction: column; gap: 6px; }
  .block--stacked .list { grid-template-columns: 1fr; gap: 0; }
  .block--stacked .list > li,
  .block--stacked .list > li:first-child { padding: 24px 0; }
  .block--stacked .list > li:last-child { padding: 24px 0 0; }

  /* Dark panels: list becomes a horizontal swipe row, next item peeks in */
  .block--dark .list { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; }
  .block--dark .list::-webkit-scrollbar { display: none; }
  .block--dark .list > li,
  .block--dark .list > li:first-child,
  .block--dark .list > li:last-child { flex: 0 0 80%; scroll-snap-align: start; padding: 24px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.22); }
}

/* Case study links */
.list--cases > li { padding: 0; }
.list--cases > li:not(:first-child) { border-top: 1px solid rgba(255,255,255,.18); }
.case-link { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 26px 0; cursor: pointer; }
.list--cases > li:first-child .case-link { padding-top: 0; }
.case-link h3 { transition: color .2s; }
.case-link:hover h3, .case-link:focus-visible h3 { color: #8ff5cc; }
.case-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }
.case-link__cta { color: #fff; font-weight: 600; }
.case-link__cta::after { content: " →"; }

/* Case study modal: white, editorial */
.modal { border: 0; padding: 0; margin: auto; width: min(880px, 100% - 32px); max-height: min(90vh, 900px); border-radius: 20px; overflow: hidden;
  background: #fff; color: #10231f; box-shadow: 0 40px 120px rgba(0,0,0,.45); }
.modal::backdrop { background: rgba(4,18,16,.78); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .25s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__inner { display: flex; flex-direction: column; max-height: inherit; }
.modal__top { display: flex; justify-content: space-between; align-items: center; padding: 24px 56px 0; }
.modal__count { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: #8a9a96; }
.modal__close { all: unset; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; color: #10231f; background: #f1f4f3; transition: background .2s; }
.modal__close:hover { background: #e2e9e7; }
.modal__body { padding: 28px 56px 40px; overflow-y: auto; }
.modal__kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); }
.modal__title { margin-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.035em; color: #0b2a26; max-width: 680px; }
.modal__intro { margin-top: 20px; font-size: clamp(19px, 1.9vw, 23px); line-height: 1.5; color: #2c3d39; max-width: 680px; }
.modal__role { margin-top: 20px; font-size: 15px; color: #5b6b67; }
.modal__role strong { color: #0b2a26; margin-right: 8px; }
.modal__text { margin-top: 32px; max-width: 680px; }
.modal__text p { font-size: 18px; line-height: 1.75; color: #33433f; }
.modal__text p + p { margin-top: 18px; }
.modal__nav { position: relative; display: flex; justify-content: space-between; gap: 24px; padding: 20px 56px 32px; background: #fff; }
.modal__nav::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 48px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); pointer-events: none; }  /* soft fade where text scrolls */
.modal__step { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: #0b2a26; transition: color .2s; }
.modal__step:hover, .modal__step:focus-visible { color: var(--accent-deep); }
.modal__step--next { text-align: right; align-items: flex-end; }
.modal__dir { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a9a96; }
.modal__step:not(.modal__step--next) .modal__dir::before { content: "← "; }
.modal__step--next .modal__dir::after { content: " →"; }
@media (max-width: 600px) {
  .modal__top, .modal__body, .modal__nav { padding-left: 24px; padding-right: 24px; }
}

/* Mobile menu */
.nav__toggle { all: unset; display: none; cursor: pointer; width: 40px; height: 40px; place-items: center; align-content: center; gap: 6px; border-radius: 50%; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav__home-bar { display: none; font-size: 15px; font-weight: 600; color: #fff; margin-right: auto; }
.nav__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav__mobile-only { display: none; }
@media (max-width: 960px) {
  .nav__toggle { display: grid; margin-left: -9px; }
  .nav__inner { gap: 16px; }
  .nav__home-bar { display: block; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; justify-content: flex-start; gap: 0; position: fixed; top: 76px; left: 0; right: 0; bottom: 0; margin: 0;
    padding: 24px 24px 48px; overflow-y: auto; background: var(--green-950); }
  .nav.is-open .nav__links a { padding: 16px 0; font-family: var(--font-display); font-size: 32px; letter-spacing: -0.025em; border-top: 1px solid rgba(255,255,255,.1); }
  .nav.is-open .nav__links a.nav__home { display: none; }
  .nav.is-open .nav__links a.nav__home + a { border-top: 0; }
  .nav.is-open .nav__mobile-only { display: block; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  body.menu-open { overflow: hidden; }
  .nav.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--green-950); }  /* a backdrop-filter would trap the fixed menu inside the bar */
}

/* Responsive images keep their aspect ratio when width/height attributes are set */
img { height: auto; }
picture { display: block; }

/* Toast (e.g. "Email address copied") */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 16px); max-width: calc(100% - 32px);
  padding: 14px 20px; border-radius: 12px; background: #fff; color: #0b2a26; font-size: 15px; font-weight: 600;
  box-shadow: 0 16px 40px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
