/* Carbon Age Energy — www.carbonageinc.com — v1.0
   Palette derived from the official logo (assets/logo/cae-logo.svg).
   Logo source colours: dark green #054222, mid green #2f6a29, leaf green #7aa722,
   leaf-tint stroke #b6cd8b, near-black #060707, panel blue-greys #c0d2e6 / #d4dfe9 / #e2e9f1 / #f2f3f3,
   grey stroke #636d77. Only --c-dark and --c-muted are derived shades (marked). */
:root {
  --c-primary: #054222;      /* logo dark green: headings, dark sections, buttons (11.6:1 on white) */
  --c-primary-2: #2f6a29;    /* logo mid green */
  --c-dark: #032c17;         /* DERIVED: #054222 darkened ~35% for gradients/footer */
  --c-accent: #2f6a29;       /* logo mid green: links, kickers, icons (6.5:1 on white) */
  --c-accent-strong: #054222;/* hover */
  --c-leaf: #7aa722;         /* logo leaf green: decorative only (2.9:1 on white — never body text on light) */
  --c-highlight: #b6cd8b;    /* logo leaf-tint stroke: text/accents on dark green (6.7:1 on #054222) */
  --c-on-dark: #e2e9f1;      /* logo panel blue-grey: body text on dark (9.5:1 on #054222) */
  --c-on-dark-2: #c0d2e6;    /* logo panel blue: secondary text on dark (7.5:1 on #054222) */
  --c-ink: #060707;          /* logo near-black: body text */
  --c-muted: #4d5660;        /* DERIVED: logo grey #636d77 darkened for 4.5:1+ on tints */
  --c-bg: #ffffff;
  --c-tint: #f2f3f3;         /* logo panel light */
  --c-tint-2: #e2e9f1;       /* logo panel blue-grey: tags, hovers */
  --c-border: #d4dfe9;       /* logo panel blue-grey */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(5,66,34,.06), 0 8px 24px rgba(5,66,34,.07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--c-ink); background: var(--c-bg); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; color: var(--c-primary); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 680; }
p { margin: 0 0 1em; }
a { color: var(--c-accent); text-underline-offset: 3px; }
a:hover { color: var(--c-accent-strong); }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .section-dark :focus-visible, .contact-card :focus-visible, .site-footer :focus-visible { outline-color: var(--c-highlight); }
main:focus { outline: none; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(860px, 100% - 2.5rem); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--c-primary); color: #fff; padding: .7rem 1rem; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: .75rem; color: #fff; }


/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--c-border); }
.header-inner { display: flex; align-items: center; gap: .75rem 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--c-primary); }
.brand-logo { display: block; height: 38px; width: auto; max-width: none; aspect-ratio: 645 / 128; }
.primary-nav { margin-left: auto; position: relative; }
.nav-list { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.nav-list a { display: block; padding: .45rem .6rem; border-radius: 8px; color: var(--c-ink); text-decoration: none; font-size: .93rem; font-weight: 560; white-space: nowrap; }
.nav-list a:hover, .nav-list a.active { background: var(--c-tint); color: var(--c-accent-strong); }
.nav-toggle { display: none; align-items: center; gap: .4rem; font: inherit; font-size: .95rem; font-weight: 600; color: var(--c-primary); background: #fff; border: 1px solid var(--c-border); border-radius: 10px; padding: .45rem .7rem; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.lang-switch { display: inline-flex; border: 1px solid var(--c-border); border-radius: 999px; padding: 3px; background: var(--c-tint); }
.lang-btn { font: inherit; font-size: .85rem; font-weight: 700; border: 0; background: transparent; color: var(--c-muted); padding: .3rem .75rem; border-radius: 999px; cursor: pointer; min-width: 44px; min-height: 34px; }
.lang-btn[aria-pressed="true"] { background: var(--c-primary); color: #fff; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav-list { display: none; position: absolute; right: 0; top: calc(100% + 10px); flex-direction: column; background: #fff; border: 1px solid var(--c-border); border-radius: 12px; box-shadow: var(--shadow); padding: .5rem; min-width: 220px; }
  .nav-list.open { display: flex; }
  .nav-list a { padding: .65rem .8rem; }
  .no-js .nav-toggle { display: none; }
  .no-js .nav-list { display: flex; position: static; flex-direction: row; flex-wrap: wrap; box-shadow: none; border: 0; }
}
@media (max-width: 560px) {
  .header-inner { gap: .5rem; padding-block: .5rem; }
  .nav-toggle { padding: .4rem .55rem; }
  .lang-btn { min-width: 40px; padding: .3rem .6rem; }
  .brand-logo { height: 28px; }
  .primary-nav { margin-left: auto; }
}

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 10%, rgba(122,167,34,.22), transparent 60%), linear-gradient(160deg, var(--c-dark) 0%, var(--c-primary) 100%); color: var(--c-on-dark); padding: clamp(3rem, 7vw, 6rem) 0; overflow: hidden; }
.hero h1 { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--c-highlight); }
.lead { font-size: 1.18rem; color: var(--c-on-dark); max-width: 40em; }
.hero-status { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 600; color: #fff; }
.status-dot { width: .7rem; height: .7rem; border-radius: 50%; background: #f2c14e; box-shadow: 0 0 0 4px rgba(242,193,78,.25); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1.3rem; border-radius: 10px; font-weight: 650; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: #fff; color: var(--c-primary); }
.btn-primary:hover { background: var(--c-tint-2); color: var(--c-primary); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.hero-art svg { width: 100%; height: auto; display: block; }
.spin-slow { transform-origin: 210px 210px; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--c-tint); }
.section-dark { background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-dark) 100%); color: var(--c-on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: var(--c-highlight); }
.section-dark .section-lead { color: var(--c-on-dark); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 750; color: var(--c-accent); margin-bottom: .5rem; }
.section-lead { font-size: 1.12rem; color: var(--c-muted); max-width: 52em; }
.statement { margin: .5rem 0 1rem; padding: 1.5rem 1.75rem; border-left: 5px solid var(--c-accent); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.section-tint .statement { background: #fff; }
.statement p { margin: 0; font-size: clamp(1.2rem, 2.1vw, 1.5rem); line-height: 1.5; color: var(--c-primary); font-weight: 560; }
.pillars { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.pillars li { display: flex; gap: .9rem; align-items: flex-start; }
.pillars svg { flex: none; width: 28px; height: 28px; color: var(--c-accent); margin-top: .15rem; }

.cards { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card p:last-of-type { margin-bottom: .6rem; }
.icon { width: 44px; height: 44px; color: var(--c-accent); margin-bottom: .75rem; display: block; }
.icon-sm { width: 24px; height: 24px; color: var(--c-accent); flex: none; }
.card-head { display: flex; gap: .6rem; align-items: center; }
.tag { display: inline-block; font-size: .82rem; font-weight: 650; color: var(--c-accent-strong); background: var(--c-tint-2); border-radius: 999px; padding: .2rem .7rem; }
.answer { display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 1.75rem; padding: 1.5rem 1.75rem; border-radius: var(--radius); background: var(--c-tint); border: 1px solid var(--c-border); }
.answer .icon { flex: none; margin: 0; }
.answer p { margin: 0; }

.feed-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .85rem; }
.feed-list li { padding-left: 0; }
.pill { display: inline-block; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; border-radius: 6px; padding: .12rem .5rem; margin-right: .3rem; vertical-align: 1px; }
.pill-base { background: #dcefe4; color: #14532d; }
.pill-pending { background: #fde8cf; color: #7a3300; }
.pill-target { background: var(--c-tint-2); color: var(--c-primary); }
.note { font-size: .95rem; color: var(--c-muted); }
.contact-card + .note { margin-top: 1rem; }
.section-dark .note { color: var(--c-on-dark-2); }

/* Process flow */
.flow { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; counter-reset: none; }
.flow-step { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 1.25rem 1.1rem 1.1rem; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; top: 2.6rem; right: -0.85rem; width: .7rem; height: .7rem; border-top: 2px solid var(--c-highlight); border-right: 2px solid var(--c-highlight); transform: rotate(45deg); }
.flow-step-out { background: rgba(182,205,139,.14); border-color: rgba(182,205,139,.5); }
.flow-num { position: absolute; top: .8rem; right: .9rem; font-size: .8rem; font-weight: 800; color: var(--c-primary); background: var(--c-highlight); width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; }
.flow-icon { width: 40px; height: 40px; color: var(--c-highlight); display: block; margin-bottom: .6rem; }
.flow-step h3 { font-size: 1rem; }
.flow-step p { font-size: .9rem; color: var(--c-on-dark); margin: 0; }
@media (max-width: 1100px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow-step:nth-child(3)::after { display: none; }
}
@media (max-width: 700px) {
  .flow { grid-template-columns: 1fr; gap: 1.25rem; }
  .flow-step:not(:last-child)::after { display: block; top: auto; bottom: -1rem; right: auto; left: 2rem; transform: rotate(135deg); }
}

.bm-diagram { margin: 2.5rem 0 1rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.25rem; }
.bm-diagram svg { display: block; width: 100%; height: auto; }
.dg-vertical { display: none !important; max-width: 340px; margin-inline: auto; }
@media (max-width: 700px) { .dg-horizontal { display: none !important; } .dg-vertical { display: block !important; } }
.bm-diagram figcaption { margin-top: .75rem; font-size: .92rem; color: var(--c-on-dark-2); text-align: center; }
.dg-box { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.25); stroke-width: 1.5; }
.dg-cae { fill: rgba(182,205,139,.14); stroke: var(--c-highlight); }
.dg-arrow { stroke: var(--c-highlight); stroke-width: 3; fill: none; }
.dg-h { fill: var(--c-highlight); font: 800 15px var(--font); text-anchor: middle; letter-spacing: .06em; text-transform: uppercase; }
.dg-t { fill: #ffffff; font: 600 19px var(--font); text-anchor: middle; }
.dg-s { fill: var(--c-on-dark-2); font: italic 500 15px var(--font); text-anchor: middle; }
.dg-el { fill: #ffffff; font: 800 24px var(--font); text-anchor: middle; letter-spacing: .04em; }
.card-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; }
.card-dark p { color: var(--c-on-dark); }
.bm-explain { margin-bottom: 1rem; }

/* Plastics mini flow */
.mini-flow { list-style: none; padding: 0; margin: 2rem 0 1.25rem; display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; position: relative; }
.mini-flow li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; font-weight: 600; font-size: .95rem; color: var(--c-primary); padding: 0 .25rem; }
.mini-flow li::before { content: ""; position: absolute; top: .7rem; left: 50%; width: 100%; height: 2px; background: var(--c-border); z-index: 0; }
.mini-flow li:last-child::before { display: none; }
.mf-dot { position: relative; z-index: 1; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #fff; border: 4px solid var(--c-accent); }
.mini-flow li:last-child .mf-dot { background: var(--c-accent); }
@media (max-width: 800px) {
  .mini-flow { grid-template-columns: 1fr; gap: 1rem; }
  .mini-flow li { flex-direction: row; text-align: left; }
  .mini-flow li::before { top: 1.4rem; left: .65rem; width: 2px; height: calc(100% + .2rem); }
}

/* Status */
.status-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.status-list li { background: #fff; border: 1px solid var(--c-border); border-radius: 12px; padding: 1rem 1.25rem; }
.st { display: inline-block; min-width: 6.5rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-radius: 6px; padding: .15rem .55rem; margin-right: .5rem; text-align: center; }
.st-now { background: var(--c-tint-2); color: var(--c-primary); }
.st-plan { background: #fde8cf; color: #7a3300; }
.st-not { background: #eceff1; color: #37474f; }

/* Contact */
.contact-card { background: var(--c-primary); color: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-name { font-size: 1.5rem; font-weight: 750; margin: 0; }
.contact-role { color: var(--c-highlight); font-weight: 600; margin-bottom: .75rem; }
.contact-links { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .75rem; }
.contact-links li { display: flex; align-items: center; gap: .75rem; }
.contact-links svg { width: 22px; height: 22px; flex: none; color: var(--c-highlight); }
.contact-links a { color: #fff; font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) { .contact-card { padding: 1.5rem 1.1rem; } .contact-links li { gap: .55rem; } .contact-links a { font-size: .93rem; } .st { display: table; margin-bottom: .45rem; } }
.contact-links a:hover { color: var(--c-highlight); }

/* Footer */
.site-footer { background: var(--c-dark); color: var(--c-on-dark-2); padding: 2rem 0; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-inner p { margin: .3rem 0; }
.footer-brand { margin-bottom: 1rem !important; }
/* Light plate so the logo (which carries its own pale panel) sits cleanly on the dark footer; artwork untouched */
.footer-logo { display: block; height: 44px; width: auto; aspect-ratio: 645 / 128; background: #fff; padding: 6px 10px; border-radius: 10px; box-sizing: content-box; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { max-width: 300px; margin-inline: auto; order: -1; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero-art { max-width: 220px; }
  .answer { flex-direction: column; }
  .statement { padding: 1.2rem; }
}
@media print {
  .site-header { position: static; }
  .hero, .section-dark, .contact-card { background: #fff !important; color: #000 !important; }
}
@media (max-width: 374px) {
  .container { width: calc(100% - 1.5rem); }
  .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang-btn { min-width: 36px; padding: .3rem .5rem; }
}
