/* Baseline — carbon accounting infrastructure
   Monochrome only. No accent colour anywhere. */

:root {
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --shell: #FAFAF8;
  --grey: #6B6B6B;
  --grey-light: #9A9A96;
  --rule: #E4E4E1;

  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 76rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 2px;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(4rem, 9vw, 7.5rem); }
.band--tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.band--shell { background: var(--shell); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--ink a { color: var(--paper); }
.band--ink .lede,
.band--ink .muted { color: rgba(255,255,255,0.7); }
.band--ink .rule-top { border-color: rgba(255,255,255,0.22); }

.rule-top { border-top: 1px solid var(--rule); }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.08;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 4.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); letter-spacing: -0.02em; }
h4 { font-size: 1.0625rem; letter-spacing: -0.015em; }

p { margin: 0 0 1.15em; max-width: var(--measure); }

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.5;
  color: var(--grey);
  max-width: 38rem;
}

.muted { color: var(--grey); }

.small { font-size: 0.875rem; line-height: 1.5; }

.section-intro { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.lockup svg { display: block; width: 20px; height: auto; }
.lockup span {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}
.nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--grey);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a {
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
  }
  .nav .btn { margin-top: 1rem; text-align: center; border-bottom: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.9rem 1.4rem;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--paper); color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.band--ink .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.band--ink .btn:hover { background: transparent; color: var(--paper); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.textlink {
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}
.textlink:hover { border-bottom-color: transparent; }

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero h1 { margin-bottom: 0.45em; }

/* the scope stack — three slabs, scope 3 dwarfing the rest */

.stack { width: 100%; height: auto; }
.stack text {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: -0.01em;
  fill: var(--grey);
}
.stack .stack__value {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 500;
}
.stack__caption {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--grey);
  max-width: 26rem;
  margin-top: 1.25rem;
}

/* ---------- stat ---------- */

.stat__figure {
  font-size: clamp(5rem, 17vw, 11rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.85;
  margin: 0 0 0.15em;
}

.stat__body { max-width: 34rem; }

/* ---------- rule list (used instead of card grids) ---------- */

.rows { border-top: 1px solid var(--rule); }
.band--ink .rows { border-color: rgba(255,255,255,0.22); }

.row {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
}
.band--ink .row { border-color: rgba(255,255,255,0.22); }

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; gap: 0.5rem; }
}

.row h3 { margin-bottom: 0; }
.row p { margin-bottom: 0; }
.row p + p { margin-top: 0.9em; }

/* ---------- columns ---------- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
.cols p { max-width: none; }

.cols--split { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }

/* ---------- pricing ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  border-top: 1px solid var(--rule);
}

.tier {
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.tier:last-child { border-right: none; }

@media (max-width: 860px) {
  .tier { border-right: none; }
}

.tier__price {
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0.35rem 0 0.15rem;
}
.tier__period { font-size: 0.875rem; color: var(--grey); margin-bottom: 1.5rem; }

.tier ul {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  font-size: 0.9375rem;
  flex-grow: 1;
}
.tier li {
  padding-block: 0.55rem;
  border-top: 1px solid var(--rule);
  color: var(--grey);
}
.tier li:first-child { border-top: none; }

.tier .btn { align-self: flex-start; }

/* ---------- article ---------- */

.article { padding-block: clamp(3rem, 7vw, 5rem); }

.article__head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.article__head h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

.article__meta {
  font-size: 0.875rem;
  color: var(--grey);
  margin-bottom: 1.5rem;
}

.prose {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.7;
  letter-spacing: 0;
  max-width: 38rem;
}
.prose p { max-width: none; margin-bottom: 1.35em; }
.prose h2 {
  font-family: var(--sans);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  margin-top: 2.25em;
  margin-bottom: 0.55em;
}
.prose ul, .prose ol { padding-left: 1.15rem; margin-bottom: 1.35em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--ink);
  font-family: var(--sans);
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- post list ---------- */

.posts { border-top: 1px solid var(--rule); }

.post-link {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.post-link:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.post-link h3 { margin-bottom: 0.4rem; }
.post-link p { margin-bottom: 0; color: var(--grey); font-size: 0.9375rem; }
.post-link time { font-size: 0.875rem; color: var(--grey-light); padding-top: 0.35rem; }

@media (max-width: 700px) {
  .post-link { grid-template-columns: 1fr; gap: 0.35rem; }
  .post-link time { padding-top: 0; }
}

/* ---------- form ---------- */

.form { max-width: 34rem; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: none;
}
.field textarea { min-height: 8rem; resize: vertical; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  font-size: 0.9375rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(auto-fit, minmax(9rem, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 3rem;
}

.footer h4 { margin-bottom: 1rem; font-size: 0.9375rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.6rem; }
.footer a { text-decoration: none; color: var(--grey); }
.footer a:hover { color: var(--ink); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  color: var(--grey);
  font-size: 0.875rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.75rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- accent: reserved for measured data only ---------- */

:root {
  --accent: #1D3FD1;
  --accent-dark: #7C93F7;
  --accent-soft: #EAEDFC;
}

.accent { color: var(--accent); }
.band--ink .accent { color: var(--accent-dark); }

.nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.stack__measured { fill: var(--accent); }
.band--ink .stat__figure .accent { color: var(--accent-dark); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 1.1rem;
  font-size: 0.8125rem;
  color: var(--grey);
}
.legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.legend i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  display: inline-block;
  font-style: normal;
}
.legend .swatch-measured { background: var(--accent); }
.legend .swatch-unmeasured { border: 1px solid var(--ink); }

/* ---------- photography ---------- */

.shot {
  position: relative;
  overflow: hidden;
  background: var(--shell);
  border: 1px solid var(--rule);
  aspect-ratio: 3 / 2;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.06) brightness(0.98);
}
.shot--wide { aspect-ratio: 21 / 9; }
.shot__note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--grey-light);
}
.shot__caption {
  font-size: 0.8125rem;
  color: var(--grey);
  margin-top: 0.75rem;
  max-width: 30rem;
}

/* ---------- the one orchestrated motion ---------- */

.stack__measured,
.stack__outline {
  transition: width 900ms cubic-bezier(.22,.61,.36,1),
              stroke-dashoffset 1100ms cubic-bezier(.22,.61,.36,1);
}
.stack__measured { width: 0; }
.stack__outline { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.stack.is-in .stack__measured { width: 46px; }
.stack.is-in .stack__outline { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  .stack__measured { width: 46px; }
  .stack__outline { stroke-dashoffset: 0; }
}

/* ================= motion system =================
   One vocabulary: things arrive from 14px below, over 620ms, on the same easing
   curve. Nothing bounces, nothing slides sideways, nothing loops.
   Everything below is gated on .js-motion, which JavaScript adds only when it is
   running and the visitor has not asked for reduced motion. Without it the page
   renders fully visible and static. */

.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}
.js-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 620ms cubic-bezier(.22,.61,.36,1) var(--delay, 0ms),
              transform 620ms cubic-bezier(.22,.61,.36,1) var(--delay, 0ms);
}

/* hero arrives on load rather than on scroll — it is already in view */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.js-motion .hero h1        { animation: rise 700ms cubic-bezier(.22,.61,.36,1) 60ms both; }
.js-motion .hero .lede     { animation: rise 700ms cubic-bezier(.22,.61,.36,1) 150ms both; }
.js-motion .hero .btn-row  { animation: rise 700ms cubic-bezier(.22,.61,.36,1) 240ms both; }
.js-motion .hero .stack,
.js-motion .hero .legend,
.js-motion .hero .stack__caption { animation: rise 700ms cubic-bezier(.22,.61,.36,1) 330ms both; }

/* page transitions */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
.js-motion body,
.js-motion main { animation: pageIn 380ms ease both; }
body.is-leaving {
  opacity: 0;
  transition: opacity 170ms ease;
}

/* masthead condenses once you scroll past the hero */
.masthead {
  transition: box-shadow 260ms ease, background 260ms ease;
}
.masthead__inner { transition: min-height 260ms cubic-bezier(.22,.61,.36,1); }
.masthead.is-scrolled { box-shadow: 0 1px 14px rgba(10,10,10,.07); }
.masthead.is-scrolled .masthead__inner { min-height: 3.4rem; }
.lockup svg { transition: transform 300ms cubic-bezier(.22,.61,.36,1); }
.masthead.is-scrolled .lockup svg { transform: scale(.88); }

/* buttons */
.btn {
  transition: background 160ms ease, color 160ms ease,
              transform 160ms cubic-bezier(.22,.61,.36,1);
}
.btn:active { transform: translateY(1px); }

/* nav underline grows from the left instead of appearing */
.nav a {
  position: relative;
  border-bottom-color: transparent !important;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms cubic-bezier(.22,.61,.36,1);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn::after { display: none; }

/* rows underline on hover, so the list feels responsive without becoming cards */
.row { transition: background 220ms ease; }
.row:hover { background: var(--shell); }
.band--ink .row:hover { background: rgba(255,255,255,.04); }

/* pricing tiers lift */
.tier {
  transition: transform 260ms cubic-bezier(.22,.61,.36,1),
              background 260ms ease,
              box-shadow 260ms ease;
}
.tier:hover {
  transform: translateY(-5px);
  background: var(--shell);
  box-shadow: 0 12px 30px rgba(10,10,10,.06);
}
.tier__price { transition: color 260ms ease; }
.tier:hover .tier__price { color: var(--accent); }

/* briefing list slides in on hover */
.post-link { transition: padding-left 280ms cubic-bezier(.22,.61,.36,1), background 220ms ease; }
.post-link:hover { padding-left: 1rem; background: var(--shell); }
.post-link h3 { transition: color 200ms ease; }
.post-link:hover h3 { color: var(--accent); }

/* photography settles as it enters */
.shot img { transition: transform 900ms cubic-bezier(.22,.61,.36,1), filter 400ms ease; }
.shot--filled:hover img { transform: scale(1.02); }

/* form fields */
.field input, .field select, .field textarea {
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* text links */
.textlink { transition: border-color 200ms ease, color 200ms ease; }
.textlink:hover { color: var(--accent); border-bottom-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .js-motion [data-reveal] { opacity: 1; transform: none; }
  .masthead.is-scrolled .masthead__inner { min-height: 4.25rem; }
  .tier:hover, .post-link:hover, .shot--filled:hover img { transform: none; }
}

/* ================= heavy motion layer =================
   Only active when assets/motion-plus.js loads its libraries successfully.
   Without .has-heavy-motion everything below is inert. */

[data-field] {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}
[data-field].is-live { opacity: 1; }
[data-field] canvas { display: block; width: 100%; height: 100%; }

.hero--field { position: relative; }
.hero--field .hero__grid { position: relative; z-index: 1; }

/* word-by-word headline */
.w-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.w-inner { display: inline-block; }

/* framework marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: 1.1rem;
  white-space: nowrap;
}
.marquee__track { display: inline-block; will-change: transform; }
.marquee__track span {
  display: inline-block;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -.03em;
  padding-right: 2.5rem;
  color: var(--ink);
}
.marquee__track span em {
  font-style: normal;
  color: var(--accent);
  padding-right: 2.5rem;
}

/* scroll-scrubbed sequence */
.scrolly { padding-block: clamp(3rem, 7vw, 5rem); }
.scrolly__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: 60vh;
}
@media (max-width: 720px) {
  .scrolly__inner { grid-template-columns: 1fr; }
}

.sq-steps { position: relative; }
.sq-step { max-width: 30rem; }
.scrolly.is-scrubbed { min-height: 100vh; display: flex; align-items: center; }
.scrolly.is-scrubbed .sq-steps { min-height: 16rem; }
.scrolly.is-scrubbed .sq-step { position: absolute; inset: 0 auto auto 0; }
.scrolly.is-scrubbed .sq-step + .sq-step { opacity: 0; }
.scrolly.is-scrubbed .sq-outline { stroke-dasharray: 1300; stroke-dashoffset: 1300; }

.sq-readout {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 .5rem;
}

@media (prefers-reduced-motion: reduce) {
  [data-field] { display: none; }
  .marquee__track { transform: none !important; }
  .has-heavy-motion .w-inner { transform: none; }
}

/* generated artwork sits on its own background rather than being filtered like a photo */
.shot--art { border-color: var(--rule); }
.shot--art img { filter: none; object-fit: cover; }

/* form feedback */
.form__status {
  font-size: 0.9375rem;
  margin: 1rem 0 0;
  min-height: 1.4em;
}
.form__status--ok { color: var(--accent); }
.form__status--bad { color: var(--ink); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: default; }


/* ---------- expanded data palette ----------
   Blue means measured. Green means verified or an advantage. Purple means
   estimated or at risk. They are used on data, never as decoration. */

:root {
  --green: #0F7A52;
  --purple: #6A2CC4;
  --green-soft: #E7F3ED;
  --purple-soft: #F0E9FA;
}

.accent-green { color: var(--green); }
.accent-purple { color: var(--purple); }

.legend .swatch-verified { background: var(--green); }
.legend .swatch-estimated { background: var(--purple); }

/* artwork grid */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.art-grid figure { margin: 0; }
.art-grid figcaption {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--grey);
  margin-top: 0.85rem;
}
.shot--square { aspect-ratio: 1 / 1; }

/* key line under the hero legend */
.legend .swatch-verified,
.legend .swatch-estimated { border: none; }

/* ================= mobile corrections ================= */

/* SVG labels are sized in viewBox units; on a phone the graphic scales to about
   80% so these need to start larger than they would on desktop. */
.stack text { font-size: 15px; }
.stack .stack__value { font-size: 17px; }

/* long addresses and URLs must not push the layout sideways on a 320px screen */
body { overflow-wrap: break-word; }

/* a 21:9 strip is unreadable on a phone — give the artwork more height */
@media (max-width: 700px) {
  .shot--wide { aspect-ratio: 16 / 10; }
  .art-grid { gap: 2rem; }
}

/* Touch devices have no hover, but they do fire it once on tap and then leave it
   stuck until you tap elsewhere. Neutralise every hover-only effect there. */
@media (hover: none) {
  .row:hover { background: transparent; }
  .band--ink .row:hover { background: transparent; }
  .tier:hover { transform: none; background: transparent; box-shadow: none; }
  .tier:hover .tier__price { color: inherit; }
  .post-link:hover { padding-left: 0; background: transparent; }
  .post-link:hover h3 { color: inherit; }
  .shot--filled:hover img { transform: none; }
  .textlink:hover { color: inherit; border-bottom-color: var(--ink); }
  .btn:hover { background: var(--ink); color: var(--paper); }
  .btn--ghost:hover { background: transparent; color: var(--ink); }
  .band--ink .btn:hover { background: var(--paper); color: var(--ink); }
  .nav a:hover::after { transform: scaleX(0); }
  .nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* tap targets: nothing interactive smaller than 44px */
@media (max-width: 800px) {
  .nav-toggle { min-height: 44px; min-width: 60px; }
  .btn { padding-block: 1rem; }
  .footer li a { display: inline-block; padding-block: .35rem; }
}

/* the marquee is decorative — keep it from dominating a small screen */
@media (max-width: 600px) {
  .marquee { padding-block: .8rem; }
  .marquee__track span { font-size: 1.35rem; }
}

/* When the sequence isn't pinned (phones, or no GSAP) the three steps become a
   normal stacked read and need space between them. */
.sq-step + .sq-step { margin-top: clamp(2rem, 5vw, 3rem); }
.scrolly.is-scrubbed .sq-step + .sq-step { margin-top: 0; }
.scrolly:not(.is-scrubbed) .sq-steps { min-height: 0; }

/* ---------- footer, corrected for narrow screens ----------
   The original used repeat(auto-fit, minmax(9rem, 1fr)) alongside an explicit
   first column. auto-fit could not drop below three tracks, so on a phone the
   grid overflowed and crushed the brand column to about 100px, breaking words
   mid-letter. Explicit column counts per breakpoint instead. */

@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
  .footer__grid > div:first-child {
    grid-column: 1 / -1;
    margin-bottom: .5rem;
  }
  .footer__grid > div:first-child p { max-width: 26rem; }
}

@media (max-width: 380px) {
  .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* never break a word in half — wrap to the next line instead */
body { overflow-wrap: normal; word-break: normal; }
.footer, .footer a, .field, .prose { overflow-wrap: break-word; }

.footer__base { gap: .5rem 2rem; }

/* ================= explainer page ================= */

.panel {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper);
}

/* the calculation */
.calc__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.calc__unit { color: var(--grey); font-size: .875rem; margin-top: .35rem; display: block; }
.calc__equation {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 1.0625rem;
}
.calc__equation b { font-weight: 500; }
.calc__result {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--accent);
  display: block;
  margin-top: .5rem;
}
.calc__factor-label { color: var(--grey); font-size: .875rem; }
.calc__scope {
  display: inline-block;
  font-size: .8125rem;
  padding: .25rem .6rem;
  border-radius: 2px;
  color: var(--paper);
  margin-left: .25rem;
}
.calc__scope--1 { background: var(--ink); }
.calc__scope--2 { background: var(--purple); }
.calc__scope--3 { background: var(--accent); }

/* the quiz */
.game__counter { font-size: .875rem; color: var(--grey); margin-bottom: .5rem; }
.game__question {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 0 0 1.5rem;
  min-height: 2.6em;
}
.game__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
@media (max-width: 520px) { .game__options { grid-template-columns: 1fr; } }
.game__option {
  font: inherit;
  font-size: .9375rem;
  padding: .95rem .75rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.game__option:hover:not(:disabled) { border-color: var(--ink); }
.game__option--right { background: var(--green); border-color: var(--green); color: var(--paper); }
.game__option--wrong { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.game__option:disabled { cursor: default; }
.game__feedback {
  font-size: .9375rem;
  line-height: 1.5;
  margin: 1.25rem 0 0;
  min-height: 3em;
  color: var(--grey);
}
.game__feedback--right { color: var(--green); }
.game__bar { height: 2px; background: var(--rule); margin-top: 1.5rem; }
.game__bar span {
  display: block; height: 100%; width: 0; background: var(--ink);
  transition: width 400ms cubic-bezier(.22,.61,.36,1);
}
.game__score {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -.04em;
  margin: 0 0 .4em;
}
.game__done p { max-width: 34rem; }

/* grid comparison */
.grid__slider { width: 100%; accent-color: var(--accent); margin: .5rem 0 1.5rem; }
.grid__output { font-weight: 500; }
.grid__bar { margin-bottom: 1.1rem; }
.grid__bar b { display: block; font-size: .875rem; font-weight: 400; margin-bottom: .4rem; }
.grid__bar span {
  display: block; height: 2rem; border-radius: 2px;
  transition: width 300ms cubic-bezier(.22,.61,.36,1);
}
.grid__bar--ghana span { background: var(--green); }
.grid__bar--coal span { background: var(--ink); }
.grid__vals { display: flex; justify-content: space-between; font-size: .875rem; color: var(--grey); }
.grid__note { border-top: 1px solid var(--rule); margin-top: 1.5rem; padding-top: 1.25rem; }
.grid__gap { color: var(--green); font-weight: 500; }

/* ================= photographs ================= */

.shot--photo {
  background: var(--shell);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.shot--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  /* photographs are lightly desaturated so they sit with the monochrome brand
     without losing the fact that they are real places */
  filter: grayscale(.72) contrast(1.05);
  transition: filter 500ms ease, transform 900ms cubic-bezier(.22,.61,.36,1);
}
.shot--photo:hover img { filter: grayscale(.35) contrast(1.03); }
@media (hover: none) { .shot--photo:hover img { filter: grayscale(.72) contrast(1.05); } }

.shot__note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .8125em;
  color: var(--grey);
}

.hero__shot { margin: 0; }
.hero__shot .shot__caption { margin-top: 1rem; }


/* An empty photo slot should read as a deliberate placeholder, not a broken
   image. The note sits alone on a plain panel until a real file arrives. */
.shot--empty { background: var(--shell); }
.shot--empty img { visibility: hidden; }
.shot__note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
}

/* The port photograph is a night shot; the standard desaturation makes it
   almost black. It gets a lighter hand and a small lift in brightness. */
#port-shot img { filter: grayscale(.72) contrast(1.06); }
#port-shot:hover img { filter: grayscale(.3) contrast(1.03); }

/* The Accra photograph is already black and white — leave it alone. */
#accra-shot img { filter: none; }
#accra-shot:hover img { filter: none; }
