/* GigaJoule Limited — site styles
   One stylesheet for every page. Colours and spacing live in the tokens below. */

:root {
  --bg: #F7F4EF;
  --bg-raised: #FBF9F5;
  --ink: #191713;
  --ink-2: #45403A;
  --muted: #6B6459;
  --line: #E2DCD1;
  --line-2: #D8D2C7;
  --accent: #8F4A20;
  --accent-deep: #6E3714;
  --brand: #4A2F0F;

  --dark: #191713;
  --dark-ink: #F7F4EF;
  --dark-muted: #A9A296;
  --dark-line: rgba(247, 244, 239, 0.16);
  --accent-on-dark: #C98A5B;

  --font-display: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --pad: clamp(20px, 6vw, 80px);
  --max: 1280px;
  --header-h: 68px;
  --section-y: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: #E9D6C3; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 600; border-radius: 2px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(247, 244, 239, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(25, 23, 19, 0.45); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px; letter-spacing: 0.14em; color: var(--brand);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
/* Home page: the header wordmark stays hidden until the big lockup scrolls away. */
.has-lockup .site-header:not(.show-brand) .brand { opacity: 0; visibility: hidden; transform: translateY(4px); }

.nav { display: flex; gap: clamp(20px, 3.4vw, 40px); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; }
.nav a { position: relative; padding: 6px 0; transition: color 0.2s; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Shared type ---------- */
.rule { display: flex; align-items: center; gap: 18px; }
.rule::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.eyebrow, .rule h2, .kicker {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); line-height: 1.4;
}
.display { font-family: var(--font-display); font-weight: 500; line-height: 1.12; }

.section { padding-block: var(--section-y); }
.section:not(.dark) + .section:not(.dark) { padding-top: 0; }
.section-body { margin-top: clamp(32px, 4vw, 48px); }

.dark { background: var(--dark); color: var(--dark-ink); }
.dark .rule h2, .dark .eyebrow { color: var(--accent-on-dark); }
.dark .rule::after { background: var(--dark-line); }
.dark :focus-visible { outline-color: var(--accent-on-dark); }

.arrow { width: 18px; height: 12px; flex-shrink: 0; transition: transform 0.3s var(--ease); }
.ext { width: 12px; height: 12px; flex-shrink: 0; transition: transform 0.3s var(--ease); }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent);
}
.text-link:hover { color: var(--accent-deep); }
.text-link:hover .arrow { transform: translateX(4px); }
.text-link:hover .ext { transform: translate(2px, -2px); }
.dark .text-link { color: var(--accent-on-dark); }
.dark .text-link:hover { color: var(--dark-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  font: 600 14px/1 var(--font-body); letter-spacing: 0.06em;
  color: var(--bg); background: var(--accent);
  border: 1px solid var(--accent); border-radius: 2px; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover .ext { transform: translate(2px, -2px); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--line-2); }
.btn-ghost:hover { background: transparent; color: var(--accent-deep); border-color: var(--accent); }
.btn[data-state="copied"] { color: #2F6B3A; border-color: #2F6B3A; }

/* ---------- Home: lockup + hero ---------- */
.lockup {
  padding: clamp(40px, 7vw, 72px) var(--pad) clamp(40px, 6vw, 60px);
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.lockup-mark { width: clamp(108px, 11vw, 140px); height: auto; margin-bottom: 8px; }
.lockup h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 4.5vw, 44px); letter-spacing: 0.1em; line-height: 1.1;
  color: var(--brand); text-transform: uppercase;
}
.lockup .est { font-size: 14px; color: var(--muted); letter-spacing: 0.03em; }

.hero-photo { height: clamp(280px, 42vw, 580px); overflow: hidden; background: #6A4A3A; }
.hero-photo picture { height: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }

/* ---------- Home: about ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); }
.lead {
  font-size: clamp(22px, 2.9vw, 34px); line-height: 1.35; letter-spacing: -0.01em;
  color: var(--ink); max-width: 30ch;
}
.focus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 40px); }
.focus li { border-top: 1px solid var(--line-2); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.focus .num { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--accent); }
.focus .name { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 2.6vw, 30px); line-height: 1.2; }

/* ---------- Home: holdings ---------- */
.statement {
  font-size: clamp(22px, 2.9vw, 34px); line-height: 1.4; letter-spacing: -0.01em;
  color: var(--ink); max-width: 40ch;
}
.statement a {
  color: var(--accent);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em;
  text-decoration-color: rgba(143, 74, 32, 0.35);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.statement a:hover { color: var(--accent-deep); text-decoration-color: currentColor; }
.holdings-list { display: grid; gap: 6px; margin-top: 14px; }
.holdings-list li { position: relative; padding-left: 1.1em; }
.holdings-list li::before {
  content: ''; position: absolute; left: 0.1em; top: 0.62em;
  width: 0.3em; height: 0.3em; border-radius: 50%; background: var(--accent);
}

/* ---------- Inner page head ---------- */
.pagehead { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 56px); display: flex; flex-direction: column; gap: 22px; }
.pagehead h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.08; max-width: 18ch; }
.standfirst { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }

.banner { margin: 0; overflow: hidden; background: #C9A274; }
.banner img { width: 100%; height: clamp(220px, 32vw, 440px); object-fit: cover; }

/* ---------- globalCOAL: timeline ---------- */
.timeline { counter-reset: tl; }
.tl-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: clamp(28px, 5vw, 72px); }
.tl-date {
  padding-block: 30px;
  font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.4;
  color: var(--accent); border-top: 1px solid var(--line-2);
}
.tl-body { position: relative; padding: 30px 0 30px 40px; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.tl-item:last-child .tl-date, .tl-item:last-child .tl-body { border-bottom: 1px solid var(--line-2); }
.tl-body::before {
  content: ''; position: absolute; left: -7px; top: 38px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  transition: background-color 0.5s var(--ease) 0.25s, transform 0.5s var(--ease) 0.25s;
}
.tl-item.is-in .tl-body::before, html:not(.js) .tl-body::before { background: var(--accent); }
.tl-body p { font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 62ch; }

/* ---------- globalCOAL: consortium ---------- */
.consortium-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.consortium-head p { color: var(--dark-muted); max-width: 52ch; }
.filters { display: none; flex-wrap: wrap; gap: 8px; }
.js .filters { display: flex; }
.filters button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 14px;
  font: 500 13px/1 var(--font-body); letter-spacing: 0.04em;
  color: var(--dark-muted); background: transparent;
  border: 1px solid var(--dark-line); border-radius: 999px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.filters button span { font-size: 11px; color: var(--accent-on-dark); }
.filters button:hover { color: var(--dark-ink); border-color: rgba(247, 244, 239, 0.4); }
.filters button[aria-pressed="true"] { color: var(--dark); background: var(--dark-ink); border-color: var(--dark-ink); }
.filters button[aria-pressed="true"] span { color: var(--accent); }

.consortium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; margin-top: clamp(28px, 3vw, 40px); }
.consortium { row-gap: 32px; }
.consortium li {
  display: flex; flex-direction: column; gap: 4px;
  transition: opacity 0.4s var(--ease), color 0.4s var(--ease);
}
.c-logo {
  display: flex; align-items: center; justify-content: center;
  height: 112px; padding: 22px 28px; margin-bottom: 14px;
  background: var(--bg); border-radius: 2px;
}
.c-logo img { width: 100%; height: 52px; object-fit: contain; }
/* Per-logo heights so marks of different shapes carry similar visual weight. */
.c-logo img[src$="/accel-kkr.png"] { height: 56px; }
.c-logo img[src$="/anglo-american.svg"] { height: 46px; }
.c-logo img[src$="/bhp.svg"] { height: 44px; }
.c-logo img[src$="/eon.svg"] { height: 38px; }
.c-logo img[src$="/glencore.svg"] { height: 40px; }
.c-logo img[src$="/j-power.svg"] { height: 48px; }
.c-logo img[src$="/rio-tinto.svg"] { height: 40px; }
.c-logo img[src$="/enel.png"] { height: 48px; }
.c-logo img[src$="/txu.svg"] { height: 60px; }
.consortium .c-name { font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 21px); font-weight: 500; line-height: 1.3; }
.consortium .c-type { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dark-muted); }
.consortium li.is-match .c-name { color: var(--accent-on-dark); }
.consortium li.is-dimmed { opacity: 0.22; }
.note { font-size: 14px; color: var(--dark-muted); margin-top: 28px; }

/* ---------- globalCOAL: today ---------- */
.today { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.today .display { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; max-width: 14ch; }
.today-body { display: flex; flex-direction: column; gap: 32px; }
.features li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 22px 0; border-top: 1px solid var(--line-2); }
.features li:last-child { border-bottom: 1px solid var(--line-2); }
.features .num { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--accent); padding-top: 5px; }
.features h4 { margin: 0;  font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.3; }
.features p { grid-column: 2; color: var(--ink-2); }

/* ---------- Next-page link ---------- */
.next { border-top: 1px solid var(--line); }
.next a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(36px, 5vw, 56px); }
.next .display { font-size: clamp(24px, 3vw, 36px); transition: color 0.3s; }
.next .arrow { width: 28px; height: 18px; color: var(--accent); }
.next a:hover .display { color: var(--accent); }
.next a:hover .arrow { transform: translateX(6px); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.contact-card .text-link { align-self: flex-start; }
.contact-card {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg-raised); border: 1px solid var(--line);
}
.contact-card address { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.contact-card .actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: auto; padding-top: 8px; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(72px, 12vw, 140px); display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.notfound svg { width: 96px; height: 96px; margin-bottom: 8px; }
.notfound h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); font-weight: 500; }
.notfound p { color: var(--ink-2); max-width: 44ch; }
.notfound .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 36px; font-size: 13px; color: var(--muted); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.site-footer .brand { font-size: 13px; color: var(--muted); }
.site-footer .brand svg { width: 22px; height: 22px; }
.site-footer .nav { font-size: 13px; }
.site-footer .nav a { color: var(--ink-2); }
.footer-legal { display: grid; gap: 6px; padding-top: 22px; }
.footer-legal p { line-height: 1.6; }
.footer-legal a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.footer-legal a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Motion (only for people who haven't asked for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .lockup-mark path { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) forwards; }
  .lockup-mark path:nth-of-type(1) { animation-delay: 0.10s; }
  .lockup-mark path:nth-of-type(2) { animation-delay: 0.22s; }
  .lockup-mark path:nth-of-type(3) { animation-delay: 0.34s; }
  .lockup-mark path:nth-of-type(4) { animation-delay: 0.46s; }
  .lockup-mark path:nth-of-type(5) { animation-delay: 0.58s; }
  .lockup h1 { animation: rise 0.9s var(--ease) 0.7s both; }
  .lockup .est { animation: rise 0.9s var(--ease) 0.85s both; }
  .hero-photo img { animation: settle 1.8s var(--ease) 0.2s both; }
  .pagehead > * { animation: rise 0.8s var(--ease) both; }
  .pagehead > :nth-child(2) { animation-delay: 0.08s; }
  .pagehead > :nth-child(3) { animation-delay: 0.16s; }

  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal-delay="1"] { transition-delay: 0.08s; }
  .js [data-reveal-delay="2"] { transition-delay: 0.16s; }
  .js [data-reveal-delay="3"] { transition-delay: 0.24s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } }

/* ---------- Responsive ---------- */
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; }
}
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .tl-item { grid-template-columns: minmax(0, 1fr); }
  .tl-date { padding-block: 24px 6px; }
  .tl-body { border-top: 0; padding-top: 6px; padding-bottom: 28px; }
  .tl-body::before { top: 13px; }
  .tl-item:last-child .tl-date { border-bottom: 0; }
  .consortium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; }
  .brand .brand-name { display: none; }
  .site-footer .brand .brand-name { display: inline; }
  .nav { gap: 22px; }
  .consortium { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 24px; }
  .c-logo { height: 96px; padding: 18px 14px; margin-bottom: 10px; }
  .consortium .c-name { font-size: 16px; }
  .tl-body p { font-size: 17px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .skip-link, .filters, .next, .hero-photo, .banner { display: none !important; }
  body { background: #fff; }
  .dark { background: #fff; color: var(--ink); }
  .dark .c-type, .note { color: var(--muted); }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 11px; color: var(--muted); }
}
