/* ExportAxis site. Two brand hues only: navy + electric blue. Tokens mirror _kit/tokens.css */

:root {
  --navy: #1B2B4B;
  --navy-900: #111C33;
  --navy-500: #3A4A6B;
  --navy-100: #E6EAF1;
  --blue: #0080FF;
  --blue-700: #0062C4;
  --blue-300: #66B3FF;
  --blue-100: #E0F0FF;
  --soft: #C9D1E0;
  --gradient: linear-gradient(45deg, #1B2B4B 0%, #0080FF 100%);
  --grid: linear-gradient(rgba(27,43,75,.05) 1px, transparent 1px) 0 0 / 40px 40px,
          linear-gradient(90deg, rgba(27,43,75,.05) 1px, transparent 1px) 0 0 / 40px 40px;
  --display: "Montserrat", "Futura", system-ui, sans-serif;
  --labelf: "Raleway", "Montserrat", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --radius: 6px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --pad: clamp(16px, 4vw, 40px);
  --header-h: 56px;
  --dwell: 4.2s;
  /* cursor: a rounded arrow, navy everywhere and electric blue over anything clickable */
  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cfilter id='s' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='1' stdDeviation='0.8' flood-opacity='0.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url%28%23s%29'%3E%3Cpath d='M5.5 5.5 19 11l-5.6 1.45a2 2 0 0 0-1.45 1.45L10.5 19.5z' fill='%23fff' stroke='%23fff' stroke-width='5' stroke-linejoin='round'/%3E%3Cpath d='M5.5 5.5 19 11l-5.6 1.45a2 2 0 0 0-1.45 1.45L10.5 19.5z' fill='%231B2B4B' stroke='%231B2B4B' stroke-width='2' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E") 6 6, auto;
  --cursor-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cfilter id='s' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeDropShadow dx='0' dy='1' stdDeviation='0.8' flood-opacity='0.35'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url%28%23s%29'%3E%3Cpath d='M5.5 5.5 19 11l-5.6 1.45a2 2 0 0 0-1.45 1.45L10.5 19.5z' fill='%23fff' stroke='%23fff' stroke-width='5' stroke-linejoin='round'/%3E%3Cpath d='M5.5 5.5 19 11l-5.6 1.45a2 2 0 0 0-1.45 1.45L10.5 19.5z' fill='%230062C4' stroke='%230062C4' stroke-width='2' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E") 6 6, pointer;   /* how long the hero reel stays on one site */
}

*, *::before, *::after { box-sizing: border-box; }
html { cursor: var(--cursor); }
a[href], button, summary, label, .job { cursor: var(--cursor-link); }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html.viewer-open { overflow: hidden; }
body {
  margin: 0; overflow-x: clip;
  font-family: var(--display); font-size: 1rem; line-height: 1.55;
  color: var(--navy); background: var(--grid), #fff;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.blue { color: var(--blue); }
.wrap { max-width: 1040px; margin-inline: auto; }

.label { font-family: var(--labelf); font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--navy-500); }
.h2 { font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; }
.no { font: 500 .75rem/1 var(--mono); letter-spacing: .08em; color: var(--blue-700); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7rem 1.1rem; border-radius: var(--radius);
  background: var(--navy); color: #fff; border: 1.5px solid var(--navy);
  font-weight: 700; font-size: .875rem; letter-spacing: .02em; text-decoration: none;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover { background: var(--blue-700); border-color: var(--blue-700); }
.btn--sm { padding: .4rem .8rem; font-size: .8125rem; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { color: #fff; }
.btn--blue { background: var(--blue-700); border-color: var(--blue-700); }
.btn--blue:hover { background: var(--navy); border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--blue-100); border-color: var(--blue-100); color: var(--navy); }
.btn--outline { background: transparent; border-color: #fff; color: #fff; }
.btn--outline:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* small square buttons: reel and viewer arrows, close */
.icon {
  width: 40px; height: 36px; display: inline-grid; place-items: center; padding: 0; cursor: var(--cursor-link);
  background: #fff; border: 1.5px solid var(--navy); border-radius: var(--radius);
  font-weight: 700; font-size: .9375rem; line-height: 1;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.icon:hover { background: var(--navy); color: #fff; }

/* the three window dots shared by the reel and the viewer */
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border: 1.5px solid var(--navy); border-radius: 50%; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; gap: 16px; padding: 0 max(var(--pad), calc((100% - 1040px) / 2));
  background: #fff; border-bottom: 1px solid var(--navy);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand img { height: 32px; width: auto; }
.brand__word { font-weight: 800; letter-spacing: .08em; font-size: .9375rem; }
.brand__word b { color: var(--blue-700); font-weight: 800; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 10px 10px; white-space: nowrap; text-decoration: none; border-radius: var(--radius);
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav a:hover { background: var(--navy); color: #fff; }

/* ---------- the route line (drawn by js/line.js) ---------- */
body { position: relative; }
.route { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; overflow: visible; }
.route__path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.route__geo { fill: none; stroke: none; }
.near-line, .near-line body { cursor: grab; }
.is-pulling, .is-pulling * { cursor: grabbing !important; user-select: none; }
.js [data-line] .blue { transition: color .4s var(--ease); }
.js [data-line]:not(.is-reached) .blue { color: inherit; }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 6vw, 72px) var(--pad) clamp(40px, 5vw, 64px); }
.hero .wrap { display: grid; gap: clamp(26px, 3vw, 36px); }
.hero__txt { display: grid; gap: 12px; justify-items: start; }
.hero__title { max-width: 17ch; font-weight: 800; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.04; letter-spacing: -.025em; }

/* ---------- hero reel: a browser frame that plays through the client sites ---------- */
.reel { display: grid; gap: 10px; min-width: 0; }
.reel__frame {
  display: block; overflow: hidden; text-decoration: none; background: #fff;
  border: 1.5px solid var(--navy); border-radius: var(--radius);
}
.reel__bar {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
  height: 34px; padding: 0 10px; border-bottom: 1.5px solid var(--navy);
  font: 500 .75rem/1 var(--mono);
}
.reel__url { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.is-typing .reel__url::after { content: ""; display: inline-block; width: 1.5px; height: .9em; margin-left: 1px; vertical-align: -.1em; background: var(--blue); }
.reel__open { font-family: var(--display); font-weight: 700; letter-spacing: .02em; color: var(--blue-700); }
.reel__progress {
  position: absolute; left: 0; right: 0; bottom: -1.5px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
}
.reel__progress.is-running { animation: reel-fill var(--dwell) linear forwards; }
.is-paused .reel__progress, .viewer-open .reel__progress { animation-play-state: paused; }
@keyframes reel-fill { to { transform: scaleX(1); } }

.reel__view { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-100); }
.reel__view img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.reel__view img.is-on { transform: none; }

.reel__cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; min-height: 44px; }
.reel__cap p { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; font-size: .9375rem; line-height: 1.3; }
.reel__cap b { font-weight: 800; }
.reel__meta { font-size: .8125rem; font-weight: 600; color: var(--navy-500); }
.reel__nav { display: flex; gap: 6px; }

/* buyer clock: one quiet mono line under the headline */
.clock { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 10px; font: 500 .8125rem/1.35 var(--mono); color: var(--navy-500); }
.clock b { font-weight: 700; color: var(--navy); }
.clock__dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.clock__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--blue); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .8; } 80%, 100% { transform: scale(1.4); opacity: 0; } }
.clock__roll { display: inline-block; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.clock__roll.is-out { transform: translateY(-60%); opacity: 0; }
.clock__roll.is-under { transform: translateY(60%); opacity: 0; transition: none; }

@media (min-width: 900px) {
  /* headline centred against the reel; the route line runs under the whole row */
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 44px; align-items: center; }
  .hero__title { max-width: none; font-size: clamp(2.125rem, 3.3vw, 2.625rem); }
}

/* ---------- sections ---------- */
.sec { padding: clamp(36px, 5.5vw, 72px) var(--pad); border-top: 1px solid var(--navy-100); }
.sec__head { display: grid; gap: 8px; margin-bottom: clamp(22px, 3vw, 34px); }

/* ---------- work ---------- */
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.job {
  display: grid; gap: 2px; height: 100%; align-content: start; padding-bottom: 10px; overflow: hidden;
  background: #fff; border: 1px solid var(--navy); border-radius: var(--radius); text-decoration: none;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.job__shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 8px; border-bottom: 1px solid var(--navy); background: var(--navy-100); }
.job__shot { position: relative; }
.job__shot img { width: 100%; }
/* measured Lighthouse mobile score, set from data-speed on the card */
.job__speed {
  position: absolute; top: 6px; right: 6px; z-index: 1;
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px;
  background: #fff; color: var(--navy); border: 1px solid var(--navy); border-radius: 4px;
  font: 600 .6875rem/1 var(--mono);
}
.job__speed b { color: var(--blue-700); font-weight: 700; }
/* the screenshot glides down the homepage and back; main.js sets the distance and the time */
.job.is-panning .job__shot img { animation: pan var(--pan-d, 8s) ease-in-out .25s infinite alternate; }
@keyframes pan { to { transform: translateY(var(--pan-y, 0)); } }
.job__name { padding: 0 10px; font-weight: 800; font-size: .875rem; line-height: 1.2; }
.job__meta { padding: 0 10px; font-size: .75rem; font-weight: 600; color: var(--navy-500); transition: color .15s var(--ease); }
.job:hover, .job:focus-visible { background: var(--navy); color: #fff; }
.job:hover .job__meta, .job:focus-visible .job__meta { color: var(--soft); }
.also { margin-top: 18px; max-width: 78ch; font-size: .8125rem; font-weight: 500; color: var(--navy-500); }
.also .label { margin-right: .6em; color: var(--blue-700); }

/* client review under the work */
.review { margin: 28px 0 0; padding: 14px 0 0 16px; border-left: 3px solid var(--blue); max-width: 62ch; }
.review blockquote { margin: 8px 0 0; }
.review blockquote p { font-size: 1.0625rem; font-weight: 600; line-height: 1.45; color: var(--navy); }
.review blockquote p::before { content: "“"; } .review blockquote p::after { content: "”"; }
.review figcaption { margin-top: 8px; font-size: .8125rem; color: var(--navy-500); }
.review figcaption b { color: var(--navy); }
.review__note { margin-top: 12px; font-size: .75rem; font-style: italic; color: var(--navy-500); }
@media (min-width: 860px) {
  .jobs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .job__name { font-size: .9375rem; }
}

/* ---------- services and process: numbered columns ---------- */
.cols { display: grid; gap: 18px 24px; }
.cols li { display: grid; gap: 6px; align-content: start; padding-top: 12px; border-top: 2px solid var(--navy); }
.cols h3 { font-size: 1.0625rem; font-weight: 800; line-height: 1.2; }
.cols p { font-size: .875rem; font-weight: 500; color: var(--navy-500); }
.cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) {
  .cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* process steps switch on as the route line passes over them (js/line.js adds .is-on) */
.js [data-line-step] { opacity: .32; transition: opacity .45s var(--ease), border-color .45s var(--ease); }
.js [data-line-step] .no { color: var(--navy-500); transition: color .45s var(--ease); }
.js [data-line-step].is-on { opacity: 1; border-top-color: var(--blue); }
.js [data-line-step].is-on .no { color: var(--blue-700); }

/* ---------- before / after ---------- */
.ba { display: grid; gap: 10px; max-width: 820px; margin-top: clamp(28px, 4vw, 44px); }
.ba__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ba__head b { font-weight: 800; font-size: 1.0625rem; }
.ba__frame { overflow: hidden; background: #fff; border: 1.5px solid var(--navy); border-radius: var(--radius); }
.ba__bar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; height: 34px; padding: 0 10px; border-bottom: 1.5px solid var(--navy); font: 500 .75rem/1 var(--mono); }
.ba__url { display: flex; gap: 6px; overflow: hidden; white-space: nowrap; }
.ba__old { color: var(--navy-500); text-decoration: line-through; text-decoration-color: rgba(58,74,107,.5); }
.ba__arrow { color: var(--blue-700); }
.ba__new { font-weight: 700; }
.ba__view { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; touch-action: pan-y; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ba__img--after { clip-path: inset(0 0 0 var(--pos)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px var(--navy); pointer-events: none; }
.ba__handle i {
  position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; transform: translate(-50%, -50%);
  display: grid; place-items: center; background: var(--navy); color: #fff; border: 2px solid #fff; border-radius: 50%;
  font-style: normal; font-weight: 700; font-size: .9375rem;
}
.ba__tag { position: absolute; top: 8px; padding: 3px 7px; background: var(--navy); color: #fff; border-radius: 4px; font: 600 .6875rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.ba__tag--before { left: 8px; }
.ba__tag--after { right: 8px; background: var(--blue-700); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__range:focus-visible + * , .ba__frame:has(.ba__range:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- price ---------- */
.price {
  justify-self: start; display: inline-flex; gap: 6px; align-items: baseline; margin-top: 4px; padding: 6px 10px;
  border: 1.5px solid var(--navy); border-radius: var(--radius); background: #fff;
  font: 500 .8125rem/1 var(--mono);
}
.price b { font-weight: 700; color: var(--blue-700); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; }
.about__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--navy); border-radius: var(--radius); background: var(--navy-100); }
.about__body { min-width: 0; }
@media (min-width: 860px) { .about { grid-template-columns: 168px minmax(0, 1fr); gap: 32px; } }
.about__txt { max-width: 56ch; font-size: .9375rem; font-weight: 500; }
.now { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 20px; }
.now__bar {
  display: inline-grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center;
  width: min(100%, 25rem); height: 34px; padding: 0 12px; background: #fff;
  border: 1.5px solid var(--navy); border-radius: var(--radius); font: 500 .75rem/1 var(--mono);
}
.now__txt { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.now__txt.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: .9em; margin-left: 1px; vertical-align: -.1em; background: var(--blue); }

/* ---------- contact: the one place the signature gradient appears ---------- */
.cta { padding: clamp(36px, 6vw, 72px) var(--pad); background: var(--gradient); color: #fff; }
.cta .wrap { display: grid; gap: 26px; }
.cta__title { font-weight: 800; font-size: clamp(1.75rem, 4vw, 2.625rem); line-height: 1.04; letter-spacing: -.025em; }
.cta__row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .btn { overflow-wrap: anywhere; }
.cta :focus-visible { outline-color: #fff; }

/* message builder */
.pick { display: grid; gap: 12px; max-width: 40rem; }
.pick__q { font-family: var(--labelf); font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.pick__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick__chips button {
  padding: .5rem .85rem; cursor: var(--cursor-link); background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.6); border-radius: var(--radius);
  font-weight: 600; font-size: .8125rem;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.pick__chips button:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.pick__chips button[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.pick__msg {
  padding: 10px 14px; background: rgba(17,28,51,.4); border-left: 2px solid #fff; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9375rem; font-weight: 500; transition: opacity .2s var(--ease);
}
.pick__msg.is-swap { opacity: .15; }

/* ---------- footer ---------- */
.foot { display: grid; gap: 8px; justify-items: start; padding: 28px max(var(--pad), calc((100% - 1040px) / 2)) 40px; background: var(--navy-900); color: #fff; font-size: .8125rem; }
.foot img { width: 180px; }
.foot__small { font-size: .75rem; color: var(--soft); }

/* ---------- homepage viewer ---------- */
.viewer {
  width: min(1100px, 94vw); height: 92dvh; max-width: none; max-height: none; padding: 0; overflow: hidden;
  background: #fff; color: var(--navy); border: 1.5px solid var(--navy); border-radius: var(--radius);
}
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: viewer-in .2s var(--ease); }
.viewer::backdrop { background: rgba(17, 28, 51, .74); }
@keyframes viewer-in { from { transform: translateY(12px); } }
.viewer__bar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 6px; align-items: center;
  padding: 6px 8px 6px 12px; border-bottom: 1.5px solid var(--navy);
}
.viewer__url { margin-left: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 .8125rem/1 var(--mono); }
.viewer__page { position: relative; overflow-y: auto; overscroll-behavior: contain; background: var(--navy-100); }
.viewer__page img { width: 100%; }
/* phone view on a wide screen: the page sits at phone width in the middle */
.viewer__page.is-phone img, .viewer__page.is-phone .viewer__end { width: min(390px, 100%); margin-inline: auto; }
.viewer__page.is-phone img { border-inline: 1.5px solid var(--navy); }

.seg { display: inline-flex; border: 1.5px solid var(--navy); border-radius: var(--radius); overflow: hidden; }
.seg button {
  display: inline-flex; align-items: center; gap: 6px; height: 33px; padding: 0 10px; cursor: var(--cursor-link);
  background: #fff; border: 0; font-weight: 600; font-size: .75rem;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.seg button + button { border-left: 1.5px solid var(--navy); }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.seg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

.viewer__quote { margin: 0; padding: 10px 14px; border-top: 1.5px solid var(--navy); background: var(--blue-100); }
.viewer__quote p { font-size: .875rem; font-weight: 600; }
.viewer__quote p::before { content: "“"; } .viewer__quote p::after { content: "”"; }
.viewer__quote cite { display: block; margin-top: 2px; font-style: normal; font-size: .75rem; color: var(--navy-500); }
.viewer__page.is-loading::before {
  content: "Loading homepage…"; display: block; padding: 40px 16px; text-align: center;
  font: 500 .75rem/1 var(--mono); letter-spacing: .08em; color: var(--navy-500);
}
.viewer__page.is-loading .viewer__end { display: none; }
.viewer__foot [data-viewer-wa] { justify-self: end; }
.viewer__end { padding: 18px 16px 22px; text-align: center; background: #fff; border-top: 1.5px solid var(--navy); font-size: .8125rem; font-weight: 600; }
.viewer__end a { color: var(--blue-700); }
.viewer__foot {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px; align-items: center;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1.5px solid var(--navy);
}

/* ---------- phone: most visitors arrive here ---------- */
@media (max-width: 720px) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .route__path { stroke-width: 3; }
  .viewer { width: 100vw; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .viewer__foot { grid-template-columns: auto auto minmax(0, 1fr); }
  .viewer__foot [data-viewer-live] { display: none; }
  .viewer__foot [data-viewer-wa] { justify-self: stretch; }   /* the end-of-page link does this job on phones */
  .seg span { display: none; }
  .seg button { padding: 0 9px; }
}

/* very small phones (320px): header brand and button share one row without spilling */
@media (max-width: 360px) {
  .top { gap: 10px; }
  .brand img { height: 26px; }
  .brand__word { font-size: .8125rem; letter-spacing: .06em; }
  .top .btn--sm { padding: .4rem .65rem; }
}

/* ---------- reveal (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .jobs li:nth-child(even)[data-reveal] { transition-delay: .08s; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-line-step] { opacity: 1; transform: none; }
}
