:root {
  --cane: #1f3320;
  --cane-2: #30502c;
  --leaf: #7f9a3c;
  --straw: #e8d9ae;
  --paper: #f6edd6;
  --ink: #1c1d16;
  --soft: #4c4c3d;
  --red: #c5301f;
  --line: #cdbd8f;
  --serif: 'Young Serif', Georgia, serif;
  --sans: 'Karla', 'Helvetica Neue', Arial, sans-serif;
  --seal: 'Ma Shan Zheng', 'Songti SC', serif;
  --gutter: clamp(20px, 5vw, 64px);
  --edge: max(var(--gutter), calc((100% - 1180px) / 2));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 19px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
canvas { display: block; }

/* Header */
.top { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px var(--edge); color: var(--paper); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.25; }
.seal { flex: none; display: grid; place-items: center; width: 46px; height: 46px; padding: 2px; background: var(--red); color: var(--paper); font-family: var(--seal); font-size: 20px; line-height: .95; letter-spacing: 0; text-align: center; writing-mode: vertical-rl; border-radius: 3px 5px 4px 6px; }
nav { display: flex; gap: 26px; font-size: 16px; }
nav a { text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
nav a:hover { border-color: var(--straw); }

/* Hero */
.hero { position: relative; min-height: min(100vh, 860px); padding: 170px var(--edge) 90px; display: flex; align-items: flex-end; background: var(--cane); color: var(--paper); overflow: hidden; }
#fibres { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: relative; max-width: 760px; pointer-events: none; }
.hero h1 { font-size: clamp(54px, 9.5vw, 124px); line-height: 1; letter-spacing: -.015em; }
.hero p { max-width: 31em; margin: 28px 0 0; font-size: clamp(19px, 1.8vw, 22px); color: var(--straw); }
.go { display: inline-block; margin-top: 26px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 3px; pointer-events: auto; }
.go span { display: inline-block; transition: transform .2s; }
.go:hover span { transform: translateY(4px); }

/* Sections */
section:not(.hero) { padding: clamp(72px, 9vw, 124px) var(--edge); }
.num { margin: 0 0 8px; font-weight: 600; font-size: 15px; letter-spacing: .12em; color: var(--red); }
.sec-head h2 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.05; }
.sec-head p:not(.num) { margin: 16px 0 0; max-width: 28em; color: var(--soft); }
.big { font-family: var(--serif); font-size: clamp(25px, 3vw, 38px); line-height: 1.3; }
.cap { margin: 12px 0 0; font-size: 15px; color: var(--soft); }
.partners { margin: 32px 0 0; }

/* Waste */
.waste { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 72px); }
.waste strong { color: var(--red); font-weight: 600; }
.tally { display: grid; grid-template-columns: repeat(10, minmax(0, 44px)); gap: 12px 15px; margin-top: 30px; }
.tally svg { display: block; width: 100%; height: auto; overflow: visible; }
.tally path { fill: none; stroke: var(--cane-2); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tally path:last-child { stroke: var(--red); }
.tally.in path { stroke-dashoffset: 0; transition: stroke-dashoffset .28s ease-out var(--d); }

/* Route */
.route { background: var(--straw); display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 72px); }
.route .sec-head { position: sticky; top: 40px; align-self: start; }
.cane { position: relative; list-style: none; margin: 0; padding: 0 0 0 76px; --grown: 0; }
.cane::before, .cane::after { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 26px; border-radius: 13px 13px 4px 4px; }
.cane::before { background: repeating-linear-gradient(#d1c08e 0 112px, #b7a56f 112px 117px); }
.cane::after { background: repeating-linear-gradient(var(--leaf) 0 112px, var(--cane-2) 112px 117px); clip-path: inset(0 0 calc(100% - var(--grown) * 100%) 0); }
.cane li { position: relative; padding: 0 0 72px; opacity: .38; transition: opacity .45s; }
.cane li:last-child { padding-bottom: 0; }
.cane li::before { content: ''; position: absolute; left: -38px; top: 19px; width: 26px; height: 3px; background: var(--cane-2); transform: scaleX(0); transform-origin: left; transition: transform .45s; }
.cane li.on { opacity: 1; }
.cane li.on::before { transform: scaleX(1); }
.cane h3 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.2; margin-bottom: 8px; }
.cane p { max-width: 30em; margin: 0; color: var(--soft); }

/* Reuse */
.reuse-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; margin-top: 40px; }
.stage { min-width: 0; }
#morph { width: 100%; aspect-ratio: 1; background: var(--cane); }
.switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.switch button { font: 600 17px var(--sans); color: var(--ink); background: none; border: 2px solid var(--ink); padding: 8px 18px; cursor: pointer; transition: background .2s, color .2s; }
.switch button:hover { background: var(--straw); }
.switch button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--paper); }
.switch button:focus-visible, nav a:focus-visible, .go:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
.path { min-height: 170px; }
.path h3 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.2; margin-bottom: 10px; }
.path p { color: var(--soft); max-width: 26em; }

/* Proceeds */
.proceeds { background: var(--red); color: var(--paper); display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 72px); }
.proceeds .num { color: var(--straw); }
.proceeds .big { margin: 0; max-width: 22em; }

/* Route plan */
.go-plan { grid-column: 2; margin-top: 8px; color: var(--ink); }
.plan-hero { position: relative; display: flex; align-items: flex-end; min-height: min(100vh, 820px); padding: 170px var(--edge) 64px; background: var(--cane); color: var(--paper); overflow: hidden; }
.plan-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.plan-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,51,32,.96) 0%, rgba(31,51,32,.9) 44%, rgba(31,51,32,.3) 78%, rgba(31,51,32,.12) 100%); }
.plan-copy { position: relative; z-index: 1; max-width: 680px; }
.kicker { margin: 0 0 12px; font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.plan-copy .kicker { color: var(--straw); }
.plan-copy h1 { font-size: clamp(48px, 7vw, 92px); line-height: 1.02; letter-spacing: -.01em; }
.plan-copy > p:not(.kicker) { margin: 24px 0 0; max-width: 31em; color: var(--straw); font-size: clamp(19px, 1.8vw, 21px); }
.stats { display: flex; flex-wrap: wrap; gap: 20px 44px; margin: 34px 0 0; }
.stats dt { font-size: 15px; color: var(--straw); }
.stats dd { margin: 0; font-family: var(--serif); font-size: clamp(32px, 3.6vw, 44px); line-height: 1.15; }
.plan-note { margin: 0; padding: 20px var(--edge); background: var(--red); color: var(--paper); }
.plan-note strong { font-weight: 600; }
.map-sec > .switch { margin: 32px 0 26px; }
.map-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
#sg { display: block; width: 100%; height: auto; background: var(--cane); }
#sg .case { fill: none; stroke: rgba(246,237,214,.85); stroke-width: calc(8px * var(--z, 1)); stroke-linecap: round; stroke-linejoin: round; }
#sg .off { fill: var(--paper); stroke: var(--cane); stroke-width: calc(2px * var(--z, 1)); }
#sg .leg { fill: none; stroke: var(--red); stroke-width: calc(4px * var(--z, 1)); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-leg .7s ease-out var(--d) forwards; }
#sg .pin { cursor: pointer; outline: none; }
#sg .pin circle { fill: var(--cane); stroke: var(--paper); stroke-width: 3; transition: fill .2s; }
#sg .pin text { fill: var(--paper); font: 600 16px var(--sans); text-anchor: middle; }
#sg .pin:hover circle, #sg .pin:focus-visible circle, #sg .pin.on circle { fill: var(--red); }
@keyframes draw-leg { to { stroke-dashoffset: 0; } }
.stop-list { list-style: none; margin: 0; padding: 0; }
.stop-list button { display: flex; gap: 14px; align-items: center; width: 100%; padding: 13px 0; font: 400 18px/1.3 var(--sans); color: var(--ink); text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.stop-list b { flex: none; display: grid; place-items: center; width: 32px; height: 32px; color: var(--paper); background: var(--cane); border-radius: 50%; font-weight: 600; font-size: 15px; }
.stop-list small { display: block; font-size: 15px; color: var(--soft); }
.stop-list button:hover b, .stop-list button[aria-pressed="true"] b { background: var(--red); }
.stop-list button[aria-pressed="true"] { font-weight: 600; }
.stop-list button:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.stop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: clamp(36px, 5vw, 60px); padding-top: clamp(28px, 4vw, 40px); border-top: 2px solid var(--ink); }
.stop figure { margin: 0; }
.stop img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stop figcaption { margin-top: 8px; font-size: 15px; color: var(--soft); }
.stop h3 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; }
.addr { margin: 8px 0 18px; color: var(--soft); }
.stall-list { list-style: none; margin: 0 0 18px; padding: 0; }
.stall-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stall-list li + li { border-top: 0; }
.stall-list span { font-weight: 600; }
.stall-list b { flex: none; font-weight: 400; color: var(--red); }
.seen { font-size: 16px; color: var(--soft); }
.run { background: var(--straw); }
.run-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 40px); margin: 44px 0 0; padding: 0; }
.run-steps li { counter-increment: s; padding-top: 12px; border-top: 3px solid var(--cane); }
.run-steps li::before { content: counter(s); font-family: var(--serif); font-size: 18px; color: var(--red); }
.run-steps h3 { font-size: 26px; line-height: 1.2; margin: 4px 0 8px; }
.run-steps p { margin: 0; color: var(--soft); }
.loops { background: var(--paper); }
.legs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px clamp(32px, 5vw, 64px); margin-top: 44px; }
.leg-block h3 { font-size: 28px; margin-bottom: 10px; }
.table-wrap { margin-top: 40px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.35; }
th, td { padding: 11px 14px 11px 0; text-align: left; font-weight: 400; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
tbody th, tfoot th, tfoot td { font-weight: 600; }
td:nth-last-child(-n+2) { white-space: nowrap; }
.closures td:nth-last-child(-n+2) { white-space: normal; }
.planning { background: var(--cane); color: var(--paper); }
.planning .num, .planning .sec-head p:not(.num) { color: var(--straw); }
.rules { list-style: none; counter-reset: r; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(32px, 5vw, 64px); margin: 44px 0 0; padding: 0; }
.rules li { counter-increment: r; padding-top: 14px; border-top: 1px solid var(--cane-2); }
.rules li::before { content: counter(r); font-family: var(--serif); font-size: 18px; color: var(--straw); }
.rules h3 { font-size: 26px; line-height: 1.2; margin: 4px 0 8px; }
.rules p { margin: 0; color: var(--straw); }
section.sources { padding-top: 22px; padding-bottom: 22px; }
.sources summary { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); cursor: pointer; list-style: none; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.sources details[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.source-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(32px, 5vw, 64px); margin-top: 18px; font-size: 14px; line-height: 1.5; }
.source-cols h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.source-cols ul { margin: 0; padding-left: 16px; color: var(--soft); }
.source-cols li { margin-bottom: 6px; }
.source-cols .cap { font-size: 13px; }
.foot a { color: var(--paper); }

/* Footer */
.foot { background: var(--cane); color: var(--straw); padding: 44px var(--edge); font-size: 16px; }
.foot p { margin: 0; }
.foot-name { font-family: var(--serif); font-size: 22px; color: var(--paper); margin-bottom: 6px; }

@media (max-width: 900px) {
  .waste, .route, .proceeds { grid-template-columns: 1fr; }
  .go-plan { grid-column: 1; justify-self: start; }
  .map-grid, .stop, .legs, .rules, .source-cols { grid-template-columns: 1fr; }
  .run-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-hero::after { background: linear-gradient(0deg, rgba(31,51,32,.97) 0%, rgba(31,51,32,.9) 60%, rgba(31,51,32,.45) 100%); }
  .route .sec-head { position: static; }
  .reuse-grid { grid-template-columns: 1fr; }
  .path { min-height: 150px; }
}
@media (max-width: 560px) {
  .top { flex-direction: column; align-items: flex-start; gap: 12px; }
  nav { flex-wrap: wrap; gap: 6px 20px; }
  .hero { padding-top: 190px; }
  .cane { padding-left: 58px; }
  .cane::before, .cane::after { left: 0; }
  .cane li::before { left: -32px; width: 24px; }
  .tally { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px 11px; }
  .run-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cane li, .cane li::before, .tally.in path { transition: none; }
  #sg .leg { animation: none; stroke-dashoffset: 0; }
}
