/* ============================================================
   THUNDER BAY DEVELOPERS · stylesheet
   Light paper monochrome, typography-led. Bricolage Grotesque for
   display, Schibsted Grotesk for body. The only accent is the red
   of the heart. Every hidden-until-animated state is gated on
   html.js so the page reads in full without JavaScript.
   ============================================================ */
:root{
  --paper:#FFFFFF;
  --ink:#141413;
  --ink-2:#55554F;
  --ink-3:#66665F;   /* labels and small text: 5.8:1 on the paper */
  --rule:#D8D8D2;
  --rule-strong:#86867F; /* form field underline: 3.7:1 on the paper (WCAG 1.4.11) */
  --red:#C1272D;
  --display:"Bricolage Grotesque","Bricolage Fallback","Archivo","Helvetica Neue",Arial,sans-serif;
  --display-xs:"Bricolage Grotesque","Bricolage Fallback XS","Archivo","Helvetica Neue",Arial,sans-serif;
  --display-m:"Bricolage Grotesque","Bricolage Fallback M","Archivo","Helvetica Neue",Arial,sans-serif;
  --display-l:"Bricolage Grotesque","Bricolage Fallback L","Archivo","Helvetica Neue",Arial,sans-serif;
  --body:"Schibsted Grotesk","Schibsted Fallback","Inter","Helvetica Neue",Arial,sans-serif;
  --label-font:"Schibsted Grotesk","Schibsted Label Fallback","Inter","Helvetica Neue",Arial,sans-serif;
  --gutter:clamp(20px,4.5vw,72px);
  --ease:cubic-bezier(.2,.7,.1,1);
}

/* Metric-matched local fallbacks (Arial scaled to the web fonts' width, ascent and
   descent, measured in Chrome against the served font files) so text set before the
   web fonts arrive occupies the same lines and the swap cannot reflow the page.
   Bricolage Grotesque carries an optical-size axis, so its width depends on the size it
   is set at: about 1.01 of Arial Bold at 28px, 1.00 at the phone headline sizes (36 to
   44px), 0.97 at 56px and 0.95 at 72 to 80px. Four fallback faces cover those tiers, and
   the display headings switch between them at the breakpoints where they grow (the web
   font itself never changes). Uppercase labels get their own fallback because Arial's
   capitals are wider, relative to Schibsted's, than its lowercase. */
@font-face{font-family:"Bricolage Fallback XS";src:local("Arial Bold"),local("Arial");font-weight:600 800;size-adjust:102.1%;ascent-override:91.09%;descent-override:26.44%;line-gap-override:0%}
@font-face{font-family:"Bricolage Fallback";src:local("Arial Bold"),local("Arial");font-weight:600 800;size-adjust:99.5%;ascent-override:93.47%;descent-override:27.14%;line-gap-override:0%}
@font-face{font-family:"Bricolage Fallback M";src:local("Arial Bold"),local("Arial");font-weight:600 800;size-adjust:97.3%;ascent-override:95.58%;descent-override:27.75%;line-gap-override:0%}
@font-face{font-family:"Bricolage Fallback L";src:local("Arial Bold"),local("Arial");font-weight:600 800;size-adjust:95%;ascent-override:97.89%;descent-override:28.42%;line-gap-override:0%}
@font-face{font-family:"Schibsted Fallback";src:local("Arial");font-weight:400;size-adjust:104.24%;ascent-override:94.01%;descent-override:24.94%;line-gap-override:0%}
@font-face{font-family:"Schibsted Fallback";src:local("Arial");font-weight:500;size-adjust:105.74%;ascent-override:92.68%;descent-override:24.59%;line-gap-override:0%}
@font-face{font-family:"Schibsted Fallback";src:local("Arial Bold"),local("Arial");font-weight:600 700;size-adjust:99.7%;ascent-override:98.29%;descent-override:26.08%;line-gap-override:0%}
@font-face{font-family:"Schibsted Label Fallback";src:local("Arial");font-weight:400 500;size-adjust:98.12%;ascent-override:99.88%;descent-override:26.5%;line-gap-override:0%}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--paper)}
/* Smooth in-page scrolling is switched on by script.js once the page has loaded,
   so a link that lands on /#contact or /#questions jumps straight there */
html.smooth{scroll-behavior:smooth}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--body);font-size:1rem;line-height:1.6;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
/* Copy protection, at the owner's request: page text cannot be selected, and images cannot be
   dragged out or long-pressed to save (boot.js blocks the right-click menu, copying and Ctrl+S
   and Ctrl+U). Form fields and the email address stay selectable, so visitors can still type
   and copy how to reach us. This deters casual copying only: a screenshot or the browser's
   developer tools still reach anything shown on a page, and search engines read it all. */
body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,select,[contenteditable],a[href^="mailto:"]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
img,canvas{-webkit-user-drag:none}
::selection{background:var(--ink);color:var(--paper)}
:focus-visible{outline:2px solid var(--ink);outline-offset:4px;border-radius:2px}

/* Layers: the dot field sits behind the page, click-through */
#field{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.site-head,main,.foot{position:relative;z-index:1}
/* Reduced motion: one still frame, in the hero only */
html.still #field{position:absolute;bottom:auto;height:100vh;height:100svh}

.skip{position:absolute;left:var(--gutter);top:-100px;z-index:100;background:var(--ink);color:var(--paper);padding:.6rem 1rem;font-size:.875rem;border-radius:999px}
.skip:focus{top:1rem}

/* ---------- Type roles ---------- */
.label{
  font-family:var(--label-font);font-size:.75rem;font-weight:500;
  letter-spacing:.16em;text-transform:uppercase;color:var(--ink-3);margin:0;
}
.display{font-family:var(--display);font-weight:800;letter-spacing:-.035em;line-height:.98;margin:0}
.copy{color:var(--ink-2);font-size:clamp(1rem,1.15vw,1.125rem);line-height:1.55;margin:0}
/* Line breaking: balanced headings, no orphans in body copy, and hyphenated
   words or short phrases that must not split across lines */
.display .ln>span{text-wrap:balance}
.nw{white-space:nowrap}
.copy,.hero-sub,.faq-item p,.ledger td,.how-steps li,.svc-points li{text-wrap:pretty}
.svc-title,.faq-item h3{text-wrap:balance}

/* Line-mask reveal: each line rises inside its own clipped box.
   The box carries a little room above and below for ascenders and descenders. */
.ln{display:block;overflow:hidden;padding:.06em .08em .16em 0;margin:-.06em 0 -.16em 0}
.ln>span{display:block}
html.js .rvl .ln>span{transform:translateY(112%);transition:transform 1.05s var(--ease)}
html.js .rvl.in .ln>span{transform:none}
html.js .rvl.in .ln:nth-child(2)>span{transition-delay:.09s}
html.js .rvl.in .ln:nth-child(3)>span{transition-delay:.18s}

/* Fade-and-rise reveal on scroll */
html.js .rv{opacity:0;transform:translateY(22px);transition:opacity 1s var(--ease),transform 1s var(--ease)}
html.js .rv.in{opacity:1;transform:none}
.rv.d1{transition-delay:.12s}
.rv.d2{transition-delay:.24s}
.rv.d3{transition-delay:.36s}

/* ---------- Header ---------- */
.site-head{
  position:absolute;top:0;left:0;right:0;z-index:3;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:clamp(18px,2.4vw,34px) var(--gutter);
}
.brand{display:inline-flex;align-items:center;min-height:44px}
.brand img{width:clamp(104px,9vw,136px);height:auto}
.site-nav{display:flex;align-items:center;gap:clamp(1.25rem,3vw,2.5rem)}
/* Vertical padding gives every link a 44px touch target; the underline keeps its 3px gap */
.nav-link{position:relative;display:inline-block;font-size:.9375rem;font-weight:500;padding:.65rem 0;white-space:nowrap}
.nav-link::after{content:"";position:absolute;left:0;bottom:calc(.65rem - 3px);height:1px;width:100%;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .55s var(--ease)}
.nav-link:focus-visible::after{transform:scaleX(1)}
.arrow{display:inline-block;margin-left:.45em;transition:transform .5s var(--ease)}

/* ---------- Hero ---------- */
/* Phones and tablets stack the headline, the live map, then the lead and tagline, so the
   map is on the first screen; wide screens give the map the right column (see below). */
.hero{
  position:relative;min-height:100vh;min-height:100svh;
  display:grid;grid-template-columns:minmax(0,1fr);align-content:start;
  padding:clamp(5.5rem,13vh,8.5rem) var(--gutter) clamp(22px,3.2vw,44px);
}
.hero-body{align-self:center;padding:clamp(1rem,3vh,2.5rem) 0 clamp(2rem,5vh,4rem)}
.eyebrow{margin:0 0 clamp(1.1rem,2.2vw,1.9rem);text-wrap:balance}
.hero-title{
  font-family:var(--display);font-weight:800;
  font-size:clamp(2.45rem,5.3vw,8rem);line-height:.94;letter-spacing:-.04em;
  margin:0;color:var(--ink);
}
.hero-title .ln>span{text-wrap:balance}

/* Opening choreography (JS only): the headline lines rise while the
   header, eyebrow, sub copy and CTA fade in; short fades keep the
   largest paint (the sub copy) early. The header and .rise fades are
   CSS animations inlined in the document head, so they start at first
   paint; only the headline mask waits for script.js and the font. */
html.js .hero-title .ln>span{transform:translateY(112%);transition:transform .7s var(--ease)}
html.js.type-in .hero-title .ln>span{transform:none}
html.js.type-in .hero-title .ln:nth-child(2)>span{transition-delay:.08s}

/* The tagline column takes the width it needs and sits at the right edge;
   the lead column gives way first so the tagline never breaks */
.hero-foot{display:grid;grid-template-columns:minmax(0,36rem) auto;justify-content:space-between;align-items:end;gap:2rem}
.hero-lead{display:grid;gap:1.6rem;justify-items:start}
.hero-sub{font-size:clamp(1rem,1.25vw,1.2rem);line-height:1.5;color:var(--ink-2);margin:0;max-width:36rem}
.hero-meta{display:flex;justify-content:flex-end;align-items:flex-end;gap:2.75rem}
.hero-meta .label{white-space:nowrap}
.cue{display:inline-flex;align-items:center;gap:.7rem;font-family:var(--label-font);font-size:.75rem;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-3)}
.cue-line{width:1px;height:38px;background:var(--ink-3);transform-origin:top;animation:cue 2.4s var(--ease) infinite}
@keyframes cue{
  0%{transform:scaleY(0);transform-origin:top}
  42%{transform:scaleY(1);transform-origin:top}
  58%{transform:scaleY(1);transform-origin:bottom}
  100%{transform:scaleY(0);transform-origin:bottom}
}

/* ---------- Hero map: Thunder Bay Transit's live buses (transit-map.js) ----------
   The stage's size comes from the layout alone (an aspect ratio when stacked, the grid
   row beside the headline on wide screens); the canvas fills it, so the map can never
   shift the page. Its edges fade into the paper, most at the far edge. Until the map is
   drawn, a faint picture of the streets and routes holds its place, breathing slowly
   (the skeleton), and fades out as the live map fades in. Without JavaScript, or if the
   map cannot load, the same picture stays at full strength instead. */
.tmap{position:relative;margin:0 0 clamp(2rem,6vw,3rem);display:grid;min-width:0}
.tmap-stage{position:relative;aspect-ratio:10/9}
.tmap-canvas{
  position:absolute;inset:0;width:100%;height:100%;display:block;
  opacity:0;transition:opacity .9s var(--ease);
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 20%,#000 90%,transparent 100%),linear-gradient(to right,transparent 0,#000 7%,#000 93%,transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(to bottom,transparent 0,#000 20%,#000 90%,transparent 100%),linear-gradient(to right,transparent 0,#000 7%,#000 93%,transparent 100%);
  mask-composite:intersect;
}
.tmap[data-state="live"] .tmap-canvas{opacity:1}
/* The live map can be turned by dragging: a grab hand on desktop; on touch screens the page
   keeps up-and-down swipes (and pinch zoom), so only a sideways swipe turns the city */
.tmap[data-state="live"] .tmap-stage{cursor:grab;touch-action:pan-y pinch-zoom;-webkit-user-select:none;user-select:none}
.tmap.is-turning .tmap-stage{cursor:grabbing}
.tmap-stage::before{
  content:"";position:absolute;inset:0;background:url(/transit/hero-still.webp?r=4) center/cover no-repeat;
  opacity:.5;transition:opacity .9s var(--ease);animation:tmap-skeleton 1.4s ease-in-out infinite alternate;
}
@keyframes tmap-skeleton{from{opacity:.3}to{opacity:.6}}
.tmap[data-state="live"] .tmap-stage::before{opacity:0;animation:none}
html:not(.js) .tmap-stage::before,.tmap[data-state="failed"] .tmap-stage::before{opacity:1;animation:none}
html:not(.js) .tmap-bar,.tmap[data-state="failed"] .tmap-bar{display:none}
/* The keyboard pause works only once the map is running */
.tmap:not([data-state="live"]) .tmap-bar{visibility:hidden}
.tmap-bar{position:absolute;top:0;left:0;z-index:1;display:flex;align-items:center}
/* The pause button stays off the page until it has keyboard focus */
.tmap-pause{
  width:32px;height:32px;padding:0;border:1px solid var(--ink);border-radius:999px;background:var(--paper);cursor:pointer;
  display:inline-grid;place-items:center;
}
.tmap-pause:not(:focus-visible){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);border:0}
.tmap-pause span{display:block;width:8px;height:10px;border-left:2px solid var(--ink);border-right:2px solid var(--ink)}
.tmap-pause[aria-pressed="true"] span{width:0;height:0;border-style:solid;border-width:5px 0 5px 8px;border-color:transparent transparent transparent var(--ink);margin-left:2px}
/* The tag in the map's empty top corner says what it is at a glance: live buses (a red dot
   that blinks), or late at night the routes with no buses out. It stays hidden until the
   first reading of the feed, and whenever the feed is down. */
.tmap-live{
  display:none;align-items:center;gap:.6rem;margin:0;white-space:nowrap;
  font-family:var(--label-font);font-size:.75rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-2);
}
.tmap[data-live] .tmap-live{display:flex}
.tmap-live-on,.tmap-live-none{display:none}
.tmap[data-live="on"] .tmap-live-on,.tmap[data-live="none"] .tmap-live-none{display:inline}
.tmap-live b{font-weight:600;color:var(--ink)}
.tmap-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--ink-3)}
.tmap[data-live="on"] .tmap-dot{background:var(--red);animation:tmap-blink 1.6s ease-in-out infinite}
@keyframes tmap-blink{50%{opacity:.3}}
/* The description and the data credit are for screen readers; the credit also sits in the footer */
.tmap-cap{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (min-width:600px) and (max-width:960px){.tmap-stage{aspect-ratio:4/3}}

/* Wide screens: the map fills the right of the hero, beside the headline and lead, with
   the tagline row running beneath both. The headline steps down to fit its column and
   stays the largest type on the page. Portrait tablets keep the stacked layout. */
@media (min-width:961px) and (orientation:landscape){
  .hero{
    grid-template-columns:minmax(0,1fr) minmax(0,.92fr);grid-template-rows:1fr auto .55fr auto;
    grid-template-areas:"body map" "lead map" ". map" "meta meta";column-gap:clamp(2rem,4vw,5rem);
  }
  .hero-foot{display:contents}
  .hero-body{grid-area:body;align-self:end}
  .hero-lead{grid-area:lead;align-self:start}
  .hero-meta{grid-area:meta;margin-top:clamp(.75rem,2vh,1.5rem)}
  .tmap{grid-area:map;margin:0;grid-template-rows:minmax(0,1fr);min-height:24rem}
  .tmap-stage{aspect-ratio:auto}
  .hero-title{font-size:clamp(2.45rem,4.4vw,7.2rem)}
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.8rem;
  background:var(--ink);color:var(--paper);border:1px solid var(--ink);
  padding:1rem 1.6rem;font:inherit;font-weight:500;font-size:1rem;line-height:1;
  cursor:pointer;border-radius:999px;
  transition:transform .5s var(--ease),background .3s,opacity .3s;
}
.btn .arrow{margin-left:0}
.btn:active{transform:scale(.97)}
.btn[aria-busy="true"]{opacity:.75;cursor:progress}

/* ---------- Statement ---------- */
/* Section headings stay below the hero's 5.3vw so the headline is the largest type on the page */
.statement{padding:clamp(7rem,16vw,15rem) var(--gutter) clamp(5rem,11vw,10rem)}
.statement-inner{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:0 clamp(1rem,2vw,2rem)}
.statement-inner .label{grid-column:1/-1;margin-bottom:clamp(1.5rem,3vw,2.5rem)}
.statement-title{grid-column:1/8;align-self:start;font-size:clamp(2.25rem,5vw,5.5rem);max-width:10.5em}
.statement-copy{grid-column:8/13;align-self:start;max-width:34rem}
/* The ledger runs the full width under the heading and paragraph: where an
   owner's hours go today, and what runs on its own once it is built. One line
   per row on wide screens, same hairline idiom as the services list. */
.ledger{
  grid-column:1/-1;margin-top:clamp(3rem,6vw,5.5rem);
  width:100%;max-width:none;border-collapse:collapse;
  font-size:clamp(.95rem,1.05vw,1.05rem);line-height:1.45;
}
.ledger th{
  font-family:var(--label-font);font-size:.75rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-3,#6B6B65);
  text-align:left;padding:0 1.25rem .9rem 0;border-bottom:1px solid var(--ink,#141413);vertical-align:bottom;
}
.ledger td{padding:1rem 1.25rem 1rem 0;border-bottom:1px solid var(--rule);vertical-align:top;color:var(--ink-2,#55554F)}
.ledger td:first-child{color:var(--ink,#141413);font-weight:500;width:38%}
.ledger th:last-child,.ledger td:last-child{padding-right:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- Services: a table of contents with hairlines ---------- */
.services{padding:clamp(3rem,7vw,6rem) var(--gutter) clamp(6rem,12vw,11rem)}
.services-head{display:grid;gap:clamp(1.25rem,2.5vw,2rem);border-bottom:1px solid var(--ink);padding-bottom:clamp(1.5rem,3vw,2.5rem)}
.services-title{font-size:clamp(2rem,4.6vw,5rem);max-width:none}
.svc-list{list-style:none;margin:0;padding:0}
.svc{
  display:grid;grid-template-columns:3.5rem minmax(0,6fr) minmax(0,5fr);
  gap:1.25rem clamp(1.25rem,3vw,3rem);align-items:start;
  padding:clamp(1.75rem,3.6vw,3.25rem) 0;border-bottom:1px solid var(--rule);
  transition:border-color .5s;
}
.svc-num{padding-top:.6em}
.svc-title{
  position:relative;font-family:var(--display-xs);font-weight:800;
  font-size:clamp(1.75rem,3.4vw,3.5rem);line-height:1;letter-spacing:-.03em;margin:0;
  transition:transform .65s var(--ease);
}
.svc-title::before{
  content:"";position:absolute;left:-.62em;top:.42em;width:.2em;height:.2em;border-radius:50%;
  background:var(--red);transform:scale(0);transition:transform .5s var(--ease);
}
.svc-body{display:grid;gap:1.25rem;padding-top:.35em}
.svc .copy{max-width:32rem;transition:color .5s}
.svc-points{list-style:none;margin:0;padding:0;max-width:none}
.svc-points li{padding:.55rem 0;border-top:1px solid var(--rule);font-size:.9375rem;line-height:1.45;color:var(--ink-2)}
.svc-foot{display:grid;grid-template-columns:3.5rem minmax(0,6fr) minmax(0,5fr);gap:0 clamp(1.25rem,3vw,3rem)}
.svc-aside{grid-column:3;margin-top:clamp(1.5rem,3vw,2.5rem);max-width:32rem;font-size:.9375rem}
/* Links from each service to its own page: a text underline, so a label that wraps to two
   lines on a phone is underlined on both; the vertical padding makes a 44px touch target
   and the arrow, an inline-block, stays clear of the line */
.svc-more{justify-self:start;display:inline-block;padding:.7rem 0;font-weight:500;font-size:.9375rem;line-height:1.45;color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;text-decoration-color:color-mix(in srgb,currentColor 55%,transparent);transition:text-decoration-color .3s var(--ease)}
.svc-more:focus-visible{text-decoration-color:currentColor}
.svc-region{margin-top:.5rem}
.svc-region .svc-more{display:inline-block}

/* ---------- Work: our own app, then a few websites ----------
   Set out like the services: an ink rule under the heading, hairlines between the parts.
   The screenshots load lazily with their sizes given, so nothing moves as they arrive. */
.work{padding:clamp(5rem,10vw,9rem) var(--gutter) clamp(6rem,12vw,11rem)}
.work-head{display:grid;gap:clamp(1.25rem,2.5vw,2rem);border-bottom:1px solid var(--ink);padding-bottom:clamp(1.5rem,3vw,2.5rem)}
.work-title{font-size:clamp(2rem,4.6vw,5rem);max-width:none}
.work-feature{
  display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(1.5rem,4vw,4rem);align-items:center;
  padding:clamp(2rem,4vw,3.5rem) 0;border-bottom:1px solid var(--rule);
}
.work-shot{display:block}
.work-shot img,.work-sites img{width:100%;height:auto;border:1px solid var(--rule);background:#fff}
.work-body{display:grid;gap:1rem;justify-items:start;max-width:32rem}
.work-name{font-family:var(--display-xs);font-weight:800;font-size:clamp(1.75rem,3.4vw,3.5rem);line-height:1;letter-spacing:-.03em;margin:0}
.work-body .btn{margin-top:.5rem}
.work-meta{margin:-.25rem 0 0;font-size:.8125rem;line-height:1.5;color:var(--ink-3)}
.work-meta a{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;padding:.8rem 0}
.work-fun{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:clamp(1.5rem,4vw,4rem);padding-top:clamp(2rem,4vw,3.5rem)}
.work-fun-head{display:grid;gap:.9rem;align-content:start}
.work-fun-head .copy{max-width:22rem;font-size:.9375rem}
.work-sites{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1.5rem,3vw,2.5rem) clamp(1.25rem,2.5vw,2rem)}
.work-sites a{display:grid;gap:.25rem}
.work-sites img{aspect-ratio:16/10;object-fit:cover;object-position:top;margin-bottom:.6rem}
.work-site-name{font-weight:500;font-size:1rem;line-height:1.3;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;text-decoration-color:transparent;transition:text-decoration-color .3s var(--ease)}
.work-site-kind{font-size:.875rem;line-height:1.45;color:var(--ink-3)}
.work-sites a:focus-visible .work-site-name{text-decoration-color:currentColor}
@media (hover:hover) and (pointer:fine){
  .work-sites a:hover .work-site-name{text-decoration-color:currentColor}
  .work-shot img,.work-sites img{transition:border-color .3s}
  .work-shot:hover img,.work-sites a:hover img{border-color:var(--ink-3)}
}
/* "And much more": the line that sends visitors on to the services page */
.work-more{
  display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:clamp(1.25rem,4vw,4rem);align-items:end;
  margin-top:clamp(3.5rem,7vw,6rem);padding-top:clamp(1.5rem,3vw,2.5rem);border-top:1px solid var(--ink);
}
.work-more-title{font-size:clamp(2rem,4.6vw,5rem);max-width:none}
.work-more-body{display:grid;gap:.75rem;justify-items:start;max-width:36rem}
@media (max-width:960px){.work-feature,.work-fun,.work-more{grid-template-columns:1fr}}
@media (max-width:560px){.work-sites{grid-template-columns:1fr}}

/* ---------- Pulse (the heart stage) ---------- */
.pulse{position:relative;min-height:200vh;min-height:200svh}
.pulse-stage{
  position:sticky;top:0;height:100vh;height:100svh;
  display:grid;align-content:end;
  padding:0 var(--gutter) clamp(2.5rem,6vh,5rem);
}
.pulse-copy{max-width:32rem}
.pulse-copy .label{display:block;margin-bottom:1.25rem}
.pulse-title{font-size:clamp(2.25rem,4.8vw,5rem);margin-bottom:1.25rem}
/* No heart without JavaScript or with reduced motion, so no 200vh stage either:
   the copy simply sits in the flow like every other section */
html:not(.js) .pulse,html.still .pulse{min-height:0}
html:not(.js) .pulse-stage,html.still .pulse-stage{position:static;height:auto;padding-top:clamp(4rem,9vw,8rem)}

/* ---------- Questions ---------- */
.faq{padding:clamp(4rem,9vw,8rem) var(--gutter) clamp(6rem,12vw,11rem);border-top:1px solid var(--rule)}
.faq-grid{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:2.5rem clamp(2rem,6vw,7rem);align-items:start}
.faq-intro{position:sticky;top:clamp(2rem,8vh,5rem)}
.faq-title{font-size:clamp(2.25rem,5vw,5rem);margin-top:1.25rem}
.faq-list{border-top:1px solid var(--ink)}
.faq-item{border-bottom:1px solid var(--rule)}
.faq-item summary{
  display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem;
  padding:1.3rem 0;cursor:pointer;list-style:none;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary:focus-visible{outline-offset:2px}
.faq-item h3{font-family:var(--display);font-weight:700;font-size:clamp(1.2rem,1.8vw,1.7rem);letter-spacing:-.02em;line-height:1.15;margin:0}
.faq-mark{position:relative;flex:0 0 auto;width:.9rem;height:.9rem;margin-top:.35em}
.faq-mark::before,.faq-mark::after{content:"";position:absolute;left:0;top:50%;width:100%;height:1px;background:var(--ink);transition:transform .4s var(--ease)}
.faq-mark::after{transform:rotate(90deg)}
.faq-item[open] .faq-mark::after{transform:rotate(0)}
/* Answers share the copy size and a 36rem measure (about 65 to 72 characters a line) */
.faq-item p{margin:0;padding:0 0 1.6rem;max-width:36rem;color:var(--ink-2);font-size:clamp(1rem,1.15vw,1.125rem);line-height:1.6}
/* In-answer links to the service pages and guides: underlined in ink, with a 44px touch
   height from inline padding, which does not move the lines around them */
.faq-item p a{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;padding:.8rem 0}
html.js .faq-item[open] p{animation:faq-in .5s var(--ease)}
@keyframes faq-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

/* ---------- Contact ---------- */
.contact{padding:clamp(3rem,7vw,6rem) var(--gutter) clamp(5rem,10vw,9rem);border-top:1px solid var(--rule)}
/* The section takes focus (tabindex -1) when the consultation link lands on it with a
   touch or keyboard, so the next Tab continues inside it; the section itself shows no ring */
#contact:focus{outline:none}
.contact-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:3.5rem clamp(3rem,8vw,9rem);align-items:start}
.contact-title{font-size:clamp(2.25rem,5vw,5rem);margin:1.25rem 0 1.25rem}
.contact-lines{margin:2rem 0 0}
.contact-lines a{display:inline-block;font-family:var(--display);font-weight:600;font-size:clamp(1.2rem,1.7vw,1.6rem);letter-spacing:-.02em;line-height:1.3;padding:.6rem 0;position:relative;overflow-wrap:anywhere}
.contact-lines a::after{content:"";position:absolute;left:0;bottom:calc(.6rem - 2px);width:100%;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .55s var(--ease)}
.contact-lines a:focus-visible::after{transform:scaleX(1)}
.how{margin:3rem 0 0;border-top:1px solid var(--rule)}
.how .label{display:block;font-weight:500;padding:1rem 0 .25rem}
.how-steps{list-style:none;padding:0;margin:0;counter-reset:step}
.how-steps li{display:grid;grid-template-columns:2rem 1fr;gap:1rem;padding:.85rem 0;border-bottom:1px solid var(--rule);color:var(--ink-2);font-size:.9375rem;line-height:1.5}
.how-steps li::before{counter-increment:step;content:counter(step,decimal-leading-zero);font-size:.75rem;letter-spacing:.16em;color:var(--ink-3);padding-top:.2rem}

.form{display:grid;gap:1.75rem;align-content:start}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.75rem clamp(1.5rem,3vw,2.5rem);align-items:start}
.field{display:grid;gap:.35rem;align-content:start}
.field label{font-family:var(--label-font);font-size:.75rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-3)}
/* Fields keep the site-wide 2px focus ring (from :focus-visible) as well as the darker underline */
.field input,.field textarea{
  width:100%;border:0;border-bottom:1px solid var(--rule-strong);border-radius:0;background:transparent;
  font:inherit;font-size:clamp(1.0625rem,1.3vw,1.25rem);line-height:1.4;color:var(--ink);
  padding:.55rem 0 .75rem;box-shadow:0 0 0 0 var(--ink);
  transition:border-color .3s,box-shadow .3s;resize:vertical;
}
.field textarea{min-height:5.5rem}
.field input:focus,.field textarea:focus{border-bottom-color:var(--ink);box-shadow:0 1px 0 0 var(--ink)}
.field.invalid input,.field.invalid textarea{border-bottom-color:var(--red);box-shadow:0 1px 0 0 var(--red)}
.field-err{margin:0;font-size:.8125rem;line-height:1.4;color:var(--red)}
.field-err[hidden]{display:none}
.form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1.25rem 2rem;padding-top:.5rem}
.form-status{margin:0;font-size:.9375rem;color:var(--ink-2);min-height:1.4em;max-width:30rem}
.form-status.ok{color:var(--ink)}
.form-status.err{color:var(--red)}
.form-note{margin:0;font-size:.9375rem;color:var(--ink-2)}
.form-note a{text-decoration:underline;text-underline-offset:3px}
/* One quiet line under the form: what the details are for, and the privacy page */
.form-privacy{margin:-.75rem 0 0;font-size:.8125rem;line-height:1.5;color:var(--ink-3);max-width:30rem}
.form-privacy a{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;padding:.9rem 0}

/* ---------- Footer ---------- */
.foot{
  padding:2.5rem var(--gutter) 2.75rem;border-top:1px solid var(--rule);
  display:grid;grid-template-columns:auto 1fr;gap:1.25rem 3rem;align-items:center;
  font-size:.875rem;color:var(--ink-2);
}
.foot-brand{display:inline-flex;align-items:center;min-height:44px}
.foot-brand img{width:72px}
.foot-line{margin:0;max-width:54rem}
/* Roots credit: the Print Pros Plus mark in ink, one line of copy, one link.
   The hairline runs the full width like the rows around it; on wider screens the
   mark shares the brand's column and the copy starts on the line above's x. */
.foot-roots{grid-column:1/-1;display:flex;align-items:center;gap:1.25rem;margin:0;padding-top:1.25rem;border-top:1px solid var(--rule);max-width:none;color:var(--ink-2)}
.foot-roots>span{max-width:54rem}
@media (min-width:761px){.foot-roots{display:grid;grid-template-columns:subgrid;column-gap:3rem}}
.foot-roots-mark{display:inline-flex;flex:none;align-items:center;min-height:44px}
.foot-roots-mark img{width:auto;height:46px;opacity:.9}
/* Inline links take their 44px touch height from vertical padding, which on an inline
   element does not move the lines around it */
.foot-roots span a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;padding:.85rem 0}
.foot-row{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 2rem;padding-top:1.25rem;border-top:1px solid var(--rule)}
.foot-row a{position:relative;padding:.75rem 0}
.foot-row a::after{content:"";position:absolute;left:0;bottom:calc(.75rem - 2px);width:100%;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .5s var(--ease)}
.foot-row a:focus-visible::after{transform:scaleX(1)}
/* The credit the City's open data licence asks for, under the live bus map's page */
.foot-credit{grid-column:1/-1;margin:0;max-width:54rem;font-size:.75rem;line-height:1.5;color:var(--ink-3)}
.foot-credit a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}

/* ---------- Hover: only for pointers that can hover, so a tap never leaves a
   row shifted or an underline stuck on a phone ---------- */
@media (hover:hover) and (pointer:fine){
  .nav-link:hover::after,.contact-lines a:hover::after,.foot-row a:hover::after{transform:scaleX(1)}
  .svc-more:hover{text-decoration-color:currentColor}
  .svc-more:hover .arrow{transform:translateX(4px)}
  .faq-item p a:hover,.form-privacy a:hover{text-decoration-thickness:2px}
  .nav-cta:hover .arrow,.btn:hover .arrow{transform:translateX(4px)}
  .btn:hover{background:#000}
  .svc:hover{border-bottom-color:var(--ink)}
  .svc:hover .svc-title{transform:translateX(.6em)}
  .svc:hover .svc-title::before{transform:scale(1)}
  .svc:hover .copy{color:var(--ink)}
}

/* ---------- Responsive ---------- */
@media (max-width:960px){
  .svc{grid-template-columns:2.5rem 1fr;gap:.9rem 1rem}
  .svc-body{grid-column:2}
  .svc-foot{grid-template-columns:2.5rem 1fr;column-gap:1rem}
  .svc-aside{grid-column:2}
  .contact-grid{grid-template-columns:1fr}
  .faq-grid{grid-template-columns:1fr}
  .faq-intro{position:static}
  .statement-title{grid-column:1/-1}
  .statement-copy{grid-column:5/13;margin-top:clamp(2rem,4vw,3rem)}
  .ledger td:first-child{width:42%}
}
@media (max-width:900px){
  .hero-foot{grid-template-columns:1fr;gap:1.5rem}
  .hero-meta{justify-content:space-between}
}
@media (max-width:760px){
  .hero{padding-top:clamp(5rem,12vh,6.5rem)}
  .hero-body{padding-bottom:clamp(1.5rem,4vh,2.5rem)}
  /* Phones keep all three links: Services is its own page now, and the FAQ stays one tap away */
  .site-nav{gap:1.1rem}
  .nav-link{font-size:.875rem;padding:.7rem 0}
  .nav-link::after{bottom:calc(.7rem - 3px)}
  .statement-copy{grid-column:1/-1;max-width:34rem}
  .ledger{order:2;margin-top:clamp(2rem,6vw,3rem)}
  /* Phones: the ledger restacks as one block per row, today's cost above what replaces it.
     The column headings stay for screen readers; role attributes keep the table semantics. */
  .ledger{border-top:1px solid var(--ink)}
  .ledger thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .ledger,.ledger tbody,.ledger tr,.ledger td{display:block}
  .ledger tr{padding:1rem 0;border-bottom:1px solid var(--rule)}
  .ledger td,.ledger td:first-child{width:auto;border:0;padding:0}
  .ledger td:first-child{margin-bottom:.35rem}
  .ledger td:last-child::before{content:"\2192\00a0";content:"\2192\00a0" / "";color:var(--ink-3)}
  .pulse-stage{align-content:start;padding-top:clamp(3.5rem,8vh,5rem)}
  .form-row{grid-template-columns:1fr}
  .foot{grid-template-columns:1fr}
}
/* Landscape phones: a narrower copy column leaves the right of the stage to the heart,
   and the copy starts higher so the longer column still fits the short screen */
@media (orientation:landscape) and (max-height:500px){
  .pulse-copy{max-width:min(32rem,56vw)}
  .pulse-stage{padding-top:1.25rem}
}
/* The narrowest phones (320px): the decorative scroll cue gives way so the
   tagline keeps its single line without pushing the page sideways */
@media (max-width:359px){.hero-meta .cue{display:none}}
/* Tablet portrait: the headline keeps its place as the largest type on the page */
@media (min-width:600px) and (max-width:1100px) and (orientation:portrait){.hero-title{font-size:clamp(2.45rem,8.4vw,5.5rem);font-family:var(--display-l)}}
/* Fallback faces for the sizes the display headings reach on wide screens (see the
   @font-face notes); the web font is the same at every width */
@media (min-width:961px){
  .hero-title,.statement-title,.services-title,.work-title,.pulse-title,.faq-title,.contact-title{font-family:var(--display-l)}
  .svc-title,.work-name{font-family:var(--display-m)}
}
/* Beside the map the headline is set at 4.4vw: about 42 to 70px up to 1599px wide */
@media (min-width:961px) and (max-width:1199px) and (orientation:landscape){.hero-title{font-family:var(--display)}}
@media (min-width:1200px) and (max-width:1599px) and (orientation:landscape){.hero-title{font-family:var(--display-m)}}
/* Windows high contrast: the FAQ plus and minus are drawn with backgrounds, which forced colours remove */
@media (forced-colors:active){.faq-mark::before,.faq-mark::after{background:CanvasText;forced-color-adjust:none}}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  html,html.smooth{scroll-behavior:auto}
  .cue-line{animation:none;transform:none}
  .tmap[data-live="on"] .tmap-dot,.tmap-stage::before{animation:none}
  html.js .rv,html.js .site-head,html.js .rise{opacity:1;transform:none;transition:none}
  html.js .site-head,html.js .rise{animation:none}
  html.js .rvl .ln>span,html.js .hero-title .ln>span{transform:none;transition:none}
  .svc-title,.btn,.arrow,.faq-mark::before,.faq-mark::after,.tmap-canvas{transition:none}
  .nav-link::after,.svc,.svc .copy,.svc-title::before,.contact-lines a::after,.foot-row a::after,.svc-more{transition:none}
  html.js .faq-item[open] p{animation:none}
  /* No heart is drawn, so the pulse copy sits in the flow instead of on a 200vh stage */
  .pulse{min-height:0}
  .pulse-stage{position:static;height:auto;padding-top:clamp(4rem,9vw,8rem)}
}

/* Renderers with an extremely tall viewport (search engine snapshots) never scroll,
   so the scroll reveals would never fire: show the same content at rest. No real
   screen is 5000 CSS px tall, so visitors see no change. */
@media (min-height:5000px){
  html.js .rv{opacity:1;transform:none;transition:none}
  html.js .rvl .ln>span,html.js .hero-title .ln>span{transform:none;transition:none}
}
