:root {
  --paper: #ebe4d4;          /* matched to the 1893 map stock */
  --paper-2: #e1d8c5;
  --ink: #1f1d1a;
  --lead: #5f584d;
  --rule: rgba(31, 29, 26, 0.16);
  --night: #1c1b19;
  --chalk: #efe9dc;
  --red: #b3261e;
  --red-dark: #8f1d17;

  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: min(1240px, 100% - 5rem); margin-inline: auto; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.section { padding: 9rem 0; }
.red { color: var(--red); }

.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lead); }
.mono b { color: var(--red); font-weight: 500; }
.label { display: inline-flex; align-items: center; gap: 0.9rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lead); margin-bottom: 1.8rem; }
.label::before, .label::after { content: ""; width: 40px; height: 1px; background: var(--rule); }
.label span { color: var(--red); font-weight: 500; margin-right: -0.2rem; }

h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.045em; }
h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 0.98; margin-bottom: 1.8rem; }
h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; }
.lede { font-size: 1.1rem; color: var(--lead); max-width: 620px; }

/* ---------- Header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1rem 2.5rem; border-bottom: 1px solid transparent; transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease); }
.header.scrolled { background: rgba(235,228,212,0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--rule); padding: 0.6rem 2.5rem; }
.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav-right { justify-content: flex-end; }
.nav a { font-size: 0.88rem; font-weight: 500; color: var(--lead); transition: color 0.25s var(--ease); }
.nav a:hover { color: var(--ink); }
.brand img { width: 52px; transition: width 0.4s var(--ease); }
.scrolled .brand img { width: 42px; }
.btn, .nav .nav-cta { display: inline-block; padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease); }
.btn-red, .nav .nav-cta { background: var(--red); color: #fff; }
.btn-red:hover, .nav .nav-cta:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); background: rgba(235,228,212,0.6); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--paper); }
.hero-map { position: absolute; inset: 0; background-size: cover; background-position: 58% 62%; filter: sepia(0.35) saturate(0.7) contrast(1.02); transform: scale(1.08); animation: drift 30s var(--ease) forwards; }
@keyframes drift { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 44% 56% at 50% 50%, rgba(235,228,212,0.96), rgba(235,228,212,0.82) 50%, rgba(235,228,212,0.25) 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding: 8rem 1.5rem 7rem; }
.hero-seal { width: clamp(130px, 12vw, 176px); margin: 0 auto 1.8rem; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.18)); }
.hero .mono { margin-bottom: 1.6rem; }
h1 { font-size: clamp(3.2rem, 7.6vw, 7.2rem); line-height: 0.94; margin-bottom: 2rem; }
.hero .lede { margin: 0 auto; }
.hero-links { display: flex; justify-content: center; gap: 0.9rem; margin-top: 2.4rem; }
.hero-cap { position: absolute; z-index: 1; bottom: 1.8rem; left: 0; right: 0; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 2; }
.facts > div { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 3rem 1rem; }
.facts > div + div { border-left: 1px solid var(--rule); }
.big { font-family: var(--display); font-weight: 800; font-size: clamp(2.8rem, 5vw, 4.6rem); letter-spacing: -0.05em; line-height: 1; }
.big em { font-style: normal; color: var(--red); }

/* ---------- Coverage map ---------- */
.coverage { padding-bottom: 7rem; }
.map-wrap { width: min(1440px, 100% - 3rem); margin: 4rem auto 0; }
.map-frame { padding: 10px; border: 1.5px solid var(--ink); background: var(--paper); box-shadow: 0 30px 60px -40px rgba(0,0,0,0.35); }
.map { position: relative; aspect-ratio: 1700 / 1000; outline: 1px solid var(--ink); overflow: hidden; background: #e8e0cd; }
.map .layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .relief { opacity: 1; mix-blend-mode: multiply; }

.grat line { stroke: var(--ink); stroke-width: 0.6; opacity: 0.14; stroke-dasharray: 2 5; }
.grat text { font: 500 11px var(--mono); fill: var(--lead); letter-spacing: 0.08em; opacity: 0.8; }

.route { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; opacity: 0.9;
  stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.6s var(--ease) var(--d), opacity 0.3s var(--ease), stroke-width 0.3s var(--ease); }
.route.long { stroke: var(--ink); stroke-width: 1.4; opacity: 0.55; }
.map.drawn .route { stroke-dashoffset: 0; }
.map.drawn .route.long { stroke-dasharray: 5 6; stroke-dashoffset: 0; }
.runner { fill: var(--red); opacity: 0; transition: opacity 0.6s var(--ease) 1.8s; }
.map.drawn .runner { opacity: 1; }

.city { cursor: default; }
.city .dot { fill: var(--paper); stroke: var(--red); stroke-width: 2.4; transition: r 0.25s var(--ease), fill 0.25s var(--ease); }
.city .pulse { fill: none; stroke: var(--red); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.map.drawn .city .pulse { animation: pulse 3s var(--ease) infinite; }
@keyframes pulse { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.city .islet { fill: var(--red); opacity: 0.75; }
.city .name { font: 700 19px var(--display); letter-spacing: -0.02em; fill: var(--ink); paint-order: stroke; stroke: rgba(232,224,205,0.92); stroke-width: 5px; stroke-linejoin: round; }
.city .coord { font: 500 10.5px var(--mono); letter-spacing: 0.08em; fill: var(--lead); paint-order: stroke; stroke: rgba(232,224,205,0.92); stroke-width: 4px; }
.city.hub .dot { fill: var(--ink); stroke: var(--ink); }
.city.hub .name { font-weight: 600; fill: var(--lead); }
.city.hub .pulse { display: none; }

.map.focusing .route { opacity: 0.15; }
.map.focusing .route.on { opacity: 1; stroke-width: 3.4; }
.map.focusing .city { opacity: 0.35; transition: opacity 0.25s var(--ease); }
.map.focusing .city.on { opacity: 1; }
.city.on .dot { fill: var(--red); }

.scalebar rect { fill: var(--ink); }
.scalebar rect.alt { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.scalebar text { font: 500 11px var(--mono); fill: var(--ink); letter-spacing: 0.06em; }

.compass { position: absolute; top: 4.5%; right: 2.6%; width: 54px; height: 54px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; background: rgba(235,228,212,0.7); }
.compass::before { content: ""; position: absolute; top: 7px; left: 50%; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 18px solid var(--red); transform: translateX(-50%); }
.compass span { font: 700 11px var(--mono); margin-top: 20px; }

.legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 2.4rem; margin-top: 1.4rem; }
.legend span { display: inline-flex; align-items: center; gap: 0.6rem; }
.lg-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--red); background: var(--paper); }
.lg-route { width: 28px; height: 2px; background: var(--red); }
.lg-long { width: 28px; height: 0; border-top: 1.5px dashed var(--ink); opacity: 0.7; }

.branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 4.5rem; text-align: center; }
.branch { border-top: 1.5px solid var(--ink); padding-top: 1.6rem; }
.branch h3 { font-size: 1.7rem; margin: 0.4rem 0 1rem; }
.branch ul { list-style: none; margin: 0; padding: 0; }
.branch li { padding: 0.35rem 0; color: var(--lead); cursor: default; transition: color 0.2s var(--ease); }
.branch li:hover, .branch li.on { color: var(--red); }

/* ---------- Statement ---------- */
.practice { padding-top: 6rem; }
.statement { font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 4rem); line-height: 1.04; letter-spacing: -0.04em; max-width: 1100px; margin: 0 auto 2rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3.6rem; }
.card { text-align: center; padding: 3.2rem 2.2rem 2.8rem; border: 1px solid var(--rule); border-radius: 4px; background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0)); transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.card:hover { border-color: rgba(179,38,30,0.5); transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(0,0,0,0.25); }
.icon { width: 56px; height: 56px; margin: 0 auto 1.6rem; display: block; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon .accent { stroke: var(--red); stroke-width: 2; }
.card h3 { font-size: 1.65rem; margin-bottom: 0.8rem; }
.card p { color: var(--lead); font-size: 0.97rem; }

/* ---------- Staff ---------- */
.staff-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 3.5rem; align-items: center; margin-top: 4rem; }
.train { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.train li { padding: 1.35rem 0; border-bottom: 1px solid var(--rule); font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 1rem; }
.train li .mono { color: var(--red); }
.train.left { text-align: right; }
.train.left li { flex-direction: row-reverse; }
.staff-emblem { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.staff-emblem img { width: 150px; }
.staff-emblem .ring { position: absolute; inset: 0; border: 1px dashed rgba(179,38,30,0.6); border-radius: 50%; animation: spin 60s linear infinite; }
.staff-emblem::before { content: ""; position: absolute; inset: -18px; border: 1px solid var(--rule); border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Dark band ---------- */
.dark { position: relative; background: var(--night); color: var(--chalk); text-align: center; overflow: hidden; }
.dark-map { position: absolute; inset: 0; background-size: cover; background-position: 50% 40%; filter: grayscale(1) invert(1) contrast(1.1); opacity: 0.16; mix-blend-mode: screen; }
.dark::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 45%, rgba(28,27,25,0.8), rgba(28,27,25,0.2)); }
.dark-inner { position: relative; z-index: 1; padding: 10rem 0 8rem; }
.dark .mono { color: rgba(239,233,220,0.65); margin-bottom: 1.6rem; }
.dark .mono b { color: #e0554c; }
.dark-quote { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 7.6vw, 7.2rem); line-height: 0.95; letter-spacing: -0.05em; }
.red-rule { display: block; width: 72px; height: 3px; background: #d2433a; margin: 2.8rem auto 4rem; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.trio > div { border-top: 1px solid rgba(239,233,220,0.3); padding-top: 1.3rem; }
.trio h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.trio p { color: rgba(239,233,220,0.66); font-size: 0.95rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.timeline::before { content: ""; position: absolute; top: 8px; left: 12.5%; right: 12.5%; height: 1px; background: var(--ink); opacity: 0.35; }
.timeline li { display: flex; flex-direction: column; align-items: center; position: relative; }
.node { width: 17px; height: 17px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--red); position: relative; margin-bottom: 1.6rem; }
.node::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform 0.6s var(--ease) 0.3s; }
.timeline li.in .node::after { transform: scale(1); }
.step { margin-bottom: 0.6rem; }
.timeline h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.timeline p { color: var(--lead); font-size: 0.95rem; max-width: 250px; }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--rule); padding: 9rem 0; background: var(--paper-2); }
.dispatch { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 9.5vw, 9rem); letter-spacing: -0.05em; line-height: 1; margin: 0.2rem 0 1.2rem; transition: color 0.25s var(--ease); }
.dispatch:hover { color: var(--red); }
.contact-row { display: flex; justify-content: center; gap: 4rem; margin: 3.5rem auto 0; padding-top: 2rem; border-top: 1px solid var(--rule); max-width: 700px; }
.contact-row div { display: flex; flex-direction: column; gap: 0.3rem; }
.contact-row a { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.025em; }
.contact-row a:hover { color: var(--red); }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 4rem 2rem; background: var(--paper-2); border-top: 3px solid var(--red); }
.footer-seal { width: 96px; margin: 0 auto; }
.footer-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; margin: 1rem 0 0.4rem; }
.credit { margin-top: 0.8rem; font-size: 0.62rem; opacity: 0.75; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .route { stroke-dashoffset: 0; transition: none; }
  .runner, .city .pulse, .staff-emblem .ring, .hero-map { animation: none; display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav a:not(.nav-cta) { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .cards, .timeline, .branches { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  .staff-grid { grid-template-columns: 1fr; gap: 2rem; }
  .staff-emblem { order: -1; margin: 0 auto; }
  .train.left { text-align: left; }
  .train.left li { flex-direction: row; }
  .city .coord { display: none; }
  .city .name { font-size: 24px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 3rem); }
  .header, .header.scrolled { padding-inline: 1.2rem; }
  .section { padding: 6rem 0; }
  .cards, .timeline, .branches, .trio { grid-template-columns: 1fr; }
  .contact-row { flex-direction: column; gap: 1.5rem; }
  .hero-links { flex-direction: column; align-items: center; }
  .map-wrap { width: calc(100% - 2rem); overflow: visible; }
  .map-frame { min-width: 0; padding: 5px; }
  .hero-cap { display: none; }
  .header { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
  .nav .nav-cta { padding: 0.65rem 1.05rem; font-size: 0.82rem; }
}

/* Phone map: whole province visible, larger labels, minor labels hidden */
@media (max-width: 680px) {
  .city .name { font-size: 44px; stroke-width: 9px; }
  .city .dot { r: 9; stroke-width: 4; }
  .city.hub .dot { r: 11; }
  .city[data-city="ladysmith"] .name, .city[data-city="sidney"] .name, .city[data-city="sooke"] .name,
  .city[data-city="gulf"] .name, .city[data-city="armstrong"] .name, .city[data-city="duncan"] .name,
  .city[data-city="ashcroft"] .name, .city[data-city="portalberni"] .name { display: none; }
  .route { stroke-width: 6; }
  .route.long { stroke-width: 3.5; }
  .map .scalebar, .map .grat text { display: none; }
}

/* Route weighting */
.route { stroke-width: 3; opacity: 0.95; }
.route.long { stroke: var(--red); stroke-width: 1.3; opacity: 0.45; }
.map.drawn .route.long { stroke-dasharray: 2 5; }
.runner.soft { fill: var(--red); opacity: 0; }
.map.drawn .runner.soft { opacity: 0.55; }
.city.hub .dot { r: 8; fill: var(--ink); stroke: var(--paper); stroke-width: 2.5; }
.city.hub .name { fill: var(--ink); font-weight: 700; }
.lg-route { height: 3px; }
.lg-long { border-top: 1.5px dotted var(--red); opacity: 0.7; }
.map.focusing .route.long.on { opacity: 0.9; stroke-width: 2; }
.route.long { stroke-width: 1.8; opacity: 0.75; }
.map.drawn .route.long { stroke-dasharray: 0.1 6; }
.map.drawn .runner.soft { opacity: 0.8; }

/* Dispatch directory */
.dispatch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3.8rem; align-items: start; }
.dbranch { border-top: 1.5px solid var(--ink); padding-top: 1.4rem; }
.dbranch > .mono { margin-bottom: 1rem; }
.dline { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); transition: color 0.25s var(--ease); }
.dline:last-child { border-bottom: 0; }
.dcity { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lead); }
.dnum { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 2.8vw, 2.5rem); letter-spacing: -0.04em; line-height: 1.1; }
.dline:hover .dnum { color: var(--red); }
@media (max-width: 1000px) { .dispatch-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.footer-contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.9rem; margin: 0.2rem 0 0.9rem; font-weight: 500; font-size: 0.95rem; }
.footer-contact span { color: var(--red); }
.footer-contact a:hover { color: var(--red); }

/* Years of service */
.facts { grid-template-columns: repeat(5, 1fr); }
.fact-key .big { color: var(--red); }
@media (max-width: 1000px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div { border-left: 0 !important; border-top: 1px solid var(--rule); }
  .facts > .fact-key { grid-column: 1 / -1; order: -1; border-top: 0; }
  .facts > div:nth-child(odd):not(.fact-key) { border-right: 1px solid var(--rule); }
}

/* Client types strip */
.names { padding: 2.6rem 0; text-align: center; border-bottom: 1px solid var(--rule); }
.names > .mono { margin-bottom: 1.2rem; }
.names-mask { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); }
.names-track { display: flex; align-items: center; gap: 2.4rem; width: max-content; animation: slide 50s linear infinite; }
.names-track span { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.025em; white-space: nowrap; opacity: 0.85; }
.names-track i { width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .names-track { animation: none; } }
.route.long { opacity: 0.55; }

/* ---------- Appendix content ---------- */
.history { list-style: none; margin: 4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.history::before { content: ""; position: absolute; top: 1.05rem; left: 12.5%; right: 12.5%; height: 1px; background: var(--ink); opacity: 0.3; }
.history li { position: relative; display: flex; flex-direction: column; align-items: center; }
.history .yr { position: relative; z-index: 1; background: var(--paper); padding: 0.2rem 0.8rem; border: 1.5px solid var(--red); border-radius: 999px; font: 500 0.78rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 1.2rem; }
.history h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.history p { color: var(--lead); font-size: 0.95rem; max-width: 250px; }
.aside { margin: 3.5rem auto 0; max-width: 680px; font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.4; padding-top: 2rem; border-top: 1px solid var(--rule); }

.card-tag { color: var(--red); margin-bottom: 0.6rem; }

.leader { display: flex; justify-content: center; align-items: center; gap: 2rem; margin: 4rem auto 1.6rem; padding: 2.2rem 1rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); max-width: 900px; }
.leader > div { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.leader .big { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.leader .big.red { color: var(--red); }
.leader .plus { font-family: var(--display); font-weight: 300; font-size: 2.4rem; color: var(--lead); }
.lede.small { font-size: 0.98rem; max-width: 560px; }

.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3.8rem; }
.spec { border-top: 1.5px solid var(--ink); padding-top: 1.6rem; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.spec .big small { font-size: 0.4em; letter-spacing: 0; margin-left: 0.15em; color: var(--lead); }
.spec p { color: var(--lead); font-size: 0.95rem; max-width: 300px; margin-top: 0.4rem; }
.fleet-list { list-style: none; padding: 0; margin: 3.5rem auto 0; max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; text-align: left; }
.fleet-list li { padding: 0.9rem 0 0.9rem 1.6rem; border-bottom: 1px solid var(--rule); position: relative; color: var(--ink); }
.fleet-list li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); }

.checklist-box { margin: 4rem auto 0; max-width: 760px; padding: 2rem 2.2rem; border: 1.5px solid var(--ink); background: rgba(255,255,255,0.25); }
.checklist-box > .mono { margin-bottom: 1rem; }
.checklist-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.8rem; }
.checklist-box li { font-weight: 500; }
.checklist-box li::before { content: "✓"; color: var(--red); margin-right: 0.5rem; font-weight: 700; }

.note blockquote { margin: 0 auto 2rem; max-width: 900px; }
.note blockquote p { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.35; letter-spacing: -0.025em; }
.sig { font: 500 0.8rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.6rem; }
.sig b { color: var(--red); }

@media (max-width: 1000px) {
  .history, .specs { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .history::before { display: none; }
  .leader { flex-direction: column; gap: 0.8rem; }
  .fleet-list { grid-template-columns: 1fr; }
}
@media (max-width: 680px) { .history, .specs { grid-template-columns: 1fr; } }
.map.drawn .route.ferry { stroke-dasharray: 6 5; stroke-width: 2.2; }

/* Personnel: schematic connectors */
#staff .staff-grid { gap: 0; }
#staff .em-c { position: relative; width: 340px; height: 300px; display: grid; place-items: center; }
#staff .em-c .conn { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#staff .em-c .conn path { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0.55; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.4s var(--ease) 0.3s; }
#staff .em-c.in .conn path { stroke-dashoffset: 0; }
#staff .em-c .core { position: relative; width: 170px; height: 170px; display: grid; place-items: center; }
#staff .em-c .core img { width: 150px; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15)); }
#staff .em-c .halo { position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--red); }
#staff .train { border-top: 0; }
#staff .train li { height: 90px; display: flex; align-items: center; padding: 0; border-bottom: 1px solid var(--rule); }
#staff .train li:first-child { border-top: 1px solid var(--rule); }
#staff .train.left li { padding-right: 1rem; }
#staff .train.right li { padding-left: 1rem; }
@media (max-width: 1000px) {
  #staff .em-c { order: -1; margin: 0 auto; width: 220px; height: 220px; }
  #staff .em-c .conn { display: none; }
  #staff .train li { height: auto; padding: 1rem 0; }
}

/* Services: engraved banknote (E9) */
.notes { gap: 1.4rem; }
.note { position: relative; overflow: hidden; background: #1f1d1a; color: #efe9dc; border-radius: 4px; text-align: center; padding: 3.2rem 2.2rem 2.8rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.note:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -26px rgba(0,0,0,.55); }
.note .cn { position: absolute; font: 800 1.5rem var(--display); letter-spacing: -.03em; color: #e0554c; }
.note .tl { left: 16px; top: 12px; }
.note .br { right: 16px; bottom: 10px; color: rgba(239,233,220,.25); }
.note .med { position: relative; width: 190px; height: 190px; margin: 0 auto 1.4rem; display: grid; place-items: center; }
.note .med .gui { position: absolute; inset: -20px; width: 230px; height: 230px; opacity: .45; }
.note .med .gui path { fill: none; stroke: #cfc3a8; stroke-width: .5; }
.note .ring { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.note:hover .ring { transform: rotate(-20deg); }
.note .ring circle { fill: none; stroke: #cfc3a8; stroke-width: .8; }
.note .ring circle:last-of-type { stroke: #e0554c; }
.note .ring text { font: 500 6.3px var(--mono); letter-spacing: .12em; fill: rgba(239,233,220,.8); }
.note .emb { position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: #1f1d1a; }
.note .ico { width: 44px; height: 44px; fill: none; stroke: #efe9dc; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.note .ico .ac { stroke: #e0554c; stroke-width: 2; }
.note .tag { color: #e0554c; margin-bottom: .6rem; }
.note h3 { font-size: 1.65rem; margin-bottom: .8rem; }
.note .txt { color: rgba(239,233,220,.72); font-size: .97rem; }
.note .med .gui { opacity: .65; }
.note .ring text { font-size: 7.56px; letter-spacing: 0; }

/* Services: four-card banknote grid */
.notes.four { grid-template-columns: repeat(2, 1fr); max-width: 1080px; margin-inline: auto; }
.notes.four .note { display: grid; grid-template-columns: 190px 1fr; gap: 2rem; align-items: center; text-align: left; padding: 3rem 2.6rem 2.6rem; }
.notes.four .note .med { margin: 0; }
.notes.four .note h3 { font-size: 1.6rem; }
.note .nlist { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid rgba(239,233,220,.15); }
.note .nlist li { position: relative; padding: .5rem 0 .5rem 1.1rem; font-size: .88rem; color: rgba(239,233,220,.85); border-bottom: 1px solid rgba(239,233,220,.1); }
.note .nlist li::before { content: ""; position: absolute; left: 0; top: 1rem; width: 5px; height: 5px; background: #e0554c; transform: rotate(45deg); }
.note .ico circle { fill: none; }
@media (max-width: 1000px) {
  .notes.four { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .notes.four .note { grid-template-columns: 1fr; text-align: center; }
  .notes.four .note .med { margin: 0 auto; }
  .note .nlist { text-align: left; }
}
.notes.four .note { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 3.2rem 2.6rem 2.8rem; }
.notes.four .note .med { margin: 0 auto 1.4rem; }
.notes.four .nbody { width: 100%; max-width: 440px; }
.note .nlist { text-align: left; max-width: 360px; margin: 1.2rem auto 0; }

/* Phone numbers: Inter Tight Light */
.dnum { font-weight: 300; font-size: clamp(1.6rem, 2.2vw, 1.9rem); letter-spacing: -0.01em; }
.contact-row a { font-weight: 300; letter-spacing: -0.01em; }

/* Phone refinements */
@media (max-width: 680px) {
  .section { padding: 4.5rem 0; }
  .compass { display: none; }
  #staff .train li, #staff .train.left li, #staff .train.right li { padding-left: 0; padding-right: 0; text-align: left; }
  #staff .train.right li:first-child { border-top: 0; }
  .note h3, .notes.four .note h3 { line-height: 1.1; }
}
@media (max-width: 680px) {
  .city[data-city="campbellriver"] .name { text-anchor: start; transform: translate(32px, 14px); }
  .city[data-city="parksville"] .name { display: none; }
}
@media (max-width: 680px) {
  .map.drawn .route.long { stroke-width: 7; stroke-dasharray: 0.1 16; stroke-linecap: round; }
  .runner { transform-box: fill-box; transform-origin: center; transform: scale(1.8); }
}

/* Head office leads the contact section */
.dhead { max-width: 460px; margin: 3.2rem auto 0; padding: 1.4rem 0 0; border-top: 1.5px solid var(--ink); }
.dhead .dnum { font-size: clamp(2rem, 3vw, 2.6rem); }
.dhead + .dispatch-grid { margin-top: 2.6rem; }

/* Services: one black-and-white photograph + four plain columns */
.svc-photo { margin: 3rem 0 0; aspect-ratio: 5 / 2; overflow: hidden; border-radius: 4px; background: #1f1d1a; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; filter: grayscale(1) contrast(1.05); }
.svc-list { list-style: none; margin: 2.8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.svc-list li { border-top: 1.5px solid var(--ink); padding-top: 1.3rem; }
.svc-list .mono { color: var(--red); }
.svc-list h3 { font-size: 1.25rem; margin: 0.5rem 0 0.4rem; }
.svc-list p { color: var(--lead); font-size: 0.95rem; margin: 0; }
@media (max-width: 1000px) { .svc-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .svc-list { grid-template-columns: 1fr; gap: 1.4rem; } .svc-photo { aspect-ratio: 4 / 3; } }

/* Region lists: one compact block, communities run inline */
.branches { margin-top: 2.6rem; gap: 1.6rem; grid-template-columns: repeat(3, 1fr) !important; }
.branch { padding-top: 1rem; }
.branch h3 { font-size: 1.15rem; margin: 0 0 0.45rem; }
.branch ul { line-height: 1.55; font-size: 0.88rem; }
.branch li { display: inline; padding: 0; }
.branch li + li::before { content: " · "; color: var(--rule); color: rgba(31,29,26,.35); }
@media (max-width: 680px) {
  .branches { gap: 0.9rem; margin-top: 2rem; }
  .branch h3 { font-size: 0.95rem; }
  .branch ul { font-size: 0.74rem; line-height: 1.5; }
}

/* Services list: compact 2 x 2 on phones */
@media (max-width: 680px) {
  .svc-photo { aspect-ratio: 5 / 2; margin-top: 2rem; }
  .svc-list { grid-template-columns: 1fr 1fr; gap: 1rem 0.9rem; margin-top: 1.6rem; }
  .svc-list li { padding-top: 0.8rem; }
  .svc-list .mono { font-size: 0.62rem; }
  .svc-list h3 { font-size: 0.98rem; margin: 0.25rem 0 0.25rem; }
  .svc-list p { font-size: 0.78rem; line-height: 1.45; }
}

/* Phones: tighter vertical rhythm between sections */
@media (max-width: 680px) {
  .section { padding: 3rem 0; }
  .contact { padding: 3rem 0; }
  .dark-inner { padding: 3.5rem 0 3rem; }
  .section h2, .contact h2 { margin-bottom: 0.6rem; }
  .label { margin-bottom: 0.6rem; }
  .map-wrap { margin-top: 1.8rem; }
  .legend { margin-top: 0.9rem; }
  .dhead { margin-top: 1.8rem; }
  .dhead + .dispatch-grid { margin-top: 1.4rem; }
  .dispatch-grid { gap: 1rem; }
  .dline { padding: 0.6rem 0; }
  .contact-row { margin-top: 1.6rem; padding-top: 1.2rem; }
  .trio { gap: 1.4rem; }
  .footer { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* Phone map labels: every destination named, positions hand-placed to avoid overlaps */
.city .name-m { display: none; font: 700 40px var(--display); letter-spacing: -0.02em; fill: var(--ink); paint-order: stroke; stroke: rgba(232,224,205,0.92); stroke-width: 8px; stroke-linejoin: round; }
.city.hub .name-m { fill: var(--ink); }
@media (max-width: 680px) {
  .city .name, .city[data-city] .name { display: none !important; }
  .city .name-m { display: inline; }
}

/* Standards band: black-and-white photograph behind the text */
.dark-photo { position: absolute; inset: 0; background-size: cover; background-position: 50% 60%; filter: grayscale(1) contrast(1.1) brightness(0.8); }
.dark:has(.dark-photo)::after { background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(20,19,18,0.55), rgba(20,19,18,0.3)); }

@media (max-width: 680px) { .dark-quote { font-size: 2.45rem; } }


/* Readability: darker secondary text */
:root { --lead: #47413a; }
.branch li { color: #4a443c; }
.hero .lede { color: #2f2b26; text-shadow: 0 0 18px rgba(235,228,212,0.95), 0 0 4px rgba(235,228,212,0.9); }
.hero .mono { color: #3d3832; }
.legend span { color: #4a443c; }

/* Phones: call head office button fixed at the bottom of the screen */
.call-fab { display: none; }
@media (max-width: 680px) {
  .call-fab { display: flex; align-items: center; justify-content: center; gap: 0.5rem; position: fixed; left: 1rem; right: 1rem; bottom: calc(0.9rem + env(safe-area-inset-bottom)); z-index: 60; height: 52px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; font-size: 1rem; box-shadow: 0 10px 24px -8px rgba(0,0,0,0.45); }
  .call-fab::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat; }
  .footer { padding-bottom: 6rem; }
}
@media (max-width: 680px) {
  .call-fab { opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.3s, transform 0.3s; }
  .call-fab.show { opacity: 1; transform: none; pointer-events: auto; }
}


