/* Shared StreetHello foundation and calculator styles. */
:root {
  --ink: #12352e;
  --ink-deep: #09251f;
  --ink-soft: #49635d;
  --paper: #f4eddd;
  --paper-light: #fffdf7;
  --paper-deep: #ded4c0;
  --coral: #e76142;
  --coral-dark: #9d301f;
  --coral-pale: #f4d2c6;
  --line: #b9b19f;
  --white: #ffffff;
  --art-green: #173f35;
  --art-green-deep: #0f3029;
  --art-mint: #d9eadf;
  --art-mint-light: #edf5ef;
  --art-cream: #f8f2e7;
  --art-paper: #fffdf8;
  --art-coral: #ef7855;
  --art-coral-deep: #aa402b;
  --art-gold: #f3bd4d;
  --art-line: #cbd7ce;
  --art-shadow: 0 28px 70px rgba(26, 56, 47, 0.14);
  --display: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Courier New", Courier, monospace;
  --shell: min(1180px, calc(100% - 44px));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper-light);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--paper-light);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--ink-deep);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.02;
}

h1,
h2 {
  font-family: var(--display);
  font-stretch: condensed;
  letter-spacing: -0.055em;
}

h1 {
  margin-bottom: 30px;
  font-size: clamp(4.3rem, 7.2vw, 6.5rem);
  font-weight: 900;
}

h1 span,
h1 em {
  display: block;
}

h1 em,
h2 em {
  color: var(--coral-dark);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.065em;
}

h1 em {
  position: relative;
  width: max-content;
  margin: -0.06em 0 -0.08em 0.18em;
  font-size: 1.12em;
  font-style: italic;
}

h1 em::after {
  position: absolute;
  right: -0.16em;
  bottom: 0.04em;
  left: -0.08em;
  height: 0.07em;
  background: var(--coral);
  content: "";
  transform: rotate(-1.5deg);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 5.3vw, 5rem);
  font-weight: 900;
}

h2 em {
  font-size: 0.95em;
  font-style: italic;
}

h3 {
  margin-bottom: 12px;
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -0.035em;
}

p {
  margin-bottom: 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 11px 16px;
  transform: translateY(-180%);
  color: var(--paper-light);
  background: var(--ink-deep);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-light);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 84px;
  gap: 34px;
}

.header-brand-row { display: contents; }
.primary-nav-frame { display: contents; }
.primary-nav-frame::before, .primary-nav-frame::after { display: none; }
.header-inner .brand { grid-column: 1; grid-row: 1; }
.header-inner .header-actions { grid-column: 3; grid-row: 1; }
.header-inner .primary-nav { grid-column: 2; grid-row: 1; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
}

.mark-frame {
  fill: var(--ink);
}

.mark-route {
  fill: none;
  stroke: var(--paper-light);
  stroke-width: 3.2;
  stroke-linecap: square;
}

.mark-stop {
  fill: var(--coral);
}

.mark-door {
  fill: none;
  stroke: var(--coral);
  stroke-width: 3.2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.brand-word {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.brand-word > span {
  color: var(--coral-dark);
  font-family: var(--serif);
  font-size: 1.04em;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.065em;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 29px);
}

.primary-nav a,
.login-link,
.footer-nav a {
  font-size: 0.89rem;
  font-weight: 750;
  text-decoration: none;
}

.primary-nav a,
.login-link {
  position: relative;
  padding-block: 13px;
}

.primary-nav a::after,
.login-link::after {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 2px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 150ms ease;
}

.primary-nav a:hover::after,
.login-link:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.button {
  display: inline-grid;
  grid-template-columns: auto;
  align-items: stretch;
  min-height: 54px;
  overflow: hidden;
  color: var(--paper-light);
  background: var(--ink);
  border: 2px solid var(--ink);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button > span {
  display: grid;
  min-height: 50px;
  padding: 0 20px;
  place-items: center;
  text-align: center;
}

.button:hover {
  color: var(--paper-light);
  background: var(--ink-deep);
  transform: translateY(-2px);
}

.button-small {
  grid-template-columns: auto;
  min-height: 46px;
  font-size: 0.84rem;
}

.button-small > span {
  min-height: 42px;
  padding-inline: 15px;
}

.text-link,
.quiet-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 850;
  text-decoration-thickness: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 112px) 0 40px;
  background-color: var(--paper);
  background-image: linear-gradient(rgba(18, 53, 46, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 53, 46, 0.055) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 15px;
  background: var(--coral);
  content: "";
}

.hero-index {
  position: absolute;
  top: 50%;
  left: 17px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(460px, 0.82fr);
  align-items: center;
  gap: clamp(42px, 6vw, 82px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-code {
  margin-bottom: 22px;
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 35px;
  height: 3px;
  margin: 0 11px 3px 0;
  background: var(--coral);
  content: "";
}

.hero-intro {
  max-width: 620px;
  margin-bottom: 31px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.55vw, 1.27rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-art {
  position: relative;
  margin: 0;
  padding: clamp(16px, 3vw, 30px) clamp(14px, 2.2vw, 23px) 14px;
  background: var(--art-paper);
  border: 1px solid rgba(23, 63, 53, 0.14);
  border-radius: 44% 44% 24px 24px;
  box-shadow: var(--art-shadow);
  transform: rotate(1.2deg);
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero-art::before {
  top: -17px;
  right: 45px;
  width: 80px;
  height: 36px;
  background: var(--art-gold);
  opacity: 0.72;
  transform: rotate(5deg);
}

.hero-art::after {
  bottom: -20px;
  left: -22px;
  z-index: -1;
  width: 88px;
  height: 88px;
  background: var(--art-coral);
  border-radius: 50% 50% 8px 50%;
  transform: rotate(-12deg);
}

.hero-art svg {
  width: 100%;
  height: auto;
}

.map-block {
  fill: var(--art-mint-light);
}

.block-two {
  fill: #f7dfd6;
}

.block-three {
  fill: #f9e7b9;
}

.street {
  fill: none;
  stroke: var(--art-paper);
  stroke-width: 34;
}

.street-thin {
  fill: none;
  stroke: var(--art-paper);
  stroke-width: 13;
}

.route-under,
.route {
  fill: none;
  stroke-linecap: round;
}

.route-under {
  stroke: var(--art-paper);
  stroke-width: 15;
}

.route {
  stroke: var(--art-coral);
  stroke-width: 5;
  stroke-dasharray: 3 14;
  animation: route-move 10s linear infinite;
}

@keyframes route-move {
  to { stroke-dashoffset: -68; }
}

.route-dot {
  fill: var(--art-coral);
  stroke: var(--art-paper);
  stroke-width: 5;
}

.shop > path:first-child {
  fill: var(--art-green);
}

.shop-roof,
.hello-sign {
  fill: var(--art-coral);
}

.shop-stripe {
  fill: none;
  stroke: var(--art-cream);
  stroke-width: 5;
}

.shop-window {
  fill: var(--art-gold);
}

.shop-door {
  fill: var(--art-mint);
}

.door-knob {
  fill: var(--art-green);
}

.shop text {
  fill: var(--art-green-deep);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.homes path:first-child {
  fill: var(--art-green);
}

.homes .home-roof {
  fill: none;
  stroke: var(--art-coral);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.homes rect {
  fill: var(--art-gold);
}

.leaflet rect {
  fill: var(--art-paper);
  stroke: var(--art-green);
  stroke-width: 3;
}

.leaflet path {
  stroke: var(--art-coral);
  stroke-width: 3;
  stroke-linecap: round;
}

.online > rect:first-child {
  fill: var(--art-green);
}

.online .screen {
  fill: var(--art-mint);
}

.online-dot {
  fill: var(--art-cream);
}

.online .signal {
  fill: none;
  stroke: var(--art-coral-deep);
  stroke-width: 4;
  stroke-linecap: round;
}

.online text,
.report text {
  fill: var(--art-green-deep);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.report > rect {
  fill: var(--art-paper);
  stroke: var(--art-green);
  stroke-width: 3;
}

.report-line {
  fill: none;
  stroke: var(--art-line);
  stroke-width: 2;
}

.report-chart {
  fill: none;
  stroke: var(--art-coral);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.report circle {
  fill: var(--art-gold);
  stroke: var(--art-green);
  stroke-width: 2;
}

.pin path {
  fill: var(--art-coral);
}

.pin circle {
  fill: var(--art-cream);
}

.art-caption {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: var(--ink);
  border-top: 1px solid var(--art-line);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: center;
}

.art-caption span {
  padding: 14px 7px 5px;
}

.art-caption span + span {
  border-left: 1px solid var(--art-line);
}

.hero-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  margin-top: clamp(55px, 7vw, 88px);
  padding-top: 25px;
  border-top: 2px solid var(--ink);
  gap: 45px;
}

.hero-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.hero-footer strong {
  color: var(--ink);
}

.route-key {
  display: grid;
  grid-template-columns: 12px 1fr 12px 1fr 12px;
  align-items: center;
}

.route-key span {
  width: 12px;
  height: 12px;
  background: var(--coral);
  border: 2px solid var(--ink);
  font-size: 0;
}

.route-key i {
  height: 2px;
  background: var(--ink);
  font-size: 0;
}

.campaign-statement {
  color: var(--paper-light);
  background: var(--coral-dark);
}

.statement-grid {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr 0.8fr;
}

.statement-grid p {
  display: flex;
  align-items: center;
  min-height: 118px;
  margin: 0;
  padding: 25px 34px;
  border-left: 1px solid rgba(255, 253, 247, 0.28);
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.statement-grid p:last-child {
  border-right: 1px solid rgba(255, 253, 247, 0.28);
}

.statement-grid .statement-lead,
.statement-grid p:last-child {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
}

.section {
  position: relative;
  padding: clamp(95px, 11vw, 155px) 0;
}

.section-heading {
  margin-bottom: clamp(55px, 7vw, 88px);
}

.services {
  background: var(--paper-light);
}

.services-heading,
.tracking-heading {
  display: grid;
  grid-template-columns: 1.05fr 0.58fr;
  align-items: end;
  gap: clamp(55px, 10vw, 145px);
}

.services-heading h2,
.tracking-heading h2 {
  margin-bottom: 0;
}

.services-heading > p,
.tracking-heading > div:last-child > p:first-child {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.service-route {
  position: relative;
  border-top: 2px solid var(--ink);
}

.service-route::before {
  position: absolute;
  top: 44px;
  bottom: 44px;
  left: 34px;
  width: 3px;
  background: var(--coral);
  content: "";
}

.service-stop {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(270px, 0.92fr) minmax(300px, 1fr);
  align-items: center;
  min-height: 235px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  gap: clamp(30px, 5vw, 70px);
}

.service-stop:nth-child(2)::after {
  position: absolute;
  inset: 14px -24px;
  z-index: 0;
  background: rgba(231, 97, 66, 0.08);
  content: "";
}

.service-stop > * {
  position: relative;
  z-index: 1;
}

.stop-number {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  color: var(--paper-light);
  background: var(--ink);
  border: 5px solid var(--paper-light);
  outline: 2px solid var(--coral);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
}

.stop-title {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 24px;
}

.stop-title svg {
  width: 72px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.stop-title svg .route-icon {
  stroke: var(--coral-dark);
  stroke-width: 4;
  stroke-dasharray: 3 6;
}

.stop-title p {
  margin: 0 0 7px;
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stop-title h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.stop-copy > p {
  max-width: 530px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.stop-copy ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 10px 20px;
  list-style: none;
}

.stop-copy li {
  position: relative;
  padding-left: 18px;
  font-size: 0.87rem;
  font-weight: 750;
}

.stop-copy li::before {
  position: absolute;
  top: 0.69em;
  left: 0;
  width: 10px;
  height: 3px;
  background: var(--coral);
  content: "";
}

.process {
  overflow: hidden;
  color: var(--paper-light);
  background: var(--ink);
}

.process::before {
  position: absolute;
  top: 0;
  right: 8%;
  width: 220px;
  height: 14px;
  background: var(--coral);
  content: "";
}

.section-code-light {
  color: #f6b39f;
}

.process-heading {
  display: grid;
  grid-template-columns: 0.9fr 0.52fr;
  align-items: end;
  gap: clamp(60px, 12vw, 170px);
}

.process-heading h2 {
  margin-bottom: 0;
  color: var(--paper-light);
}

.process-heading > p:last-child {
  margin-bottom: 7px;
  color: #c7d4cf;
  font-size: 1.08rem;
}

.process-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 90px 0 0;
  padding: 0;
  gap: 52px;
  list-style: none;
}

.process-line::before {
  position: absolute;
  top: 25px;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--coral);
  content: "";
}

.process-line li {
  position: relative;
  padding-top: 92px;
}

.process-marker {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: grid;
  min-width: 92px;
  height: 54px;
  padding: 0 12px;
  place-items: center;
  color: var(--ink-deep);
  background: var(--coral);
  border: 6px solid var(--ink);
  outline: 2px solid var(--coral);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.process-line li > strong {
  display: block;
  margin-bottom: 11px;
  color: var(--coral);
  font-family: var(--serif);
  font-size: 3.8rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.process-line h3 {
  max-width: 300px;
  color: var(--paper-light);
  font-size: 1.5rem;
  line-height: 1.12;
}

.process-line p {
  max-width: 335px;
  margin: 0;
  color: #c7d4cf;
}

.tracking {
  overflow: hidden;
  background: var(--paper);
}

.tracking-heading {
  margin-bottom: clamp(50px, 7vw, 80px);
}

.scope-note {
  margin: 19px 0 0;
  padding-top: 16px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
}

.campaign-ledger {
  position: relative;
  color: var(--ink);
  background: var(--paper-light);
  border: 3px solid var(--ink);
  clip-path: polygon(0 0, calc(100% - 54px) 0, 100% 54px, 100% 100%, 0 100%);
  box-shadow: 12px 12px 0 var(--coral);
}

.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 12px 24px;
  border-bottom: 2px solid var(--ink);
  gap: 30px;
}

.ledger-head > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.ledger-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--paper-light);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
}

.ledger-head strong {
  font-size: 0.95rem;
}

.ledger-head > span {
  margin-right: 43px;
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ledger-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(370px, 0.85fr);
}

.ledger-map {
  position: relative;
  min-height: 535px;
  overflow: hidden;
  background: var(--paper-deep);
  border-right: 2px solid var(--ink);
}

.ledger-map > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-caption {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 3;
  display: grid;
  padding: 10px 14px;
  color: var(--paper-light);
  background: var(--ink);
  border-left: 7px solid var(--coral);
}

.map-caption span {
  color: #f1b09d;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.map-caption strong {
  font-size: 0.92rem;
}

.ledger-streets path {
  fill: none;
  stroke: var(--paper-light);
  stroke-width: 38;
}

.target-shape {
  fill: rgba(231, 97, 66, 0.18);
  stroke: var(--coral-dark);
  stroke-width: 3;
  stroke-dasharray: 8 6;
}

.delivery-route {
  fill: none;
  stroke: var(--ink);
  stroke-width: 6;
  stroke-dasharray: 7 10;
  stroke-linecap: square;
}

.route-points circle {
  fill: var(--coral);
  stroke: var(--ink);
  stroke-width: 4;
}

.map-legend {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 22px;
  display: flex;
  gap: 16px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid var(--ink);
  font-size: 0.7rem;
  font-weight: 750;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.map-legend i {
  display: inline-block;
  width: 18px;
  height: 4px;
  background: var(--coral);
  font-size: 0;
}

.map-legend span:last-child i {
  background: var(--ink);
}

.ledger-record {
  padding: 28px 30px 20px;
}

.record-title {
  margin-bottom: 14px;
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.ledger-record dl {
  margin: 0;
}

.ledger-record dt {
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-weight: 850;
  line-height: 1.35;
}

.ledger-record dd {
  margin: 4px 0 0;
  padding-bottom: 17px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.ledger-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
}

.ledger-progress span {
  position: relative;
  min-height: 64px;
  padding: 24px 17px 13px;
  border-right: 1px solid var(--line);
  font-size: 0.77rem;
  font-weight: 750;
}

.ledger-progress small {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ledger-progress span:last-child {
  border-right: 0;
}

.ledger-progress span::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 8px;
  background: var(--paper-deep);
  content: "";
}

.ledger-progress .done::before {
  background: var(--ink);
}

.ledger-progress .current::before {
  background: var(--coral);
}

.audience {
  overflow: hidden;
  color: var(--paper-light);
  background: var(--ink-deep);
}

.audience::after {
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 310px;
  height: 310px;
  border: 55px solid rgba(231, 97, 66, 0.11);
  border-radius: 50%;
  content: "";
}

.audience-intro {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  align-items: end;
  margin-bottom: 70px;
  gap: clamp(55px, 11vw, 150px);
}

.audience-intro .section-code,
.audience-intro h2 {
  grid-column: 1;
}

.audience-intro h2 {
  margin-bottom: 0;
  color: var(--paper-light);
}

.audience-intro h2 em {
  color: #f3a991;
}

.audience-intro > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  margin: 0 0 9px;
  color: #c6d2ce;
  font-size: 1.06rem;
}

.high-street {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: end;
  border-bottom: 12px solid var(--paper-light);
}

.street-feature {
  position: relative;
  min-height: 410px;
  padding: 85px 40px 38px;
  color: var(--ink-deep);
  background: var(--coral);
  border: 3px solid var(--paper-light);
  border-bottom: 0;
}

.street-feature::before,
.shopfronts li::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 37px;
  background: repeating-linear-gradient(90deg, var(--paper-light) 0 28px, var(--ink) 28px 56px);
  content: "";
}

.street-feature p,
.shopfronts span {
  margin-bottom: 9px;
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.street-feature h3 {
  margin-bottom: 30px;
  font-family: var(--serif);
  font-size: clamp(2.65rem, 4.7vw, 4.5rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.street-feature > span {
  display: block;
  max-width: 390px;
  font-size: 1rem;
}

.shopfronts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shopfronts li {
  position: relative;
  display: flex;
  min-height: 195px;
  padding: 64px 20px 25px;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper-light);
  background: var(--ink);
  border-top: 2px solid var(--paper-light);
  border-right: 2px solid var(--paper-light);
}

.shopfronts li:nth-child(2),
.shopfronts li:nth-child(5) {
  min-height: 235px;
}

.shopfronts li::before {
  height: 27px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 18px, var(--paper-light) 18px 36px);
}

.shopfronts strong {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.why {
  background: var(--paper-light);
}

.why-grid,
.faq-grid {
  display: grid;
  grid-template-columns: 0.68fr 1fr;
  align-items: start;
  gap: clamp(60px, 10vw, 145px);
}

.why-heading > p:last-child,
.faq-heading > p:last-child {
  max-width: 470px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.principles {
  border-top: 3px solid var(--ink);
}

.principles article {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  gap: 26px;
}

.principles article > span {
  color: var(--coral-dark);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 700;
}

.principles h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.principles p {
  max-width: 510px;
  margin: 0;
  color: var(--ink-soft);
}

.faqs {
  background: var(--paper);
  border-top: 2px solid var(--ink);
}

.faq-heading h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.faq-list {
  border-top: 3px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  min-height: 82px;
  padding: 17px 3px;
  gap: 17px;
  cursor: pointer;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  font-weight: 850;
  line-height: 1.3;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary > span {
  color: var(--coral-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.faq-list summary > b {
  color: var(--coral-dark);
  font-size: 1.2rem;
  font-weight: 500;
  transition: transform 150ms ease;
}

.faq-list details[open] summary > b {
  transform: rotate(90deg);
}

.faq-list details p {
  max-width: 650px;
  margin: -2px 40px 0 3px;
  padding-bottom: 27px;
  color: var(--ink-soft);
}

.closing {
  position: relative;
  overflow: hidden;
  color: var(--paper-light);
  background: var(--coral-dark);
}

.closing-route {
  position: absolute;
  top: 50%;
  right: -4%;
  left: -4%;
  height: 5px;
  background: rgba(255, 253, 247, 0.36);
  transform: rotate(-4deg);
}

.closing-route::before,
.closing-route::after {
  position: absolute;
  top: -11px;
  width: 27px;
  height: 27px;
  background: var(--coral-dark);
  border: 5px solid var(--paper-light);
  content: "";
}

.closing-route::before { left: 9%; }
.closing-route::after { right: 9%; }

.closing-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.87fr 1fr;
  align-items: center;
  min-height: 670px;
  gap: clamp(50px, 9vw, 130px);
}

.closing-signal {
  margin: 0;
  color: var(--paper-light);
  font-family: var(--serif);
  font-size: clamp(6.5rem, 13vw, 12rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.8;
  transform: rotate(-4deg);
}

.closing-copy {
  padding: 75px 0;
}

.closing-copy h2 {
  color: var(--paper-light);
  font-size: clamp(2.8rem, 4.6vw, 4.4rem);
}

.closing-copy > p:not(.section-code) {
  max-width: 550px;
  margin-bottom: 31px;
  color: #f5d6cc;
  font-size: 1.09rem;
}

.closing-copy .email-line {
  margin: -14px 0 30px;
  color: var(--paper-light);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.email-line a {
  font-weight: 800;
}

.closing-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
}

.button-light {
  color: var(--ink-deep);
  background: var(--paper-light);
  border-color: var(--paper-light);
}

.button-light:hover {
  color: var(--ink-deep);
  background: var(--paper);
}

.quiet-link {
  color: var(--paper-light);
}

.site-footer {
  padding: 65px 0 26px;
  color: #d6e0dc;
  background: var(--ink-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  padding-bottom: 52px;
  gap: 80px;
}

.brand-footer {
  margin-bottom: 22px;
  color: var(--paper-light);
}

.brand-footer .mark-frame {
  fill: var(--paper-light);
}

.brand-footer .mark-route {
  stroke: var(--ink-deep);
}

.brand-footer .brand-word > span {
  color: #f29b82;
}

.footer-brand > p {
  max-width: 540px;
  margin: 0;
  color: #afc2ba;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 13px 38px;
}

.footer-nav a {
  color: #e7eeeb;
}

.footer-nav a:hover {
  color: #f3a68f;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  color: #8fa9a0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  gap: 30px;
  font-family: var(--mono);
  font-size: 0.73rem;
}

.footer-bottom p {
  margin: 0;
}

/* ROI calculator page */

[hidden] {
  display: none !important;
}

.calculator-page {
  background: var(--paper-light);
}

.calculator-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 9vw, 128px) 0 clamp(68px, 8vw, 108px);
  background-color: var(--paper);
  background-image: linear-gradient(rgba(18, 53, 46, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 53, 46, 0.055) 1px, transparent 1px);
  background-size: 60px 60px;
  border-bottom: 2px solid var(--ink);
}

.calculator-hero::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 16px;
  background: var(--coral);
  content: "";
}

.calculator-index {
  position: absolute;
  bottom: 54px;
  left: max(17px, calc((100vw - 1380px) / 2));
  color: #7a766b;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.calculator-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.65fr);
  align-items: end;
  gap: clamp(48px, 7vw, 108px);
}

.calculator-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4.1rem, 7.4vw, 7rem);
}

.calculator-hero-copy {
  max-width: 480px;
  padding-bottom: 6px;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.calculator-hero-copy > p:first-child {
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.58rem);
  font-weight: 750;
  line-height: 1.4;
}

.calculator-hero-copy .scope-note {
  margin-bottom: 0;
}

.calculator-section {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--paper-light);
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(350px, 0.68fr);
  align-items: start;
}

.calculator-form-panel {
  padding: clamp(32px, 5vw, 66px);
  background: var(--paper);
  border: 2px solid var(--ink);
}

.calculator-panel-head {
  max-width: 690px;
}

.calculator-panel-head h2 {
  font-size: clamp(3.2rem, 5.4vw, 5rem);
}

.calculator-panel-head > p:last-child {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.tracking-tool-link {
  margin-top: 5px;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 46px 0 18px;
  border: 2px solid var(--ink);
}

.mode-switch button {
  min-height: 58px;
  padding: 12px 20px;
  color: var(--ink);
  background: var(--paper-light);
  border: 0;
  border-right: 2px solid var(--ink);
  cursor: pointer;
  font: 850 1rem/1.1 var(--sans);
}

.mode-switch button:last-child {
  border-right: 0;
}

.mode-switch button[aria-pressed="true"] {
  color: var(--paper-light);
  background: var(--ink);
}

.mode-switch button:focus-visible,
.calculator-fieldset input:focus-visible,
.calculate-button:focus-visible,
.reset-button:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.calculator-fieldset {
  min-width: 0;
  margin: 0;
  padding: 35px 0 42px;
  border: 0;
  border-top: 2px solid var(--ink);
}

.calculator-fieldset legend {
  display: flex;
  align-items: center;
  padding: 0 18px 0 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 1.27rem;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.calculator-fieldset legend span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-right: 12px;
  color: var(--paper-light);
  background: var(--coral-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  place-items: center;
}

.fieldset-intro {
  max-width: 610px;
  margin: 0 0 25px;
  color: var(--ink-soft);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.field-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-grid-one {
  grid-template-columns: minmax(220px, 0.48fr);
}

.field-grid label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.35;
}

.field-grid input {
  width: 100%;
  min-width: 0;
  height: 57px;
  padding: 0 14px;
  color: var(--ink-deep);
  background: var(--paper-light);
  border: 2px solid var(--ink);
  border-radius: 0;
  font: 750 1.07rem/1 var(--sans);
}

.field-grid input:hover {
  border-color: var(--coral-dark);
}

.field-grid small {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.45;
}

.input-wrap {
  position: relative;
  display: block;
}

.input-wrap > b {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  color: var(--coral-dark);
  font-size: 1rem;
  transform: translateY(-50%);
}

.input-wrap:not(.input-wrap-suffix) > input {
  padding-left: 38px;
}

.input-wrap-suffix > b {
  right: 15px;
  left: auto;
}

.input-wrap-suffix > input {
  padding-right: 42px;
}

.calculator-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 10px;
  gap: 22px;
}

.calculate-button {
  padding: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.reset-button {
  min-height: 48px;
  padding: 6px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: 850 0.92rem/1.2 var(--sans);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.calculator-results {
  position: sticky;
  top: 24px;
  min-width: 0;
  margin-left: -2px;
  padding: clamp(31px, 4.2vw, 54px);
  color: var(--paper-light);
  background: var(--ink-deep);
  border: 2px solid var(--ink-deep);
  box-shadow: 19px 19px 0 var(--coral-pale);
}

.result-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  gap: 18px;
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-kicker b {
  padding: 4px 7px;
  color: var(--ink-deep);
  background: var(--art-gold);
  font-size: 0.61rem;
}

.result-label {
  margin: 40px 0 0;
  color: #adc3bb;
  font-weight: 750;
}

.result-hero-number {
  display: block;
  max-width: 100%;
  margin: 1px 0 8px;
  overflow-wrap: anywhere;
  color: #f48a6d;
  font-family: var(--display);
  font-size: clamp(4rem, 7vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1;
}

.result-explanation {
  max-width: 390px;
  margin-bottom: 39px;
  color: #adc3bb;
  font-size: 0.84rem;
  line-height: 1.55;
}

.result-list {
  margin: 0;
}

.result-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.21);
  gap: 18px;
}

.result-list .result-term {
  color: #bfd0ca;
  font-size: 0.8rem;
}

.result-list > div > output {
  font-size: 1.05rem;
  font-weight: 850;
  text-align: right;
}

.result-list .result-profit {
  margin: 12px -18px 0;
  padding: 16px 18px;
  color: var(--ink-deep);
  background: var(--coral);
  border-top: 0;
}

.result-profit .result-term {
  color: var(--ink-deep);
  font-weight: 750;
}

.result-note {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid var(--paper-light);
}

.result-note strong {
  display: block;
  margin-bottom: 7px;
}

.result-note p {
  margin: 0;
  color: #adc3bb;
  font-size: 0.82rem;
  line-height: 1.55;
}

.calculator-formula {
  padding: clamp(82px, 10vw, 132px) 0;
  color: var(--paper-light);
  background: var(--coral-dark);
}

.formula-heading {
  display: grid;
  grid-template-columns: 0.42fr 1fr 0.64fr;
  align-items: start;
  margin-bottom: 72px;
  gap: clamp(28px, 5vw, 80px);
}

.formula-heading h2,
.formula-heading > p {
  margin: 0;
}

.formula-heading h2 {
  font-size: clamp(3.1rem, 5.3vw, 5rem);
}

.formula-heading h2 em {
  color: var(--paper-light);
}

.formula-heading > p:last-child {
  padding-top: 9px;
  color: #f4c9bc;
  font-size: 1.05rem;
}

.formula-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--paper-light);
  border-bottom: 2px solid var(--paper-light);
  list-style: none;
}

.formula-steps li {
  min-height: 265px;
  padding: 31px 31px 36px;
  border-right: 1px solid rgba(255, 255, 255, 0.32);
}

.formula-steps li:last-child {
  border-right: 0;
}

.formula-steps span {
  display: block;
  margin-bottom: 52px;
  color: #f2b9a8;
  font-family: var(--mono);
  font-size: 0.74rem;
}

.formula-steps h3 {
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
}

.formula-steps p {
  margin: 0;
  color: #f4c9bc;
  font-size: 0.93rem;
}

.calculator-faqs {
  background: var(--paper-light);
}

.calculator-cta {
  padding: clamp(78px, 9vw, 118px) 0;
  color: var(--paper-light);
  background: var(--ink);
  border-top: 14px solid var(--coral);
}

.calculator-cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.72fr;
  align-items: end;
  gap: clamp(45px, 8vw, 120px);
}

.calculator-cta h2 {
  max-width: 710px;
  margin: 0;
  font-size: clamp(3.2rem, 5.8vw, 5.4rem);
}

.calculator-cta-grid > div:last-child > p {
  margin-bottom: 25px;
  color: #bdd0c9;
  font-size: 1.06rem;
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: auto 1fr;
    padding: 13px 0 0;
    gap: 11px 25px;
  }

  .header-actions {
    justify-self: end;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    min-height: 52px;
    border-top: 1px solid var(--line);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(400px, 0.78fr);
    gap: 45px;
  }

  .service-stop {
    grid-template-columns: 70px minmax(260px, 0.9fr) minmax(280px, 1fr);
    gap: 34px;
  }

  .ledger-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .shopfronts {
    grid-template-columns: repeat(2, 1fr);
  }

  .calculator-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.62fr);
    gap: 52px;
  }

  .calculator-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.66fr);
  }

  .field-grid-three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 38px, 760px);
  }

  .hero-index {
    display: none;
  }

  .hero-grid,
  .services-heading,
  .tracking-heading,
  .process-heading,
  .audience-intro,
  .why-grid,
  .faq-grid,
  .closing-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero-art {
    width: min(100%, 650px);
    margin: 28px auto 0;
  }

  .services-heading,
  .tracking-heading,
  .process-heading,
  .audience-intro {
    gap: 26px;
  }

  .services-heading > p,
  .tracking-heading > div:last-child,
  .process-heading > p:last-child,
  .audience-intro > p:last-child {
    max-width: 650px;
  }

  .service-stop {
    grid-template-columns: 70px 1fr;
  }

  .stop-copy {
    grid-column: 2;
  }

  .process-line {
    grid-template-columns: 1fr;
    margin-top: 70px;
    gap: 50px;
  }

  .process-line::before {
    top: 0;
    bottom: 0;
    left: 43px;
    width: 5px;
    height: auto;
  }

  .process-line li {
    min-height: 210px;
    padding: 0 0 0 125px;
  }

  .process-marker {
    top: 0;
    left: 0;
  }

  .ledger-grid {
    grid-template-columns: 1fr;
  }

  .ledger-map {
    min-height: 480px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .audience-intro .section-code,
  .audience-intro h2,
  .audience-intro > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .high-street {
    grid-template-columns: 1fr;
  }

  .street-feature {
    min-height: 350px;
  }

  .why-grid,
  .faq-grid {
    gap: 50px;
  }

  .closing-grid {
    min-height: 0;
    padding: 100px 0;
    gap: 55px;
  }

  .closing-signal {
    font-size: clamp(6rem, 21vw, 10rem);
  }

  .closing-copy {
    max-width: 650px;
    padding: 0;
  }

  .calculator-index {
    display: none;
  }

  .calculator-hero-grid,
  .calculator-layout,
  .formula-heading,
  .calculator-cta-grid {
    grid-template-columns: 1fr;
  }

  .calculator-hero-copy {
    max-width: 690px;
  }

  .calculator-layout {
    gap: 34px;
  }

  .calculator-results {
    position: relative;
    top: auto;
    width: calc(100% - 20px);
    margin: 0 0 19px;
  }

  .formula-heading {
    gap: 28px;
  }

  .formula-heading > p:last-child {
    max-width: 660px;
  }
}

@media (max-width: 700px) {
  :root {
    --shell: calc(100% - 28px);
  }

  html {
    scroll-padding-top: 18px;
  }

  .header-inner {
    grid-template-columns: auto 1fr;
    padding-top: 11px;
    gap: 9px 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-word {
    font-size: 1.16rem;
  }

  .header-actions {
    gap: 10px;
  }

  .login-link {
    font-size: 0.76rem;
  }

  .button-small {
    display: inline-flex;
    min-height: 44px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    font-size: 0.75rem;
  }

  .button-small > span {
    min-height: 40px;
    padding-inline: 11px;
  }

  .primary-nav {
    min-height: 45px;
    justify-content: flex-start;
    gap: 23px;
  }

  .primary-nav a {
    min-height: 44px;
    padding: 11px 0;
    font-size: 0.78rem;
  }

  .primary-nav .nav-optional {
    display: none;
  }

  .hero {
    padding: 58px 0 31px;
    background-size: 44px 44px;
  }

  .hero::before {
    width: 48%;
    height: 10px;
  }

  h1 {
    margin-bottom: 25px;
    font-size: clamp(3.45rem, 16vw, 4.35rem);
  }

  h1 em {
    margin-left: 0.07em;
  }

  h2 {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }

  .hero-intro {
    margin-bottom: 26px;
    font-size: 1.04rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
  }

  .hero-actions .text-link {
    justify-content: center;
  }

  .hero-art {
    margin-top: 30px;
    border-radius: 90px 90px 17px 17px;
  }

  .art-caption {
    font-size: 0.61rem;
  }

  .art-caption span {
    padding-inline: 3px;
  }

  .calculator-hero {
    padding: 62px 0 68px;
    background-size: 44px 44px;
  }

  .calculator-hero::before {
    width: 48%;
    height: 10px;
  }

  .calculator-hero-grid {
    gap: 30px;
  }

  .calculator-hero h1 {
    font-size: clamp(3.5rem, 15vw, 4.4rem);
  }

  .calculator-hero-copy > p:first-child {
    font-size: 1.16rem;
  }

  .calculator-section {
    padding: 68px 0 86px;
  }

  .calculator-form-panel {
    padding: 27px 19px 33px;
  }

  .calculator-panel-head h2 {
    font-size: clamp(2.75rem, 12vw, 3.7rem);
  }

  .mode-switch {
    margin-top: 37px;
  }

  .mode-switch button {
    min-height: 55px;
    padding-inline: 10px;
  }

  .calculator-fieldset {
    padding: 31px 0 36px;
  }

  .calculator-fieldset legend {
    padding-right: 8px;
    font-size: 1.1rem;
  }

  .field-grid,
  .field-grid-three,
  .field-grid-one {
    grid-template-columns: 1fr;
    gap: 21px;
  }

  .calculator-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .calculate-button {
    width: 100%;
  }

  .reset-button {
    align-self: center;
  }

  .calculator-results {
    padding: 29px 22px 32px;
    box-shadow: 12px 12px 0 var(--coral-pale);
  }

  .result-hero-number {
    font-size: clamp(4.3rem, 22vw, 5.7rem);
  }

  .formula-steps {
    grid-template-columns: 1fr;
  }

  .formula-steps li {
    min-height: 0;
    padding: 28px 4px 31px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  }

  .formula-steps li:last-child {
    border-bottom: 0;
  }

  .formula-steps span {
    margin-bottom: 29px;
  }

  .calculator-cta-grid {
    gap: 38px;
  }

  .hero-footer {
    grid-template-columns: 1fr;
    margin-top: 46px;
    gap: 20px;
  }

  .campaign-statement {
    padding: 15px 0;
  }

  .statement-grid {
    grid-template-columns: 1fr;
  }

  .statement-grid p {
    min-height: 70px;
    padding: 17px 2px;
    border-bottom: 1px solid rgba(255, 253, 247, 0.28);
    border-left: 0;
    font-size: 1.45rem;
  }

  .statement-grid p:last-child {
    border-right: 0;
    border-bottom: 0;
  }

  .section {
    padding: 86px 0;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .service-route::before {
    left: 26px;
  }

  .service-stop,
  .service-stop:nth-child(2) {
    grid-template-columns: 54px 1fr;
    min-height: 0;
    padding: 37px 0;
    gap: 20px;
  }

  .service-stop:nth-child(2)::after {
    inset: 10px -14px;
  }

  .stop-number {
    width: 54px;
    height: 54px;
  }

  .stop-title {
    grid-template-columns: 54px 1fr;
    gap: 15px;
  }

  .stop-title svg {
    width: 52px;
  }

  .stop-title h3 {
    font-size: 1.5rem;
  }

  .stop-copy {
    grid-column: 2;
  }

  .stop-copy > p {
    font-size: 0.97rem;
  }

  .stop-copy ul {
    display: grid;
    gap: 7px;
  }

  .process-line {
    gap: 45px;
  }

  .process-line::before {
    left: 32px;
  }

  .process-line li {
    min-height: 225px;
    padding-left: 98px;
  }

  .process-marker {
    min-width: 67px;
    height: 49px;
    padding-inline: 8px;
    font-size: 0.59rem;
  }

  .process-line li > strong {
    font-size: 3.2rem;
  }

  .tracking-heading {
    margin-bottom: 43px;
  }

  .campaign-ledger {
    clip-path: polygon(0 0, calc(100% - 37px) 0, 100% 37px, 100% 100%, 0 100%);
    box-shadow: 7px 7px 0 var(--coral);
  }

  .ledger-head {
    min-height: 62px;
    padding: 10px 13px;
    gap: 13px;
  }

  .ledger-head strong {
    max-width: 130px;
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .ledger-head > span {
    margin-right: 25px;
    font-size: 0.61rem;
  }

  .ledger-map {
    min-height: 340px;
  }

  .map-caption {
    top: 14px;
    left: 14px;
  }

  .map-legend {
    bottom: 12px;
    left: 12px;
    gap: 10px;
    font-size: 0.63rem;
  }

  .ledger-record {
    padding: 23px 18px 13px;
  }

  .ledger-record dt {
    padding-top: 14px;
  }

  .ledger-record dd {
    padding-bottom: 14px;
  }

  .ledger-progress {
    grid-template-columns: repeat(2, 1fr);
  }

  .ledger-progress span:nth-child(2) {
    border-right: 0;
  }

  .ledger-progress span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .audience-intro {
    margin-bottom: 48px;
  }

  .street-feature {
    min-height: 320px;
    padding: 73px 26px 30px;
  }

  .shopfronts {
    grid-template-columns: repeat(2, 1fr);
  }

  .shopfronts li,
  .shopfronts li:nth-child(2),
  .shopfronts li:nth-child(5) {
    min-height: 160px;
    padding: 55px 13px 20px;
  }

  .shopfronts strong {
    font-size: 1.22rem;
  }

  .principles article {
    grid-template-columns: 78px 1fr;
    gap: 15px;
  }

  .principles article > span {
    font-size: 1.15rem;
  }

  .faq-list summary {
    grid-template-columns: minmax(0, 1fr) 25px;
    min-height: 76px;
    gap: 11px;
  }

  .faq-list details p {
    margin-right: 0;
    margin-left: 3px;
  }

  .closing-grid {
    padding: 87px 0;
    gap: 48px;
  }

  .closing-copy h2 {
    font-size: clamp(2.65rem, 12vw, 3.55rem);
  }

  .closing-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  .closing-actions .button,
  .closing-actions .quiet-link {
    width: 100%;
  }

  .closing-actions .quiet-link {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .footer-nav {
    gap: 12px 25px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 380px) {
  .brand-word {
    display: none;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 3.7rem);
  }

  .art-caption {
    grid-template-columns: 1fr;
  }

  .art-caption span + span {
    border-top: 1px solid var(--art-line);
    border-left: 0;
  }

  .principles article {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Homepage refinement: quieter surfaces, consistent rhythm, clearer service choices.
   Only header/footer rules extend to the calculator, preserving its main layout.
   :where() keeps shared button specificity equal to the original homepage rules. */
.homepage, .calculator-page :is(.site-header, .site-footer) { --shell: min(1200px, calc(100% - 64px)); }
.homepage h2 { font-size: clamp(2.6rem, 4.3vw, 3.7rem); line-height: 1.08; letter-spacing: -0.045em; }
.homepage h3 { line-height: 1.2; }
.homepage .section { padding-block: clamp(76px, 8vw, 108px); }
.homepage .section-code { margin-bottom: 20px; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; }
:is(.homepage, .calculator-page) .site-header { border-bottom: 1px solid #dcded4; }
:is(.homepage, .calculator-page) .header-inner { gap: 24px; min-height: 88px; }
:is(.homepage, .calculator-page) .brand-picture { display: flex; width: 240px; flex: 0 0 auto; }
:is(.homepage, .calculator-page) .brand-logo { display: block; width: 100%; height: auto; }
:is(.homepage, .calculator-page) .primary-nav { gap: 20px; }
:is(.homepage, .calculator-page) .primary-nav a { white-space: nowrap; font-size: 0.82rem; }
:is(.homepage, :where(.calculator-page) .site-header) .button { border-radius: 4px; clip-path: none; border-width: 1px; font-weight: 700; }
:is(.homepage, :where(.calculator-page) .site-header) .button-small { grid-template-columns: auto; }
:is(.homepage, :where(.calculator-page) .site-header) .button:focus-visible { outline: 3px solid var(--coral-dark); outline-offset: 4px; box-shadow: none; }
.homepage .hero { padding: 72px 0 28px; background-color: #f6f2e7; background-image: none; }
.homepage .hero::before { width: 84px; height: 4px; right: max(32px, calc((100% - 1200px) / 2)); }
.homepage .hero-index { display: none; }
.homepage .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 66px; }
.homepage h1 { font-size: clamp(4rem, 6.2vw, 5.6rem); line-height: 0.99; letter-spacing: -0.055em; margin-bottom: 26px; }
.homepage h1 em { font-size: 1.02em; margin: 0; }
.homepage h1 em::after { height: 3px; bottom: 0.07em; left: 0; right: -8px; }
.homepage .eyebrow { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.11em; margin-bottom: 25px; }
.homepage .hero-intro { max-width: 510px; font-size: 1.08rem; line-height: 1.7; }
.homepage .hero-actions { gap: 22px; }
.homepage .hero-actions .text-link { font-size: 0.93rem; }
.hero-assurance { margin: 20px 0 0; color: var(--ink-soft); font-size: 0.8rem; }
.homepage .hero-art { transform: none; box-shadow: 0 18px 45px #12352e0b; }
.homepage .hero-footer { margin-top: 48px; padding-top: 22px; border-top: 1px solid #12352e26; }
.homepage .route-key { max-width: 180px; justify-self: end; width: 100%; opacity: 0.65; }
.homepage .campaign-statement { background: var(--paper-light); color: var(--ink); border-bottom: 1px solid #12352e20; }
.homepage .statement-grid { grid-template-columns: repeat(3, 1fr); padding-block: 28px; }
.homepage .statement-grid p { display: block; min-height: 0; padding: 4px 30px; border: 0; border-right: 1px solid #12352e26; font-family: var(--sans); font-style: normal; font-size: 0.84rem; font-weight: 400; letter-spacing: 0; line-height: 1.55; }
.homepage .statement-grid p:first-child { padding-left: 0; }
.homepage .statement-grid p:last-child { border: 0; }
.homepage .statement-grid strong { display: block; margin-bottom: 5px; font-size: 0.98rem; }
.homepage .statement-grid span { color: var(--ink-soft); }
.homepage .services-heading, .homepage .tracking-heading { grid-template-columns: 1.15fr 0.85fr; gap: 80px; }
.homepage .section-heading, .homepage .tracking-heading { margin-bottom: 44px; }
.homepage .service-route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; gap: 24px; }
.homepage .service-route::before, .homepage .service-stop:nth-child(2)::after { display: none; }
.homepage .service-stop { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px; min-height: 0; padding: 30px 28px; border: 1px solid #12352e28; border-top: 3px solid var(--ink); border-radius: 3px; background: #faf8f1; }
.homepage .service-stop:nth-child(2) { background: #eff3ed; border-top-color: #587562; }
.homepage .service-stop:nth-child(3) { background: #fcf0e9; border-top-color: var(--coral); }
.homepage .stop-number { display: block; width: auto; height: auto; background: none; color: var(--ink-soft); border: 0; outline: 0; font-size: 0.7rem; }
.homepage .stop-title { grid-template-columns: 1fr; gap: 22px; }
.homepage .stop-title svg { width: 54px; }
.homepage .stop-title p { font-size: 0.65rem; }
.homepage .stop-title h3 { font-size: 1.5rem; margin-bottom: 0; letter-spacing: -0.04em; }
.homepage .stop-copy { display: flex; flex-direction: column; flex: 1; }
.homepage .stop-copy > p { font-size: 0.95rem; line-height: 1.7; }
.homepage .stop-copy ul { margin-top: auto; padding-top: 20px; border-top: 1px solid #12352e20; flex-direction: column; gap: 7px; }
.homepage .process::before { height: 4px; width: 80px; }
.homepage .process-heading { grid-template-columns: 1.15fr 0.85fr; gap: 0 80px; }
.homepage .process-heading .section-code { grid-column: 1 / -1; }
.homepage .process-line { margin-top: 50px; gap: 40px; }
.homepage .process-line::before { display: none; }
.homepage .process-line li { padding: 25px 0 0; min-height: 0; border-top: 1px solid #c7d4cf50; }
.homepage .process-line li > strong { font-family: var(--sans); font-size: 0.85rem; font-style: normal; font-weight: 700; margin-bottom: 24px; color: #f4aa92; }
.homepage .process-line h3 { font-size: 1.32rem; line-height: 1.3; }
.homepage .process-line p { font-size: 0.95rem; }
.homepage .tracking { background: #f3f5ef; }
.homepage .campaign-ledger { box-shadow: 0 16px 40px #12352e08; border: 1px solid #12352e38; border-radius: 6px; overflow: hidden; }
.homepage .ledger-head { border-bottom-width: 1px; }
.homepage .ledger-map { border-right-width: 1px; }
.homepage .ledger-progress { border-top-width: 1px; }
.planning-tool { padding: 66px 0; background: #f8eddf; border-block: 1px solid #12352e18; }
.planning-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 80px; }
.homepage .planning-grid h2 { font-size: clamp(2.2rem, 3.5vw, 3rem); margin: 0; }
.planning-grid p:not(.section-code) { color: var(--ink-soft); }
.planning-grid small { display: block; margin-top: 13px; color: var(--ink-soft); font-size: 0.75rem; }
.homepage .audience { background: var(--paper-light); color: var(--ink); }
.homepage .audience::after { display: none; }
.homepage .audience-intro { grid-template-columns: 1.15fr 0.85fr; gap: 0 80px; margin-bottom: 44px; }
.homepage .audience-intro h2 { color: var(--ink); }
.homepage .audience-intro h2 em, .homepage .audience .section-code { color: var(--coral-dark); }
.homepage .audience-intro > p:last-child { color: var(--ink-soft); }
.homepage .high-street { align-items: stretch; grid-template-columns: 1fr 1.3fr; gap: 24px; border-bottom: 0; }
.homepage .street-feature { min-height: 310px; padding: 48px 36px 32px; border: 0; border-radius: 4px; background: var(--ink); color: var(--paper-light); }
.homepage .street-feature::before { height: 8px; background-size: auto; border-radius: 4px 4px 0 0; }
.homepage .street-feature h3 { font-size: 2.9rem; letter-spacing: -0.04em; margin-bottom: 22px; }
.homepage .street-feature > span { font-size: 0.95rem; color: #d4dfd8; }
.homepage .street-feature .text-link { margin-top: 17px; font-size: 0.9rem; }
.homepage .shopfronts { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 0 26px; }
.homepage .shopfronts li { min-height: 0; padding: 25px 4px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #12352e26; justify-content: center; }
.homepage .shopfronts li::before { display: none; }
.homepage .shopfronts span { color: var(--ink-soft); }
.homepage .shopfronts strong { font-family: var(--sans); font-size: 1.4rem; letter-spacing: -0.03em; }
.homepage .why { background: #f6f2e7; }
.homepage .principles article { padding-block: 23px; }
.homepage .principles h3 { font-size: 1.16rem; }
.homepage .faq-list summary { font-size: 1.05rem; font-weight: 650; line-height: 1.45; }
.homepage .closing-route { opacity: 0.3; }
.homepage .closing-grid { min-height: 0; padding-block: 90px; }
.homepage .closing-signal { font-size: clamp(5rem, 12vw, 11rem); }
.homepage .closing-copy h2 { font-size: clamp(2.6rem, 4.5vw, 4rem); }

@media (max-width: 1320px) {
  :is(.homepage, .calculator-page) .site-header .brand-picture { width: 200px; }
  .header-inner .header-actions { grid-column: 2; }
  .header-inner .primary-nav { grid-column: 1 / -1; grid-row: 2; }
}
@media (min-width: 1101px) and (max-width: 1320px) {
  :is(.homepage, .calculator-page) .header-inner { grid-template-columns: auto 1fr; gap: 0 24px; padding-top: 15px; }
  :is(.homepage, .calculator-page) .header-actions { justify-self: end; }
  :is(.homepage, .calculator-page) .primary-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; border-top: 1px solid #12352e18; margin-top: 14px; }
}
@media (max-width: 1000px) {
  .homepage .service-route { gap: 14px; }
  .homepage .service-stop { padding: 25px 20px; }
  .homepage .stop-title h3 { font-size: 1.3rem; }
}
@media (max-width: 900px) {
  .homepage .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 30px; }
  .homepage h1 { font-size: clamp(3.5rem, 7.5vw, 4.6rem); }
  .homepage .hero-art { margin: 0; }
  .homepage .services-heading, .homepage .tracking-heading, .homepage .audience-intro, .homepage .process-heading, .planning-grid { grid-template-columns: 1fr; gap: 23px; }
  .homepage .process-line { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
  .homepage .audience-intro > p:last-child { grid-column: 1; grid-row: auto; }
  .homepage .high-street { grid-template-columns: 1fr 1.2fr; }
}
@media (max-width: 700px) {
  .homepage, .calculator-page :is(.site-header, .site-footer) { --shell: calc(100% - 40px); }
  :is(.homepage, .calculator-page) .header-inner { min-height: 0; grid-template-columns: auto minmax(0, 1fr); gap: 6px; }
  :is(.homepage, .calculator-page) .brand-word { display: inline; font-size: 1.12rem; }
  :is(.homepage, .calculator-page) .brand { gap: 6px; }
  :is(.homepage, .calculator-page) .brand-mark { width: 30px; height: 30px; }
  :is(.homepage, .calculator-page) .site-header .brand-picture { width: 195px; }
  :is(.homepage, .calculator-page) .site-header .brand { min-height: 44px; }
  :is(.homepage, .calculator-page) .header-actions { gap: 4px; }
  :is(.homepage, .calculator-page) .site-header .login-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-block: 0; font-size: 0.69rem; }
  :is(.homepage, :where(.calculator-page) .site-header) .button-small { font-size: 0.69rem; }
  :is(.homepage, :where(.calculator-page) .site-header) .button-small > span { padding-inline: 7px; }
  :is(.homepage, .calculator-page) .primary-nav { flex-wrap: wrap; justify-content: space-between; gap: 0 4px; padding-block: 3px; }
  :is(.homepage, .calculator-page) .primary-nav a { font-size: 0.78rem; }
  :is(.homepage, .calculator-page) .primary-nav a[href="roi-calculator.php"] { display: inline-block; }
  .homepage .hero { padding-top: 44px; }
  .homepage .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .homepage h1 { font-size: clamp(3.2rem, 13vw, 4.5rem); }
  .homepage h1 em { display: inline; margin-right: 0.12em; }
  .homepage h1 span:last-child { display: inline; }
  .homepage .hero-intro { font-size: 1rem; margin-bottom: 23px; }
  .homepage .hero-actions { gap: 10px; }
  .homepage .eyebrow { font-size: 0.65rem; }
  .homepage .hero-assurance { font-size: 0.75rem; text-align: center; margin-top: 13px; }
  .homepage .hero-art { max-width: 440px; margin: 0 auto; }
  .homepage .hero-footer { margin-top: 28px; gap: 0; }
  .homepage .hero-footer p { font-size: 0.83rem; }
  .homepage .route-key { display: none; }
  .homepage .campaign-statement { padding: 0; }
  .homepage .statement-grid { grid-template-columns: 1fr; padding-block: 10px; }
  .homepage .statement-grid p, .homepage .statement-grid p:first-child { padding: 17px 0; border: 0; border-bottom: 1px solid #12352e20; }
  .homepage .statement-grid p:last-child { border-bottom: 0; }
  .homepage .section { padding-block: 64px; }
  .homepage h2 { font-size: clamp(2.3rem, 9.5vw, 3rem); }
  .homepage .service-route { grid-template-columns: 1fr; gap: 18px; }
  .homepage .service-stop { padding: 25px; gap: 16px; }
  .homepage .stop-title { grid-template-columns: 50px 1fr; gap: 18px; }
  .homepage .stop-title h3 { font-size: 1.4rem; }
  .homepage .process-line { grid-template-columns: 1fr; gap: 28px; margin-top: 35px; }
  .homepage .process-line li { padding: 23px 0 0; }
  .homepage .process-line li > strong { margin-bottom: 15px; }
  .homepage .process-line h3, .homepage .process-line p { max-width: none; }
  .homepage .ledger-map { min-height: 340px; }
  .homepage .high-street { grid-template-columns: 1fr; }
  .homepage .street-feature { min-height: 0; padding: 38px 26px 24px; }
  .homepage .shopfronts { gap: 0 20px; }
  .homepage .shopfronts strong { font-size: 1.25rem; }
  .homepage .planning-tool { padding-block: 48px; }
  .homepage .planning-grid h2 { font-size: 2.2rem; }
  .homepage .closing-grid { padding-block: 64px; gap: 30px; }
  .homepage .closing-signal { font-size: 5rem; }
  .homepage .closing-copy h2 { font-size: 2.5rem; }
}
@media (max-width: 389px) {
  :is(.homepage, .calculator-page) .header-inner { grid-template-columns: 1fr auto; }
  :is(.homepage, .calculator-page) .header-inner > .brand { justify-self: start; }
  :is(.homepage, .calculator-page) .header-actions { display: contents; }
  :is(.homepage, .calculator-page) .site-header .login-link { grid-column: 2; grid-row: 1; }
  :is(.homepage, .calculator-page) .site-header .button-small { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  :is(.homepage, .calculator-page) .primary-nav { grid-row: 3; }
}

/* Let only the native scrolling navigation stick to the page on small screens. */
@media (max-width: 700px) {
  html { scroll-padding-top: 68px; }
  :is(.homepage, .calculator-page) .site-header,
  :is(.homepage, .calculator-page) .header-inner { display: contents; }
  .header-brand-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px; width: 100%; padding: 11px 20px 6px; background: var(--paper-light); }
  .primary-nav-frame { display: block; position: sticky; top: 0; z-index: 30; width: 100%; min-width: 0; }
  .primary-nav-frame::before, .primary-nav-frame::after { content: ''; display: block; position: absolute; inset-block: 1px; width: 24px; z-index: 1; opacity: 0; pointer-events: none; }
  .primary-nav-frame::before { inset-inline-start: 0; background: linear-gradient(var(--nav-fade-angle, 90deg), var(--paper-light), transparent); }
  .primary-nav-frame::after { inset-inline-end: 0; background: linear-gradient(var(--nav-fade-angle, 90deg), transparent, var(--paper-light)); }
  .primary-nav-frame:dir(rtl) { --nav-fade-angle: 270deg; }
  .primary-nav-frame[data-overflow-start="true"]::before, .primary-nav-frame[data-overflow-end="true"]::after { opacity: 1; }
  :is(.homepage, .calculator-page) .primary-nav {
    position: relative; display: flex; flex-wrap: nowrap; justify-content: flex-start; align-items: center;
    width: 100%; max-width: 100vw; min-width: 0; min-height: 54px; gap: 16px; margin: 0; padding: 4px 20px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none;
    background: var(--paper-light); border-top: 1px solid #12352e18; border-bottom: 1px solid #12352e18; box-shadow: 0 2px 4px #12352e08;
  }
  :is(.homepage, .calculator-page) .primary-nav::-webkit-scrollbar { display: none; }
  :is(.homepage, .calculator-page) .primary-nav a,
  :is(.homepage, .calculator-page) .primary-nav a.nav-optional { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 44px; white-space: nowrap; }
  :is(.homepage, .calculator-page) .primary-nav a:focus-visible { outline: 2px solid var(--coral-dark); outline-offset: -2px; border-radius: 2px; }
}
@media (max-width: 389px) {
  .header-brand-row { grid-template-columns: 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Public account entry uses the same type, colour and spacing foundation. */
.public-login {
  display: grid;
  grid-template-columns: 1fr minmax(0, 440px);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(48px, 7vw, 100px);
  min-height: 60vh;
}
.public-login-intro h1 { margin: 12px 0 20px; font-size: clamp(2.8rem, 5vw, 4.5rem); }
.public-login-intro > p:last-child { max-width: 32ch; color: var(--ink-soft); font-size: 1.125rem; }
.public-login-card { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--paper-deep); border-radius: 20px; background: var(--paper); }
.public-login-card h2 { margin: 0 0 24px; font-size: 1.8rem; }
.public-login-form { display: grid; gap: 10px; }
.public-login-form label { font-weight: 700; }
.public-login-form input:not([type="hidden"]) { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-light); color: var(--ink); font: inherit; font-size: 16px; }
.public-login-form input:focus-visible { outline: 3px solid var(--coral-dark); outline-offset: 3px; }
.public-login-form .button { width: 100%; margin-top: 8px; }
.public-login-notice, .public-login-error { padding: 12px 14px; border-radius: 8px; }
.public-login-notice { background: var(--art-mint); color: var(--ink-deep); }
.public-login-error { background: var(--coral-pale); color: var(--coral-dark); }
@media (max-width: 760px) {
  .public-login { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 520px; }
  .public-login-intro h1 { font-size: clamp(2.5rem, 10vw, 3.4rem); }
}
