/* X-MAT CCC — site styles */

:root {
  --green: #209d50;
  --green-deep: #15763a;
  --lime: #9bd65a;
  --ink: #0d110f;
  --coal: #151a17;
  --slate: #212823;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(13, 17, 15, 0.12);
  --paper: #f5f4ef;
  --white: #ffffff;
  --text: #26302a;
  --muted: #5d6a62;
  --muted-on-dark: #a9b5ad;
  --radius: 14px;
  --wrap: 1180px;
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 18px 50px -20px rgba(13, 17, 15, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-deep); text-underline-offset: 3px; }
a:hover { color: var(--green); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
sup { font-size: 0.55em; line-height: 0; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-deep);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--green); }
.on-dark .eyebrow { color: var(--lime); }

.lede { font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 46rem; }
.on-dark .lede { color: var(--muted-on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem;
  padding: 0.85rem 1.35rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  font-family: var(--font-head); font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.text-link:hover .arrow { transform: translateX(3px); }
.text-link .arrow { transition: transform 0.2s; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1.5rem; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.3rem; }
.nav a {
  font-family: var(--font-head); font-weight: 500; font-size: 0.97rem;
  color: var(--ink); text-decoration: none; padding: 0.55rem 0.8rem; border-radius: 8px;
}
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--green-deep); font-weight: 700; }
.nav .btn { margin-left: 0.6rem; padding: 0.6rem 1.1rem; color: var(--white); }
.nav .btn:hover { background: var(--green-deep); color: var(--white); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 0.6rem; margin-right: -0.6rem; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line-dark);
    padding: 0.6rem 1.25rem 1.25rem; display: none; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 0.4rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; font-size: 1.05rem; }
  .nav .btn { margin: 1rem 0 0; justify-content: center; border-bottom: 0; border-radius: 999px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-paper { background: var(--paper); }
.on-dark { background: var(--coal); color: #dfe6e1; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark a:not(.btn) { color: var(--lime); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--slate); }
.media img { width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.7rem; }
.on-dark figcaption { color: var(--muted-on-dark); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #dfe6e1; background: var(--ink);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/home-quote.webp") center / cover no-repeat; opacity: 0.5;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(32, 157, 80, 0.32), transparent 60%),
    linear-gradient(100deg, rgba(13, 17, 15, 0.97) 0%, rgba(13, 17, 15, 0.86) 45%, rgba(13, 17, 15, 0.55) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 0.45em; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lede { color: #c6d0c9; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-figure { position: relative; }
.hero-figure .media { border: 1px solid var(--line); }
.hero-figure figcaption { color: var(--muted-on-dark); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { background: var(--green); color: var(--white); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2rem 1.5rem; border-left: 1px solid rgba(255, 255, 255, 0.25); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.02em; }
.stat span { display: block; font-size: 0.93rem; line-height: 1.45; margin-top: 0.4rem; opacity: 0.95; }
@media (max-width: 860px) {
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.5rem 1rem; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.25); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(odd) { padding-left: 0; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--slate); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
a.card:hover .card-img img { transform: scale(1.04); }
.card-img.contain { background: var(--white); border-bottom: 1px solid var(--line-dark); }
.card-img.contain img { object-fit: contain; padding: 1.5rem; }
.card-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 0.5rem; }
.card-body p { color: var(--muted); font-size: 0.98rem; }
.card-body .text-link { margin-top: auto; color: var(--green-deep); }
.card-meta { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 0.6rem; }

.on-dark .card { background: var(--slate); border-color: var(--line); }
.on-dark .card-body p { color: var(--muted-on-dark); }

.pillar { padding: 1.6rem 0 0; border-top: 3px solid var(--green); }
.pillar h3 { margin-bottom: 0.5rem; }
.pillar p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.on-dark .pillar p { color: var(--muted-on-dark); }

/* ---------- Quote band ---------- */
.quote-band { position: relative; isolation: isolate; color: var(--white); padding: clamp(4.5rem, 10vw, 8rem) 0; text-align: center; }
.quote-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/downtown.webp") center 35% / cover no-repeat; }
.quote-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(13, 17, 15, 0.72), rgba(13, 17, 15, 0.86)); }
.quote-band blockquote { margin: 0 auto; max-width: 56rem; }
.quote-band blockquote p {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1.4rem;
}
.quote-band cite { font-style: normal; font-weight: 600; color: var(--lime); letter-spacing: 0.04em; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; background: var(--ink); color: #dfe6e1; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/coal-texture.webp") center / cover no-repeat; opacity: 0.38; }
.page-hero.hero-facade::before { background-image: url("../img/facade-band.webp"); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50rem 26rem at 90% 0%, rgba(32, 157, 80, 0.3), transparent 60%), linear-gradient(90deg, rgba(13, 17, 15, 0.95), rgba(13, 17, 15, 0.6)); }
.page-hero h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 0.35em; }
.page-hero .lede { color: #c6d0c9; margin: 0; }
.page-hero .eyebrow, .hero .eyebrow { color: var(--lime); }

.subnav { background: var(--paper); border-bottom: 1px solid var(--line-dark); }
.subnav .wrap { display: flex; gap: 0.4rem; flex-wrap: wrap; padding-block: 0.7rem; }
.subnav a { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; color: var(--ink); text-decoration: none; padding: 0.45rem 0.9rem; border-radius: 999px; }
.subnav a:hover { background: var(--white); color: var(--green-deep); }

/* ---------- Lists / specs ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.checks li { position: relative; padding-left: 2.4rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.15rem; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.checks b { color: var(--ink); }
.on-dark .checks b { color: var(--white); }

.spec { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.spec > div { background: var(--white); padding: 1.4rem 1.5rem; display: grid; grid-template-columns: 11rem 1fr; gap: 0.3rem 1.5rem; align-items: baseline; }
.spec dt { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.spec dd { margin: 0; color: var(--muted); }
.spec dd b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--green-deep); letter-spacing: -0.01em; line-height: 1.2; }
@media (max-width: 560px) { .spec > div { grid-template-columns: 1fr; } }

.band-img { height: clamp(180px, 28vw, 340px); background: var(--slate) center / cover no-repeat; }

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video iframe, .video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { cursor: pointer; padding: 0; background: #000 center / cover no-repeat; display: grid; place-items: center; }
.video button::before { content: ""; position: absolute; inset: 0; background: rgba(13, 17, 15, 0.35); transition: background 0.2s; }
.video button:hover::before { background: rgba(13, 17, 15, 0.15); }
.video .play { position: relative; width: 78px; height: 78px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); transition: transform 0.2s; }
.video button:hover .play { transform: scale(1.07); }
.video .play svg { margin-left: 5px; }

/* ---------- Values / benefits ---------- */
.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.icon-grid.six { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .icon-grid, .icon-grid.six { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .icon-grid, .icon-grid.six { grid-template-columns: 1fr; } }
.icon-item { background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 1.8rem 1.4rem; text-align: center; }
.icon-item svg { width: 46px; height: 46px; color: var(--green); margin: 0 auto 1rem; display: block; }
.icon-item b { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); line-height: 1.2; }
.icon-item span { display: block; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }
.on-dark .icon-item { background: var(--slate); border-color: var(--line); }
.on-dark .icon-item b { color: var(--white); }
.on-dark .icon-item svg { color: var(--lime); }

/* ---------- Impact rows ---------- */
.impact-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(2rem, 4vw, 3rem) 0; }
.impact-row + .impact-row { border-top: 1px solid var(--line-dark); }
.impact-row:nth-child(even) .media { order: 2; }
.impact-row .media { aspect-ratio: 3 / 2; }
.impact-row .num { font-family: var(--font-head); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.16em; color: var(--green-deep); display: block; margin-bottom: 0.6rem; }
.impact-row p { color: var(--muted); margin: 0; }
.callout { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; line-height: 1.25; color: var(--ink) !important; border-left: 4px solid var(--green); padding-left: 1rem; margin-top: 1.2rem !important; }
@media (max-width: 760px) { .impact-row { grid-template-columns: 1fr; } .impact-row:nth-child(even) .media { order: 0; } }

/* ---------- News ---------- */
.news-list { display: grid; gap: 1.5rem; }
.news-item { display: grid; grid-template-columns: 300px 1fr; }
.news-item .card-img { aspect-ratio: auto; min-height: 220px; }
@media (max-width: 760px) { .news-item { grid-template-columns: 1fr; } .news-item .card-img { aspect-ratio: 16 / 10; min-height: 0; } }

.article-head { padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.article-head .back { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; text-decoration: none; display: inline-block; margin-bottom: 1.5rem; }
.article-figure { margin: 0 auto 2.5rem; }
.article-figure img { border-radius: var(--radius); width: 100%; max-height: 560px; object-fit: cover; }
.article-figure.logo img { object-fit: contain; max-height: 200px; background: var(--white); border: 1px solid var(--line-dark); padding: 2rem; }
.article-body { padding-bottom: clamp(3rem, 6vw, 5rem); }
.article-body h2 { font-size: 1.5rem; margin-top: 2rem; }
.article-body .standfirst { font-size: 1.2rem; color: var(--muted); font-weight: 500; }
.article-body blockquote { margin: 1.8rem 0; padding: 0.3rem 0 0.3rem 1.3rem; border-left: 4px solid var(--green); font-size: 1.15rem; color: var(--ink); }
.article-body blockquote p:last-child { margin: 0; }
.note { background: var(--paper); border-radius: var(--radius); padding: 1.3rem 1.5rem; font-size: 0.95rem; color: var(--muted); margin-top: 2rem; }
.note p:last-child { margin: 0; }
.funding { font-weight: 600; color: var(--ink); }
.article-nav { border-top: 1px solid var(--line-dark); padding: 1.8rem 0 0; margin-top: 2.5rem; display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.article-nav a { font-family: var(--font-head); font-weight: 700; text-decoration: none; max-width: 22rem; }
.article-nav small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.article-nav .next { text-align: right; margin-left: auto; }

/* ---------- CTA ---------- */
.cta { background: var(--green); color: var(--white); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: var(--white); margin: 0 0 0.3rem; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta p { margin: 0; opacity: 0.95; }
.cta .btn { background: var(--ink); color: var(--white); }
.cta .btn:hover { background: var(--white); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { display: inline-block; background: var(--white); padding: 0.8rem 1rem; border-radius: 10px; margin-bottom: 1.2rem; }
.footer-logo img { height: 44px; width: auto; }
.site-footer h4 { color: var(--white); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #dfe6e1; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.87rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .card-img img { transition: none; }
}

.pillar .eyebrow::before { display: none; }

[id] { scroll-margin-top: 84px; }
