/* ==========================================================================
   palmerston-north.css — /ai-automation-palmerston-north (2026-09-29)
   A story page in six chapters. Builds on product-base.css and
   services-paths.css (sp-hero, sp-window, sp-faq, sp-call). Prefix .pn-*.
   Motion: transform/opacity only; every animated state is also the
   no-JS / reduced-motion resting state (html.nx-js gates the "before").
   ========================================================================== */

.pn { position: relative; }

/* --------------------------------------------------------------------------
   Chapter rail (wide screens only)
   -------------------------------------------------------------------------- */
.pn-rail { display: none; }

@media (min-width: 1360px) {
  .pn-rail {
    position: fixed;
    z-index: var(--nx-z-raised);
    top: 50%;
    left: 24px;
    display: flex;
    gap: 14px;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--nx-t-slow) var(--nx-ease-out);
  }
  .pn-rail.is-shown { opacity: 1; pointer-events: auto; }

  .pn-rail__track {
    position: relative;
    width: 2px;
    border-radius: 2px;
    background: var(--nx-line);
    overflow: hidden;
  }
  .pn-rail__fill {
    position: absolute;
    inset: 0;
    background: var(--nx-orange);
    transform: scaleY(var(--pn-progress, 0));
    transform-origin: top;
  }

  .pn-rail ol {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .pn-rail a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 28px;
    color: var(--nx-ink-soft);
    font-size: .78rem;
    font-weight: 650;
    text-decoration: none;
  }
  .pn-rail a span {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--nx-line);
    border-radius: 50%;
    background: var(--nx-surface);
    color: var(--nx-ink-soft);
    font-size: .68rem;
    font-variant-numeric: tabular-nums;
    transition: background var(--nx-t-base) var(--nx-ease-out), color var(--nx-t-base) var(--nx-ease-out), border-color var(--nx-t-base) var(--nx-ease-out);
  }
  .pn-rail a b {
    font-weight: 650;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity var(--nx-t-base) var(--nx-ease-out), transform var(--nx-t-base) var(--nx-ease-out);
  }
  .pn-rail a b {
    position: absolute;
    left: 40px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--nx-surface);
    box-shadow: var(--nx-shadow-soft);
    white-space: nowrap;
    pointer-events: none;
  }
  .pn-rail li { position: relative; }
  .pn-rail a:hover b,
  .pn-rail a:focus-visible b { opacity: 1; transform: none; }
  .pn-rail a[aria-current="true"] { color: var(--nx-ink); }
  .pn-rail a[aria-current="true"] span {
    border-color: var(--nx-orange);
    background: var(--nx-orange);
    color: #000;
  }
  .pn-rail a:focus-visible { outline: 3px solid rgba(247, 148, 29, .45); outline-offset: 2px; border-radius: 6px; }
}

/* --------------------------------------------------------------------------
   Chapter heading
   -------------------------------------------------------------------------- */
.pn-chapter { position: relative; scroll-margin-top: 96px; }

.pn-head {
  max-width: 760px;
  margin: 0 0 clamp(32px, 5vw, 56px);
}
.pn-head--center { margin-inline: auto; text-align: center; }

.pn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--nx-orange-dark);
  font-size: var(--nx-text-label);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pn-eyebrow b {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--nx-orange-tint);
  color: var(--nx-ink);
  font-variant-numeric: tabular-nums;
}

.pn-head h2 {
  margin: 0 0 12px;
  color: var(--nx-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.pn-head h2 em { color: var(--nx-orange-dark); font-style: normal; }
.pn-head p {
  margin: 0;
  color: var(--nx-ink-soft);
  font-size: var(--nx-text-body-lg);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Hero art: card head and footer (the body is a region graphic, .rh-*)
   -------------------------------------------------------------------------- */
.pn-hero .sp-hero__sub { max-width: 52ch; }

.pn-monday__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 6px;
}
.pn-monday__head strong { color: var(--nx-ink); font-size: 1rem; font-weight: 800; }
.pn-monday__head span { color: var(--nx-ink-soft); font-size: .8rem; font-weight: 600; }

.pn-pin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--nx-orange-tint);
  color: var(--nx-ink);
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}
.pn-pin i {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nx-orange);
}
.pn-pin i::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--nx-orange);
  opacity: 0;
}
html.nx-js .pn-pin i::after { animation: pn-ping 2.4s var(--nx-ease-out) infinite; }

@keyframes pn-ping {
  0% { transform: scale(.4); opacity: .8; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

.pn-monday__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--nx-line);
  background: var(--nx-surface-warm);
  color: var(--nx-ink-soft);
  font-size: .8rem;
  font-weight: 600;
}
.pn-monday__foot svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--nx-orange-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Region hero graphics (2026-10-05). Each region page has its own picture
   inside the same .sp-window card (head, body, footer). Shared motion:
   .rh-a marks a piece that animates in, a second class picks the motion
   (.rh-rise default, .rh-pop, .rh-drop, .rh-fade, .rh-wipe, .rh-grow-x,
   .rh-grow-y) and .rh-tN its start time (300ms + N x 150ms). .rh-gone marks a
   "before" piece that leaves. Without html.nx-js (no JS, or reduced motion)
   and before the card is in view, nothing moves: the end state is the HTML.
   -------------------------------------------------------------------------- */
.rh { --rh-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); }
.rh__body { padding: 12px 20px 20px; }
.rh small { display: block; color: var(--nx-ink-soft); font-size: .72rem; font-weight: 600; line-height: 1.35; }
.rh-label { margin: 0 0 8px; color: var(--nx-ink-soft); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rh-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--nx-orange);
  color: #000;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
.rh-tag--soft { background: var(--nx-orange-tint); color: var(--nx-ink); }
.rh-tag svg, .rh-ico { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rh-num { font-variant-numeric: tabular-nums; }
.rh-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 0; color: var(--nx-ink); font-size: .78rem; font-weight: 700; }

.rh-t0 { --t: 300ms; } .rh-t1 { --t: 450ms; } .rh-t2 { --t: 600ms; } .rh-t3 { --t: 750ms; }
.rh-t4 { --t: 900ms; } .rh-t5 { --t: 1050ms; } .rh-t6 { --t: 1200ms; } .rh-t7 { --t: 1350ms; }
.rh-t8 { --t: 1500ms; } .rh-t9 { --t: 1650ms; } .rh-t10 { --t: 1800ms; } .rh-t11 { --t: 1950ms; }
.rh-t12 { --t: 2100ms; } .rh-t13 { --t: 2250ms; } .rh-t14 { --t: 2400ms; } .rh-t15 { --t: 2550ms; }
.rh-t16 { --t: 2700ms; } .rh-t17 { --t: 2850ms; } .rh-t18 { --t: 3000ms; } .rh-t19 { --t: 3150ms; }
.rh-t20 { --t: 3300ms; } .rh-t21 { --t: 3450ms; } .rh-t22 { --t: 3600ms; } .rh-t23 { --t: 3750ms; }
.rh-t24 { --t: 3900ms; } .rh-t25 { --t: 4050ms; } .rh-t26 { --t: 4200ms; } .rh-t27 { --t: 4350ms; }
.rh-t28 { --t: 4500ms; } .rh-t29 { --t: 4650ms; } .rh-t30 { --t: 4800ms; } .rh-t31 { --t: 4950ms; }
.rh-t32 { --t: 5100ms; } .rh-t33 { --t: 5250ms; } .rh-t34 { --t: 5400ms; } .rh-t35 { --t: 5550ms; }
.rh-t36 { --t: 5700ms; } .rh-t37 { --t: 5850ms; } .rh-t38 { --t: 6000ms; } .rh-t39 { --t: 6150ms; }

.rh-gone { opacity: 0; }
html.nx-js .rh .rh-gone { opacity: 1; }
html.nx-js .rh:not(.is-in) .rh-a { opacity: 0; }
html.nx-js .rh.is-in .rh-a { animation: rh-rise 520ms var(--nx-ease-out) var(--t, 300ms) both; }
html.nx-js .rh.is-in .rh-pop { animation-name: rh-pop; animation-duration: 420ms; }
html.nx-js .rh.is-in .rh-drop { animation-name: rh-drop; }
html.nx-js .rh.is-in .rh-fade { animation-name: rh-fade; }
html.nx-js .rh.is-in .rh-wipe { animation-name: rh-wipe; animation-duration: 600ms; }
html.nx-js .rh.is-in .rh-grow-x { animation-name: rh-grow-x; animation-duration: 600ms; }
html.nx-js .rh.is-in .rh-grow-y { animation-name: rh-grow-y; animation-duration: 460ms; }
html.nx-js .rh.is-in .rh-gone { animation: rh-out 320ms var(--nx-ease-out) var(--t, 300ms) forwards; }
.rh-grow-x { transform-origin: left center; }
.rh-grow-y { transform-origin: center bottom; }

@keyframes rh-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes rh-drop { from { opacity: 0; transform: translateY(-18px); } }
@keyframes rh-fade { from { opacity: 0; } }
@keyframes rh-wipe { from { clip-path: inset(0 100% 0 0); } }
@keyframes rh-grow-x { from { transform: scaleX(0); } }
@keyframes rh-grow-y { from { transform: scaleY(0); } }
@keyframes rh-out { to { opacity: 0; transform: scale(.9); } }
@keyframes rh-pop {
  from { opacity: 0; transform: scale(.88); }
  70% { opacity: 1; transform: scale(1.04); }
}

/* Palmerston North: the inbox sorts itself into four trays. */
.rh-inbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  background: var(--nx-surface-warm);
  color: var(--nx-ink);
  font-size: .84rem;
  font-weight: 800;
}
.rh-inbox__mail { display: flex; gap: 4px; margin-left: auto; }
.rh-inbox__mail i { width: 16px; height: 12px; border: 1.5px solid var(--nx-orange-dark); border-radius: 3px; background: var(--nx-surface); }
.rh-inbox__state { display: grid; }
.rh-inbox__state > * { grid-area: 1 / 1; justify-self: end; }
.rh-trays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rh-tray { padding: 10px; border: 1px solid var(--nx-line); border-radius: 14px; background: var(--nx-surface); }
.rh-tray > p { display: flex; justify-content: space-between; margin: 0; color: var(--nx-ink); font-size: .78rem; font-weight: 800; }
.rh-tray > p span { color: var(--nx-orange-dark); }
.rh-tray ul { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.rh-chip {
  padding: 7px 9px;
  border: 1px solid var(--nx-line);
  border-radius: 9px;
  background: var(--nx-surface-warm);
  color: var(--nx-ink);
  font-size: .76rem;
  font-weight: 650;
  line-height: 1.3;
}
.rh-tray--done { border-color: var(--nx-orange); background: var(--nx-orange-tint); }
.rh-tray--done .rh-chip { background: var(--nx-surface); }

/* Feilding: the busy-season week fills with booked jobs. */
.rh-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rh-week__day { display: grid; align-content: start; gap: 5px; min-height: 178px; padding: 6px 5px; border: 1px dashed var(--nx-line); border-radius: 12px; background: var(--nx-surface-warm); }
.rh-week__day > b { color: var(--nx-ink-soft); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.rh-job {
  min-width: 0;
  margin: 0;
  padding: 6px 7px;
  border-left: 3px solid var(--nx-orange-dark);
  border-radius: 7px;
  background: var(--nx-orange-tint);
  color: var(--nx-ink);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.25;
}
.rh-job small { font-size: .66rem; overflow-wrap: anywhere; }
.rh-job--long { padding-block: 14px; }

/* Whanganui: a supplier PDF becomes an order form, field by field. */
.rh-pdf { display: grid; grid-template-columns: minmax(0, .8fr) 22px minmax(0, 1.2fr); align-items: center; gap: 8px; }
.rh-pdf__doc { padding: 12px 12px 14px; border: 1px solid var(--nx-line); border-radius: 10px; background: var(--nx-surface); box-shadow: 0 8px 20px rgba(26, 32, 44, .07); transform: rotate(-1.5deg); }
.rh-pdf__name { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--nx-ink); font-size: .7rem; font-weight: 800; overflow-wrap: anywhere; }
.rh-pdf__name span { flex: none; padding: 2px 5px; white-space: nowrap; border-radius: 4px; background: var(--nx-ink); color: #fff; font-size: .6rem; letter-spacing: .04em; }
.rh-pdf__lines { display: grid; gap: 7px; }
.rh-pdf__lines i { position: relative; display: block; height: 7px; border-radius: 4px; background: #EFE8DE; }
.rh-pdf__lines i:nth-child(2n) { width: 78%; }
.rh-pdf__lines i:nth-child(3n) { width: 62%; }
.rh-pdf__lines i b { position: absolute; inset: -3px -4px; border-radius: 5px; background: rgba(247, 148, 29, .35); }
.rh-pdf__arrow { width: 22px; height: 22px; fill: none; stroke: var(--nx-orange-dark); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.rh-form { display: grid; gap: 7px; margin: 0; }
.rh-form div { display: grid; gap: 2px; }
.rh-form dt { color: var(--nx-ink-soft); font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.rh-form dd { min-height: 30px; margin: 0; padding: 6px 9px; border: 1px solid var(--nx-line); border-radius: 8px; background: var(--nx-surface-warm); color: var(--nx-ink); font-size: .8rem; font-weight: 700; }
.rh-form dd span { display: block; }

/* Levin: one order travels the track from order to paid. */
.rh-order { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 10px 12px; border: 1px solid var(--nx-line); border-radius: 12px; background: var(--nx-surface-warm); color: var(--nx-ink); font-size: .84rem; font-weight: 800; line-height: 1.3; }
.rh-order svg { width: 30px; height: 30px; flex: none; padding: 6px; border-radius: 9px; background: var(--nx-surface); fill: none; stroke: var(--nx-orange-dark); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rh-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; text-align: center; }
.rh-trackwrap { position: relative; }
.rh-track::before,
.rh-track__fill { content: ''; position: absolute; top: 17px; left: 12.5%; width: 75%; height: 3px; border-radius: 3px; background: var(--nx-line); }
.rh-track__fill { background: var(--nx-orange); transform-origin: left center; }
.rh-track__mover { position: absolute; top: 18px; left: 12.5%; width: 75%; height: 0; }
.rh-track__mover i { position: absolute; top: -9px; left: -9px; width: 18px; height: 18px; border: 3px solid var(--nx-surface); border-radius: 50%; background: var(--nx-orange-dark); box-shadow: 0 2px 6px rgba(26, 32, 44, .2); }
.rh-stop { display: grid; justify-items: center; gap: 6px; padding: 0 3px; color: var(--nx-ink); font-size: .8rem; font-weight: 800; }
.rh-stop__node { position: relative; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--nx-line); border-radius: 50%; background: var(--nx-surface); }
.rh-stop__node::before { content: ''; position: absolute; inset: -2px; border-radius: 50%; background: var(--nx-orange); }
.rh-stop__node svg { position: relative; width: 18px; height: 18px; fill: none; stroke: #000; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rh-stop small { font-size: .68rem; }
.rh-track__fill { transform: scaleX(1); }
.rh-track__mover { transform: translateX(100%); }
html.nx-js .rh:not(.is-in) .rh-track__fill { transform: scaleX(0); }
html.nx-js .rh:not(.is-in) .rh-track__mover { transform: none; }
html.nx-js .rh.is-in .rh-track__fill { animation: rh-track-fill 4200ms var(--rh-ease-in-out) 600ms both; }
html.nx-js .rh.is-in .rh-track__mover { animation: rh-track-move 4200ms var(--rh-ease-in-out) 600ms both; }
html.nx-js .rh:not(.is-in) .rh-stop__node::before { opacity: 0; }
html.nx-js .rh.is-in .rh-stop__node::before { animation: rh-pop 420ms var(--nx-ease-out) var(--t) both; }
@keyframes rh-track-fill {
  0%, 12% { transform: scaleX(0); }
  30%, 42% { transform: scaleX(.3333); }
  60%, 72% { transform: scaleX(.6667); }
  90%, 100% { transform: scaleX(1); }
}
@keyframes rh-track-move {
  0%, 12% { transform: translateX(0); }
  30%, 42% { transform: translateX(33.333%); }
  60%, 72% { transform: translateX(66.667%); }
  90%, 100% { transform: translateX(100%); }
}

/* Masterton: the weekend bookings grid fills, then Monday's review replies. */
.rh-tbl { width: 100%; border-collapse: separate; border-spacing: 4px; color: var(--nx-ink); font-size: .76rem; table-layout: fixed; }
.rh-tbl th { color: var(--nx-ink-soft); font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.rh-tbl th[scope="row"] { text-align: left; letter-spacing: 0; text-transform: none; font-size: .74rem; color: var(--nx-ink); }
.rh-tbl td { position: relative; height: 30px; padding: 0; border: 1px dashed var(--nx-line); border-radius: 8px; text-align: center; }
.rh-tbl td > span { position: absolute; inset: -2px; display: grid; place-items: center; border-radius: 8px; background: var(--nx-orange-tint); font-weight: 800; }
.rh-tbl td.rh-full > span { background: var(--nx-orange); color: #000; }
.rh-tbl + .rh-label { margin-top: 14px; }
.rh-reviews { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rh-review { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--nx-line); border-radius: 12px; color: var(--nx-ink); font-size: .76rem; font-weight: 700; }
.rh-stars { color: var(--nx-orange); font-size: .74rem; letter-spacing: 1px; white-space: nowrap; }
.rh-stars span { color: var(--nx-line); }

/* Hawke's Bay: the picking crew's timesheets fill in and total. */
.rh-roster td { height: 28px; font-variant-numeric: tabular-nums; }
.rh-roster td > span { background: var(--nx-surface-warm); font-weight: 700; }
.rh-roster td.rh-total > span { background: var(--nx-orange); color: #000; font-weight: 800; }
.rh-roster td.rh-flag > span { background: #FFF1D6; box-shadow: inset 0 0 0 2px var(--nx-orange-dark); color: var(--nx-orange-dark); font-weight: 800; }
.rh-roster td.rh-starter > span { background: var(--nx-orange-tint); font-size: .7rem; }
.rh-roster th:first-child { width: 26%; }
.rh-roster th:last-child { width: 15%; }

/* New Plymouth: the drawing becomes a priced quote, line by line. */
.rh-dwg {
  margin: 0 0 10px;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  background-color: var(--nx-surface-warm);
  background-image: linear-gradient(rgba(224, 125, 10, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(224, 125, 10, .07) 1px, transparent 1px);
  background-size: 14px 14px;
}
.rh-dwg svg { display: block; width: 100%; height: auto; }
.rh-dwg .rh-line { fill: none; stroke: var(--nx-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rh-dwg .rh-dim { fill: none; stroke: var(--nx-orange-dark); stroke-width: 1.2; stroke-dasharray: 3 3; }
.rh-dwg text { fill: var(--nx-ink-soft); font-family: inherit; font-size: 9px; font-weight: 700; }
.rh-dwg .rh-callout circle { fill: var(--nx-orange); }
.rh-dwg .rh-callout text { fill: #000; font-size: 9px; font-weight: 800; text-anchor: middle; }
.rh-dwg .rh-callout { transform-box: fill-box; transform-origin: center; }
.rh-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
html.nx-js .rh:not(.is-in) .rh-draw { stroke-dashoffset: 1; }
html.nx-js .rh.is-in .rh-draw { animation: rh-draw 900ms var(--nx-ease-out) var(--t, 300ms) both; }
@keyframes rh-draw { from { stroke-dashoffset: 1; } }
.rh-lines { display: grid; margin: 0; padding: 0; list-style: none; }
.rh-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--nx-line); color: var(--nx-ink); font-size: .78rem; font-weight: 650; }
.rh-row > i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--nx-orange); color: #000; font-size: .62rem; font-style: normal; font-weight: 800; }
.rh-row > b { font-variant-numeric: tabular-nums; font-weight: 800; }
.rh-row--total { border-bottom: 0; font-size: .86rem; font-weight: 800; }

/* Wellington: month-end hours stack up, then become invoices. */
.rh-chart { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.rh-bar { display: grid; grid-template-rows: auto 136px auto; justify-items: center; color: var(--nx-ink); font-size: .72rem; font-weight: 800; line-height: 1.25; text-align: center; }
.rh-bar__inv { display: grid; justify-items: center; gap: 3px; margin-bottom: 6px; font-size: .8rem; }
.rh-bar__area { display: flex; align-items: flex-end; justify-content: center; width: 100%; border-bottom: 2px solid var(--nx-line); }
.rh-bar__stack { display: flex; flex-direction: column-reverse; gap: 2px; width: 56%; }
.rh-bar__stack i { display: block; border-radius: 4px 4px 2px 2px; background: var(--nx-orange); }
.rh-bar__stack i:nth-child(2) { background: #FFC77A; }
.rh-bar__stack i:nth-child(3) { background: var(--nx-orange-dark); }
.rh-bar:nth-child(1) i:nth-child(1) { height: 40px; } .rh-bar:nth-child(1) i:nth-child(2) { height: 33px; } .rh-bar:nth-child(1) i:nth-child(3) { height: 20px; }
.rh-bar:nth-child(2) i:nth-child(1) { height: 50px; } .rh-bar:nth-child(2) i:nth-child(2) { height: 45px; } .rh-bar:nth-child(2) i:nth-child(3) { height: 35px; }
.rh-bar:nth-child(3) i:nth-child(1) { height: 35px; } .rh-bar:nth-child(3) i:nth-child(2) { height: 25px; }
.rh-bar:nth-child(4) i:nth-child(1) { height: 45px; } .rh-bar:nth-child(4) i:nth-child(2) { height: 40px; } .rh-bar:nth-child(4) i:nth-child(3) { height: 23px; }
.rh-bar__label { padding: 6px 2px 0; }

/* Taupō: the event weekend books out and the enquiry surge is answered. */
.rh-nights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.rh-night { display: grid; justify-items: center; gap: 7px; padding: 9px 6px; border: 1px solid var(--nx-line); border-radius: 12px; background: var(--nx-surface-warm); color: var(--nx-ink); font-size: .74rem; font-weight: 800; text-align: center; }
.rh-night--full { border-color: var(--nx-orange); }
.rh-rooms { display: grid; grid-template-columns: repeat(2, 14px); gap: 5px; }
.rh-rooms i { position: relative; width: 14px; height: 14px; border: 1.5px solid var(--nx-line); border-radius: 4px; background: var(--nx-surface); }
.rh-rooms i.is-booked::after { content: ''; position: absolute; inset: -1.5px; border-radius: 4px; background: var(--nx-orange); }
html.nx-js .rh:not(.is-in) .rh-rooms i.is-booked::after { opacity: 0; }
html.nx-js .rh.is-in .rh-rooms i.is-booked::after { animation: rh-pop 360ms var(--nx-ease-out) var(--t) both; }
.rh-night:nth-child(1) { --c: 0ms; } .rh-night:nth-child(2) { --c: 220ms; } .rh-night:nth-child(3) { --c: 440ms; } .rh-night:nth-child(4) { --c: 660ms; }
.rh-rooms i:nth-child(1) { --t: calc(var(--c) + 400ms); } .rh-rooms i:nth-child(2) { --t: calc(var(--c) + 520ms); }
.rh-rooms i:nth-child(3) { --t: calc(var(--c) + 640ms); } .rh-rooms i:nth-child(4) { --t: calc(var(--c) + 760ms); }
.rh-rooms i:nth-child(5) { --t: calc(var(--c) + 880ms); } .rh-rooms i:nth-child(6) { --t: calc(var(--c) + 1000ms); }
.rh-rooms i:nth-child(7) { --t: calc(var(--c) + 1120ms); } .rh-rooms i:nth-child(8) { --t: calc(var(--c) + 1240ms); }
.rh-night small { font-size: .66rem; }
.rh-meter { margin-top: 14px; }
.rh-meter__bar { height: 8px; overflow: hidden; border-radius: 999px; background: var(--nx-line); }
.rh-meter__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FFC77A, var(--nx-orange)); }
html.nx-js .rh.is-in .rh-meter__bar i { animation-duration: 2000ms; }
.rh-meter p { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 6px; color: var(--nx-ink); font-size: .78rem; font-weight: 800; }

/* Rotorua: the clock turns from 10pm to 8am as enquiries are answered. */
.rh-overnight { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 16px; }
.rh-clock { width: 128px; height: 128px; }
.rh-clock .rh-face { fill: var(--nx-surface-warm); stroke: var(--nx-line); stroke-width: 2; }
.rh-clock .rh-ticks { stroke: var(--nx-ink-soft); stroke-width: 2; stroke-linecap: round; }
.rh-clock .rh-mark { fill: var(--nx-orange); }
.rh-clock .rh-mark, .rh-clock .rh-sky { transform-box: fill-box; transform-origin: center; }
.rh-clock .rh-hand { stroke: var(--nx-ink); stroke-width: 4; stroke-linecap: round; transform-box: view-box; transform-origin: 50% 50%; transform: rotate(240deg); }
.rh-clock .rh-min { stroke: var(--nx-ink-soft); stroke-width: 2.5; stroke-linecap: round; }
.rh-clock .rh-hub { fill: var(--nx-ink); }
.rh-clock .rh-sky { fill: none; stroke: var(--nx-orange-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.nx-js .rh:not(.is-in) .rh-hand { transform: rotate(-60deg); }
html.nx-js .rh.is-in .rh-hand { animation: rh-turn 5000ms linear 600ms both; }
@keyframes rh-turn { from { transform: rotate(-60deg); } to { transform: rotate(240deg); } }
.rh-log { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.rh-log li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 2px 8px; color: var(--nx-ink); font-size: .76rem; font-weight: 700; line-height: 1.3; }
.rh-log time { grid-row: span 2; padding-top: 1px; color: var(--nx-orange-dark); font-size: .74rem; font-weight: 800; }
.rh-log .rh-tag { justify-self: start; padding: 2px 8px; font-size: .64rem; }

/* Hamilton: field-day leads move along the pipeline to "Followed up". */
.rh-pipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(4, auto); gap: 6px 8px; margin: 0; }
.rh-lane { grid-row: 1 / -1; border-radius: 12px; background: var(--nx-surface-warm); }
.rh-lane:nth-child(1) { grid-column: 1; } .rh-lane:nth-child(2) { grid-column: 2; } .rh-lane:nth-child(3) { grid-column: 3; background: var(--nx-orange-tint); }
.rh-pipe__head { grid-row: 1; padding: 8px 9px 2px; color: var(--nx-ink); font-size: .76rem; font-weight: 800; line-height: 1.25; }
.rh-pipe__head:nth-of-type(1) { grid-column: 1; } .rh-pipe__head:nth-of-type(2) { grid-column: 2; } .rh-pipe__head:nth-of-type(3) { grid-column: 3; }
.rh-pipe ul { display: contents; }
.rh-lead { position: relative; z-index: 1; grid-column: 3; margin: 0 5px; padding: 6px 8px; border: 1px solid var(--nx-line); border-radius: 9px; background: var(--nx-surface); color: var(--nx-ink); font-size: .72rem; font-weight: 800; line-height: 1.25; list-style: none; box-shadow: 0 2px 6px rgba(26, 32, 44, .05); }
.rh-lead:nth-child(1) { grid-row: 2; } .rh-lead:nth-child(2) { grid-row: 3; } .rh-lead:nth-child(3) { grid-row: 4; } .rh-lead:nth-child(4) { grid-row: 5; margin-bottom: 6px; }
.rh-trace { align-self: center; justify-self: center; display: flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px dashed #E2D6C5; border-radius: 999px; color: var(--nx-ink-soft); font-size: .64rem; font-style: normal; font-weight: 700; }
.rh-trace:nth-of-type(odd) { grid-column: 1; } .rh-trace:nth-of-type(even) { grid-column: 2; }
.rh-trace:nth-of-type(1), .rh-trace:nth-of-type(2) { grid-row: 2; } .rh-trace:nth-of-type(3), .rh-trace:nth-of-type(4) { grid-row: 3; }
.rh-trace:nth-of-type(5), .rh-trace:nth-of-type(6) { grid-row: 4; } .rh-trace:nth-of-type(7), .rh-trace:nth-of-type(8) { grid-row: 5; }
.rh-lead small { display: flex; align-items: center; gap: 4px; color: var(--nx-orange-dark); font-size: .66rem; font-weight: 800; }
html.nx-js .rh:not(.is-in) .rh-lead { opacity: 0; }
html.nx-js .rh.is-in .rh-lead { animation: rh-advance 2200ms var(--rh-ease-in-out) var(--t) both; }
@keyframes rh-advance {
  0% { opacity: 0; transform: translateX(calc(-200% - 36px)) rotate(-3deg); }
  12% { opacity: 1; transform: translateX(calc(-200% - 36px)) rotate(-3deg); }
  40%, 55% { transform: translateX(calc(-100% - 18px)) rotate(0deg); }
  85%, 100% { opacity: 1; transform: none; }
}

/* Tauranga: a variation is priced into this month's progress claim. */
.rh-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 9px 12px; border-radius: 4px 12px 12px 12px; background: #FFE9C7; color: var(--nx-ink); font-size: .78rem; font-weight: 800; line-height: 1.3; box-shadow: 0 6px 14px rgba(224, 125, 10, .14); transform: rotate(-1deg); }
.rh-claim { padding: 10px 14px 6px; border: 1px solid var(--nx-line); border-radius: 12px; background: var(--nx-surface); }
.rh-claim__head { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 8px; color: var(--nx-ink); font-size: .84rem; font-weight: 800; }
.rh-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; color: var(--nx-ink-soft); font-size: .7rem; font-weight: 800; white-space: nowrap; }
.rh-progress div { flex: 1; height: 7px; overflow: hidden; border-radius: 999px; background: var(--nx-line); }
.rh-progress i { display: block; width: 60%; height: 100%; border-radius: inherit; background: var(--nx-orange); transform-origin: left center; }
html.nx-js .rh:not(.is-in) .rh-progress i { transform: scaleX(.75); }
html.nx-js .rh.is-in .rh-progress i { animation: rh-claim-grow 900ms var(--nx-ease-out) var(--t) both; }
@keyframes rh-claim-grow { from { transform: scaleX(.75); } }
.rh-claim .rh-row { grid-template-columns: minmax(0, 1fr) auto; }
.rh-row--var { margin: 0 -8px; padding-inline: 8px; border-radius: 8px; background: var(--nx-orange-tint); }

/* Narrow cards (the art is hidden below 768px; this keeps it sound if shown). */
@media (max-width: 479px) {
  .rh__body { padding-inline: 14px; }
  .rh-overnight { grid-template-columns: 1fr; justify-items: center; }
  .rh-pdf { grid-template-columns: 1fr; }
  .rh-pdf__arrow { justify-self: center; transform: rotate(90deg); }
}

/* --------------------------------------------------------------------------
   Chapter 1: the week
   -------------------------------------------------------------------------- */
.pn-week {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pn-week::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg, var(--nx-orange), #FFC77A);
  transform-origin: left;
}
html.nx-js .pn-week::before { transform: scaleX(0); transition: transform 1100ms var(--nx-ease-out) 120ms; }
html.nx-js .pn-week.is-in::before { transform: scaleX(1); }

.pn-day { position: relative; padding-top: 58px; }
.pn-day__dot {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--nx-orange);
  border-radius: 50%;
  background: var(--nx-surface);
  color: var(--nx-ink);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.pn-day__card {
  height: 100%;
  padding: 20px 18px 22px;
  border: 1px solid var(--nx-line);
  border-radius: 18px;
  background: var(--nx-surface);
  box-shadow: var(--nx-shadow-soft);
  transition: transform var(--nx-t-base) var(--nx-ease-out), box-shadow var(--nx-t-base) var(--nx-ease-out);
}
.pn-day__card:hover { transform: translateY(-4px); box-shadow: var(--nx-shadow-lift); }
.pn-day h3 { margin: 0 0 8px; color: var(--nx-ink); font-size: 1.05rem; font-weight: 750; line-height: 1.3; }
.pn-day p { margin: 0; color: var(--nx-ink-soft); font-size: .93rem; line-height: 1.6; }
.pn-day--ai .pn-day__card { background: var(--nx-orange-tint); border-color: rgba(247, 148, 29, .35); }

html.nx-js .pn-week .pn-day { opacity: 0; transform: translateY(18px); transition: opacity 500ms var(--nx-ease-out), transform 500ms var(--nx-ease-out); }
html.nx-js .pn-week.is-in .pn-day { opacity: 1; transform: none; }
html.nx-js .pn-week.is-in .pn-day:nth-child(2) { transition-delay: 160ms; }
html.nx-js .pn-week.is-in .pn-day:nth-child(3) { transition-delay: 320ms; }
html.nx-js .pn-week.is-in .pn-day:nth-child(4) { transition-delay: 480ms; }
html.nx-js .pn-week.is-in .pn-day:nth-child(5) { transition-delay: 640ms; }

.pn-week__sum {
  max-width: 640px;
  margin: clamp(32px, 5vw, 48px) auto 0;
  color: var(--nx-ink);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}
.pn-week__sum em { color: var(--nx-orange-dark); font-style: normal; }

/* --------------------------------------------------------------------------
   Chapter 2: three services on one brain
   -------------------------------------------------------------------------- */
.pn-stack { display: grid; gap: 16px; }
.pn-stack__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pn-service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border: 1px solid var(--nx-line);
  border-radius: 22px;
  background: var(--nx-surface);
  box-shadow: var(--nx-shadow-soft);
  text-decoration: none;
  transition: transform var(--nx-t-base) var(--nx-ease-out), box-shadow var(--nx-t-base) var(--nx-ease-out), border-color var(--nx-t-base) var(--nx-ease-out);
}
.pn-service:hover { transform: translateY(-4px); box-shadow: var(--nx-shadow-lift); border-color: rgba(247, 148, 29, .45); }
.pn-service__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--nx-orange-tint);
  color: var(--nx-orange-dark);
}
.pn-service__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pn-service h3 { margin: 0 0 8px; color: var(--nx-ink); font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.pn-service p { flex: 1; margin: 0 0 18px; color: var(--nx-ink-soft); font-size: .96rem; line-height: 1.6; }
.pn-service__more { color: var(--nx-ink); font-size: .9rem; font-weight: 700; }
.pn-service__more span { display: inline-block; color: var(--nx-orange-dark); transition: transform var(--nx-t-base) var(--nx-ease-out); }
.pn-service:hover .pn-service__more span { transform: translateX(4px); }
.pn-service:focus-visible { outline: 3px solid rgba(247, 148, 29, .45); outline-offset: 3px; }

.pn-brain {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-radius: 22px;
  background: var(--nx-navy);
  color: #fff;
  overflow: hidden;
}
.pn-brain::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 140% at 0% 50%, rgba(247, 148, 29, .28), transparent 70%);
}
.pn-brain > * { position: relative; }
.pn-brain__mark { width: 44px; height: 44px; }
.pn-brain h3 { margin: 0 0 2px; color: #fff; font-size: 1.1rem; font-weight: 800; }
.pn-brain p { margin: 0; color: rgba(255, 255, 255, .82); font-size: .95rem; line-height: 1.55; }
.pn-brain a {
  color: var(--nx-orange);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.pn-brain a:hover { text-decoration: underline; }
.pn-brain a:focus-visible { outline: 3px solid rgba(247, 148, 29, .6); outline-offset: 3px; border-radius: 4px; }

/* The three services rise, then the brain slides in underneath them. */
html.nx-js .pn-stack .pn-service { opacity: 0; transform: translateY(22px); transition: opacity 520ms var(--nx-ease-out), transform 520ms var(--nx-ease-out), box-shadow var(--nx-t-base) var(--nx-ease-out), border-color var(--nx-t-base) var(--nx-ease-out); }
html.nx-js .pn-stack.is-in .pn-service { opacity: 1; transform: none; }
html.nx-js .pn-stack.is-in .pn-service:nth-child(2) { transition-delay: 110ms, 110ms, 0ms, 0ms; }
html.nx-js .pn-stack.is-in .pn-service:nth-child(3) { transition-delay: 220ms, 220ms, 0ms, 0ms; }
html.nx-js .pn-stack .pn-brain { opacity: 0; transform: scaleX(.92); transition: opacity 600ms var(--nx-ease-out) 420ms, transform 700ms var(--nx-ease-out) 420ms; }
html.nx-js .pn-stack.is-in .pn-brain { opacity: 1; transform: none; }
html.nx-js .pn-stack.is-in .pn-service:hover { transform: translateY(-4px); }

.pn-vision {
  margin: 22px 0 0;
  color: var(--nx-ink-soft);
  font-size: .95rem;
  text-align: center;
}
.pn-vision a { color: var(--nx-ink); font-weight: 700; text-decoration-color: var(--nx-orange); text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Chapter 3: before and after
   -------------------------------------------------------------------------- */
.pn-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(16px, 3vw, 32px);
}
.pn-compare__col {
  padding: 26px 26px 28px;
  border: 1px solid var(--nx-line);
  border-radius: 22px;
  background: var(--nx-surface);
}
.pn-compare__col--after {
  border-color: rgba(247, 148, 29, .45);
  background: linear-gradient(180deg, var(--nx-orange-tint), var(--nx-surface));
  box-shadow: var(--nx-shadow-lift);
}
.pn-compare h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--nx-ink);
  font-size: 1.1rem;
  font-weight: 800;
}
.pn-compare h3 small {
  padding: 4px 10px;
  border-radius: 999px;
  background: #F3EEE7;
  color: var(--nx-ink-soft);
  font-size: .72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pn-compare__col--after h3 small { background: var(--nx-orange); color: #000; }

.pn-steps-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pn;
}
.pn-steps-list li {
  position: relative;
  padding: 12px 14px 12px 46px;
  border-radius: 12px;
  background: var(--nx-surface-warm);
  color: var(--nx-ink);
  font-size: .94rem;
  font-weight: 550;
  line-height: 1.45;
  counter-increment: pn;
}
.pn-steps-list li::before {
  content: counter(pn);
  position: absolute;
  top: 50%;
  left: 12px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--nx-surface);
  color: var(--nx-ink-soft);
  font-size: .72rem;
  font-weight: 800;
  transform: translateY(-50%);
}
.pn-compare__col--after .pn-steps-list li { background: var(--nx-surface); box-shadow: 0 1px 0 var(--nx-line); }
.pn-compare__col--after .pn-steps-list li::before { background: var(--nx-orange); color: #000; }
.pn-steps-list li.is-lost { color: var(--nx-error); }

.pn-compare__arrow {
  display: grid;
  place-items: center;
  align-self: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--nx-orange);
  color: #000;
  box-shadow: 0 10px 24px rgba(247, 148, 29, .35);
}
.pn-compare__arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

/* Before steps fade back in sequence, the arrow spins in, after steps light up. */
html.nx-js .pn-compare .pn-compare__col--before li { transition: opacity 400ms var(--nx-ease-out), transform 400ms var(--nx-ease-out); }
html.nx-js .pn-compare.is-in .pn-compare__col--before li { opacity: .55; }
html.nx-js .pn-compare.is-in .pn-compare__col--before li.is-lost { opacity: 1; }
html.nx-js .pn-compare.is-in .pn-compare__col--before li:nth-child(2) { transition-delay: 90ms; }
html.nx-js .pn-compare.is-in .pn-compare__col--before li:nth-child(3) { transition-delay: 180ms; }
html.nx-js .pn-compare.is-in .pn-compare__col--before li:nth-child(4) { transition-delay: 270ms; }
html.nx-js .pn-compare.is-in .pn-compare__col--before li:nth-child(5) { transition-delay: 360ms; }
html.nx-js .pn-compare.is-in .pn-compare__col--before li:nth-child(6) { transition-delay: 450ms; }
html.nx-js .pn-compare .pn-compare__arrow { opacity: 0; transform: scale(.6) rotate(-90deg); transition: opacity 400ms var(--nx-ease-out) 600ms, transform 500ms var(--nx-ease-out) 600ms; }
html.nx-js .pn-compare.is-in .pn-compare__arrow { opacity: 1; transform: none; }
html.nx-js .pn-compare .pn-compare__col--after { opacity: 0; transform: translateX(24px); transition: opacity 560ms var(--nx-ease-out) 820ms, transform 560ms var(--nx-ease-out) 820ms; }
html.nx-js .pn-compare.is-in .pn-compare__col--after { opacity: 1; transform: none; }
html.nx-js .pn-compare .pn-compare__col--after li { opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--nx-ease-out), transform 400ms var(--nx-ease-out); }
html.nx-js .pn-compare.is-in .pn-compare__col--after li { opacity: 1; transform: none; }
html.nx-js .pn-compare.is-in .pn-compare__col--after li:nth-child(1) { transition-delay: 1100ms; }
html.nx-js .pn-compare.is-in .pn-compare__col--after li:nth-child(2) { transition-delay: 1220ms; }
html.nx-js .pn-compare.is-in .pn-compare__col--after li:nth-child(3) { transition-delay: 1340ms; }

.pn-compare__col--after { display: flex; flex-direction: column; }
.pn-guard {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: auto 0 0;
  padding: 18px 18px;
  border-radius: 16px;
  background: var(--nx-navy);
  color: rgba(255, 255, 255, .85);
  font-size: .95rem;
  line-height: 1.5;
  box-shadow: 0 12px 28px rgba(26, 26, 46, .22);
}
.pn-compare__col--after .pn-steps-list { margin-bottom: 22px; }
.pn-guard strong { display: block; margin-bottom: 2px; color: #fff; font-size: 1.08rem; font-weight: 800; }
.pn-guard svg {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 12px;
  background: var(--nx-orange);
  fill: none;
  stroke: #000;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html.nx-js .pn-compare .pn-guard { opacity: 0; transform: translateY(10px) scale(.97); transition: opacity 480ms var(--nx-ease-out) 1550ms, transform 480ms var(--nx-ease-out) 1550ms; }
html.nx-js .pn-compare.is-in .pn-guard { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Chapter 4: proof
   -------------------------------------------------------------------------- */
.pn-proof {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.pn-proof__tag {
  display: block;
  margin-bottom: 12px;
  color: var(--nx-ink);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pn-proof h3 { margin: 0 0 12px; color: var(--nx-ink); font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.pn-proof__copy > p { margin: 0 0 18px; color: var(--nx-ink-soft); line-height: 1.65; }
.pn-ticks { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.pn-ticks li { position: relative; padding-left: 30px; color: var(--nx-ink); line-height: 1.55; }
.pn-ticks li::before {
  content: '';
  position: absolute;
  top: .25em;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--nx-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.pn-proof__media { position: relative; }
.pn-proof__media img { display: block; width: 100%; height: auto; }
html.nx-js .pn-proof__media .sp-window { transform: perspective(1400px) rotateY(-8deg) rotateX(3deg) scale(.96); opacity: 0; transition: transform 900ms var(--nx-ease-out), opacity 600ms var(--nx-ease-out); }
html.nx-js .pn-proof__media.is-in .sp-window { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); opacity: 1; }
.pn-proof__media:hover .sp-window { transform: perspective(1400px) rotateY(0) rotateX(0); }

.pn-quote {
  position: absolute;
  right: -12px;
  bottom: -28px;
  max-width: 300px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--nx-line);
  border-radius: 16px;
  background: var(--nx-surface);
  box-shadow: var(--nx-shadow-lift);
  color: var(--nx-ink);
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.45;
}
.pn-quote__stars { display: block; margin-bottom: 6px; color: var(--nx-orange); font-size: .9rem; letter-spacing: 2px; }
.pn-quote cite { display: block; margin-top: 8px; color: var(--nx-ink-soft); font-size: .8rem; font-style: normal; font-weight: 600; }
html.nx-js .pn-proof__media .pn-quote { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--nx-ease-out) 500ms, transform 500ms var(--nx-ease-out) 500ms; }
html.nx-js .pn-proof__media.is-in .pn-quote { opacity: 1; transform: none; }
.pn-proof__caption { margin: 12px 0 0; color: var(--nx-ink-soft); font-size: .8rem; }

.pn-honest {
  max-width: 720px;
  margin: clamp(48px, 7vw, 72px) auto 0;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--nx-surface);
  color: var(--nx-ink-soft);
  font-size: .96rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Chapter 5: how it works + cost
   -------------------------------------------------------------------------- */
.pn-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pn-flow::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 28px;
  right: calc(25% - 20px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--nx-orange) 0 10px, transparent 10px 18px);
  transform-origin: left;
}
html.nx-js .pn-flow::before { transform: scaleX(0); transition: transform 1200ms var(--nx-ease-out) 150ms; }
html.nx-js .pn-flow.is-in::before { transform: scaleX(1); }

.pn-flow li { position: relative; }
.pn-flow__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--nx-orange);
  color: #000;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(247, 148, 29, .28);
}
.pn-flow h3 { margin: 0 0 6px; color: var(--nx-ink); font-size: 1.1rem; font-weight: 800; }
.pn-flow p { margin: 0; color: var(--nx-ink-soft); font-size: .95rem; line-height: 1.6; }
html.nx-js .pn-flow li { opacity: 0; transform: translateY(16px); transition: opacity 480ms var(--nx-ease-out), transform 480ms var(--nx-ease-out); }
html.nx-js .pn-flow.is-in li { opacity: 1; transform: none; }
html.nx-js .pn-flow.is-in li:nth-child(2) { transition-delay: 260ms; }
html.nx-js .pn-flow.is-in li:nth-child(3) { transition-delay: 520ms; }
html.nx-js .pn-flow.is-in li:nth-child(4) { transition-delay: 780ms; }

.pn-cost {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 26px 28px;
  border: 1px solid var(--nx-line);
  border-radius: 22px;
  background: var(--nx-surface);
  box-shadow: var(--nx-shadow-soft);
}
.pn-cost__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--nx-orange-tint); color: var(--nx-orange-dark); }
.pn-cost__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pn-cost h3 { margin: 0 0 8px; color: var(--nx-ink); font-size: 1.2rem; font-weight: 800; }
.pn-cost p { margin: 0; color: var(--nx-ink-soft); line-height: 1.65; }
.pn-cost a { color: var(--nx-ink); font-weight: 700; text-decoration-color: var(--nx-orange); text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Chapter 6: local
   -------------------------------------------------------------------------- */
.pn-local {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.pn-radar {
  position: relative;
  aspect-ratio: 1;
  max-width: 440px;
  margin-inline: auto;
  width: 100%;
}
.pn-radar svg { display: block; width: 100%; height: 100%; }
.pn-radar__ring { fill: none; stroke: rgba(247, 148, 29, .35); stroke-width: 1; }
.pn-radar__ring--dash { stroke-dasharray: 3 6; }
.pn-radar__sweep { transform-origin: 200px 200px; }
html.nx-js .pn-radar__sweep { animation: pn-sweep 7s linear infinite; }
@keyframes pn-sweep { to { transform: rotate(360deg); } }
.pn-radar__pulse { transform-origin: 200px 200px; fill: rgba(247, 148, 29, .18); opacity: 0; }
html.nx-js .pn-radar__pulse { animation: pn-pulse 3s var(--nx-ease-out) infinite; }
html.nx-js .pn-radar__pulse--2 { animation-delay: 1.5s; }
@keyframes pn-pulse {
  0% { transform: scale(.1); opacity: .9; }
  100% { transform: scale(1); opacity: 0; }
}
.pn-radar__label {
  position: absolute;
  left: 50%;
  top: calc(50% + 34px);
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--nx-navy);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(26, 26, 46, .25);
}
.pn-radar__label span { color: var(--nx-orange); }
.pn-radar__chip {
  position: absolute;
  padding: 6px 12px;
  border: 1px solid var(--nx-line);
  border-radius: 999px;
  background: var(--nx-surface);
  color: var(--nx-ink);
  font-size: .76rem;
  font-weight: 700;
  box-shadow: var(--nx-shadow-soft);
  white-space: nowrap;
}
.pn-radar__chip--a { top: 12%; left: 4%; }
.pn-radar__chip--b { top: 20%; right: 0; }
.pn-radar__chip--c { bottom: 12%; right: 8%; }
html.nx-js .pn-radar__chip { opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--nx-ease-out), transform 500ms var(--nx-ease-out); }
html.nx-js .pn-radar.is-in .pn-radar__chip { opacity: 1; transform: none; }
html.nx-js .pn-radar.is-in .pn-radar__chip--b { transition-delay: 200ms; }
html.nx-js .pn-radar.is-in .pn-radar__chip--c { transition-delay: 400ms; }

.pn-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pn-reason {
  padding: 22px 22px 24px;
  border: 1px solid var(--nx-line);
  border-radius: 18px;
  background: var(--nx-surface);
  transition: transform var(--nx-t-base) var(--nx-ease-out), box-shadow var(--nx-t-base) var(--nx-ease-out);
}
.pn-reason:hover { transform: translateY(-4px); box-shadow: var(--nx-shadow-soft); }
.pn-reason svg { width: 26px; height: 26px; margin-bottom: 12px; fill: none; stroke: var(--nx-orange-dark); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pn-reason h3 { margin: 0 0 6px; color: var(--nx-ink); font-size: 1.05rem; font-weight: 800; }
.pn-reason p { margin: 0; color: var(--nx-ink-soft); font-size: .94rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Questions + closing call
   -------------------------------------------------------------------------- */
.pn-faq-wrap { max-width: 860px; margin-inline: auto; }
.pn-call-extra { margin: 14px 0 0; font-size: .92rem; }
.pn-call-extra a { color: #000; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.pn-call-extra a:focus-visible { outline: 3px solid #000; outline-offset: 2px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .pn-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pn-week::before { display: none; }
  .pn-day { padding-top: 0; padding-left: 0; }
  .pn-day__dot { position: static; margin-bottom: 12px; }
  .pn-day__card { height: auto; }
  .pn-day:last-child { grid-column: 1 / -1; }
  .pn-stack__row { grid-template-columns: 1fr; }
  .pn-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .pn-flow::before { display: none; }
  .pn-proof, .pn-local { grid-template-columns: 1fr; }
  .pn-quote { position: relative; right: auto; bottom: auto; max-width: none; margin-top: 16px; }
}

@media (max-width: 767px) {
  .pn-week { grid-template-columns: 1fr; }
  .pn-compare { grid-template-columns: 1fr; }
  .pn-compare__arrow { justify-self: center; transform: rotate(90deg); }
  html.nx-js .pn-compare.is-in .pn-compare__arrow { transform: rotate(90deg); }
  html.nx-js .pn-compare .pn-compare__col--after { transform: translateY(20px); transition-delay: 250ms, 250ms; }
  html.nx-js .pn-compare .pn-compare__arrow { transition-delay: 150ms, 150ms; }
  html.nx-js .pn-compare.is-in .pn-compare__col--after li:nth-child(1) { transition-delay: 450ms; }
  html.nx-js .pn-compare.is-in .pn-compare__col--after li:nth-child(2) { transition-delay: 550ms; }
  html.nx-js .pn-compare.is-in .pn-compare__col--after li:nth-child(3) { transition-delay: 650ms; }
  html.nx-js .pn-compare .pn-guard { transition-delay: 800ms, 800ms; }
  .pn-flow { grid-template-columns: 1fr; }
  .pn-reasons { grid-template-columns: 1fr; }
  .pn-brain { grid-template-columns: auto 1fr; }
  .pn-brain a { grid-column: 1 / -1; }
  .pn-cost { grid-template-columns: 1fr; }
  .pn-radar { max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .pn-rail, .pn-rail * , .pn-day__card, .pn-service, .pn-reason { transition: none !important; }
  .pn-pin i::after, .pn-radar__sweep, .pn-radar__pulse { animation: none !important; }
}

/* ==========================================================================
   Phone template (2026-10-01). Shared by the region, guide and industry pages,
   which all load this file. Below 768px: tighter sections, compact cards and
   rows, decorative mock-ups left out. Long card grids fold to three with a
   "See all" button and guides gain a contents list, one mid-article call card
   and folded sources (both added by script.js). All content stays in the HTML.
   `main` raises specificity over the per-region stylesheets loaded after this.
   ========================================================================== */
.phone-fold__more, .phone-cta, .phone-toc { display: none; }

@media (max-width: 767px) {
  main .pn-chapter.nx-section,
  main .pn-chapter + .nx-section { padding-block: 44px; }
  main .pn-head { margin-bottom: 22px; }

  /* Hero: the "your week" mock-up is decoration on a phone. */
  main .pn-hero .sp-hero__art { display: none; }

  /* Card grids become compact cards without icons. */
  main .fd-grid, main .pn-reasons, main .ind-grid { gap: 10px; }
  main .fd-card, main .pn-reason, main .ind-card { padding: 16px 18px; }
  main .fd-card > svg, main .pn-reason > svg, main .ind-card > svg { display: none; }
  main .fd-card h3, main .pn-reason h3, main .ind-card h3 { margin-bottom: 4px; font-size: 1.02rem; }
  main .fd-card p, main .pn-reason p, main .ind-card p { font-size: .92rem; line-height: 1.5; }

  /* Folded grids: three cards, then the "See all" button. */
  main .phone-fold:not(.is-open) > :nth-child(n+4) { display: none; }
  main .phone-fold__more { display: flex; justify-content: center; margin: 16px 0 0; }

  /* Story timelines and day cards: compact rows. */
  main .fd-year { gap: 10px; }
  main .fd-season { padding: 16px 18px; }
  main .fd-season p { margin-bottom: 8px; font-size: .92rem; line-height: 1.5; }
  main .pn-day { padding-top: 0; }
  main .pn-day__card { padding: 16px 18px; }

  /* Services: compact link rows (title and arrow). */
  main .pn-stack, main .pn-stack__row { gap: 10px; }
  main .pn-service { padding: 16px 18px; }
  main .pn-service__icon { display: none; }
  main .pn-service p { display: none; }
  main .pn-service h3 { margin-bottom: 4px; font-size: 1.08rem; }
  main .pn-brain { padding: 16px 18px; }
  main .pn-brain > svg { display: none; }

  /* How it works: compact numbered rows. */
  main .pn-flow { row-gap: 16px; }
  main .pn-flow li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; }
  main .pn-flow__num { grid-row: span 2; width: 40px; height: 40px; margin: 0; font-size: 1rem; }
  main .pn-flow h3 { margin: 6px 0 4px; }
  main .pn-flow p { margin: 0; font-size: .93rem; line-height: 1.5; }

  /* Palmerston North: before/after and the PNBHS proof are left out on phones
     (as on AI Automation); the local radar graphic too. */
  main #pn-change, main #pn-proof, main .pn-radar { display: none; }

  /* Guides: contents list, one call card mid-article, folded sources. */
  main .phone-toc { display: block; margin: 20px 0 8px; border: 1px solid var(--nx-line); border-radius: 14px; background: #fff; }
  main .phone-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; font-weight: 800; cursor: pointer; }
  main .phone-toc ol { margin: 0; padding: 0 16px 14px 34px; }
  main .phone-toc li { padding: 6px 0; }
  main .phone-toc a { color: var(--nx-ink); text-decoration-color: var(--nx-orange); text-underline-offset: 3px; }
  main .phone-cta { display: block; margin: 28px 0; padding: 20px; border-radius: 16px; background: var(--nx-orange-tint); }
  main .phone-cta p { margin: 0 0 12px; color: var(--nx-ink); font-weight: 800; }
  main .phone-cta .phone-cta__actions { display: grid; gap: 10px; }
  main .phone-cta a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font-weight: 800; text-decoration: none; }
  main .phone-cta a:first-child { background: var(--nx-orange); color: var(--nx-ink); }
  main .phone-cta a:last-child { border: 2px solid var(--nx-ink); color: var(--nx-ink); }
  main .phone-sources summary { min-height: 44px; font-weight: 800; cursor: pointer; }
  main h2[id].phone-anchor { scroll-margin-top: 96px; }
}
