/* ==========================================================================
   START FROM WHERE YOU ARE (.sp): the add / replace / upgrade section that
   sits right under the hero on every service page (batch 6). Residential
   Real Estate keeps its own original version (.rx-paths in verticals.css).

   Every page gets its own .sp--<name> design to match its aesthetic. The
   three headings are always "Add something new", "Replace what isn't
   working" and "Upgrade what you already have", and each design gives them
   a strong treatment of its own so they stand out. Shared pieces are only
   the section head and the closing bridge line.
   ========================================================================== */

.sp .h2 em { color: var(--cobalt); }
.sp .section-head { max-width: 880px; }
.sp h3 { text-wrap: balance; }

.sp-bridge {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  max-width: 780px;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-600);
}
.sp-bridge svg { flex: none; width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; color: var(--cobalt); }
.sp-bridge a { color: var(--cobalt); font-weight: 500; }

/* --------------------------------------------------------------------------
   Finance hub: index-card tabs. Each heading sits on a solid tab in its own
   shade of blue, like dividers in a binder.
   -------------------------------------------------------------------------- */
.sp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 1.5rem); row-gap: 0; }
/* three shared rows (tab, text, example) so every tab is the same height */
.sp-tab {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 1rem;
  padding: 0 0 1.5rem;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line-light);
  overflow: hidden;
}
.sp-tab--add { --tab: var(--cobalt); }
.sp-tab--replace { --tab: var(--cobalt-deep); }
.sp-tab--upgrade { --tab: var(--navy-900); }
.sp-tab__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 6.2rem;
  padding: 1.4rem 1.5rem;
  background: var(--tab);
  color: #fff;
}
/* the notch where the tab meets the card */
.sp-tab__head::after {
  content: "";
  position: absolute;
  left: 1.5rem; bottom: -9px;
  border: 9px solid transparent;
  border-top-color: var(--tab);
  border-bottom: 0;
}
.sp-tab__ico { display: grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.sp-tab__ico svg { width: 1.15rem; height: 1.15rem; }
.sp-tab h3 { font-family: var(--serif); font-weight: 450; font-size: clamp(1.45rem, 2.2vw, 1.8rem); line-height: 1.12; }
.sp-tab > p { padding: 0 1.5rem; font-size: 0.98rem; line-height: 1.65; color: var(--ink-600); }
.sp-tab > p:first-of-type { margin-top: 0.6rem; }
.sp-tab__eg { align-self: end; padding-top: 1rem !important; border-top: 1px dashed var(--line-light-strong); margin-inline: 1.5rem; padding-inline: 0 !important; font-size: 0.86rem !important; color: var(--ink-900) !important; }
.sp-tab__eg span { display: block; margin-bottom: 0.25rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); }
@media (max-width: 900px) {
  .sp-tabs { grid-template-columns: minmax(0, 1fr); max-width: 560px; row-gap: 1rem; }
  .sp-tab { grid-row: auto; grid-template-rows: none; }
  .sp-tab__head { min-height: 0; }
}

/* --------------------------------------------------------------------------
   Wealth Management: a client statement. Three line items under a double
   rule; each heading is marked with a soft gold highlighter.
   -------------------------------------------------------------------------- */
.sp-stmt { border-top: 3px double var(--ink-900); }
.sp-stmt__cap { display: flex; justify-content: space-between; padding: 0.7rem 0; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-600); }
.sp-line {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(12rem, 16rem);
  gap: 1.5rem clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  padding: clamp(1.4rem, 2.6vw, 2rem) 0;
  border-top: 1px solid var(--line-light-strong);
}
.sp-line__n { padding-top: 0.45rem; font-family: var(--mono); font-size: 0.82rem; color: var(--cobalt); }
.sp-line h3 { font-family: var(--serif); font-weight: 450; font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.1; color: var(--ink-900); }
.sp-line h3 mark {
  padding: 0 0.12em;
  color: inherit;
  background: linear-gradient(transparent 58%, #f4dd9b 58%, #f4dd9b 92%, transparent 92%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.sp-line__main p { max-width: 38rem; margin-top: 0.7rem; font-size: 1rem; line-height: 1.65; color: var(--ink-600); }
.sp-line__chg {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--paper);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--ink-900);
}
.sp-line__chg b { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--mono); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9a7a1c; }
.sp-line__chg svg { width: 0.85rem; height: 0.85rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .sp-line h3 mark { background-size: 0% 100%; background-repeat: no-repeat; transition: background-size 900ms var(--ease-out) 250ms; }
  .js .sp-line.is-visible h3 mark { background-size: 100% 100%; }
}
@media (max-width: 860px) {
  .sp-line { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .sp-line__chg { grid-column: 2; }
  .sp-stmt__cap span:last-child { display: none; }
}

/* --------------------------------------------------------------------------
   Risk Management: before/after risk bands. Each card heading carries a
   thick heat-coloured rule; the bars show what moves.
   -------------------------------------------------------------------------- */
.sp-bands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 1.5rem); }
/* heading, meter and text share rows across the three cards */
.sp-band {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-content: start;
  row-gap: 1.2rem;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line-light);
}
.sp-band h3 {
  padding-left: 1rem;
  border-left: 5px solid var(--heat);
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(1.5rem, 2.3vw, 1.9rem);
  line-height: 1.12;
  color: var(--ink-900);
}
.sp-band--add { --heat: #2f8f6b; --from: #d4a03c; --to: #2f8f6b; }
.sp-band--replace { --heat: #c2410c; --from: #c2410c; --to: #2f8f6b; }
.sp-band--upgrade { --heat: var(--cobalt); --from: #d4a03c; --to: var(--cobalt); }
.sp-meter { display: grid; gap: 0.7rem; padding: 1rem; border-radius: 12px; background: var(--paper); }
.sp-meter p { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 0.7rem; row-gap: 0.25rem; align-items: center; }
.sp-meter span { grid-row: span 2; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-600); }
.sp-meter i { display: block; height: 0.6rem; width: var(--w); border-radius: 3px; background: var(--from); transform-origin: left; }
.sp-meter p + p i { background: var(--to); }
.sp-meter em { font-style: normal; font-size: 0.82rem; color: var(--ink-900); }
.sp-band > p { font-size: 0.98rem; line-height: 1.65; color: var(--ink-600); }
@media (prefers-reduced-motion: no-preference) {
  .js .sp-band .sp-meter i { transform: scaleX(0); transition: transform 900ms var(--ease-out) 300ms; }
  .js .sp-band .sp-meter p + p i { transition-delay: 700ms; }
  .js .sp-band.is-visible .sp-meter i { transform: none; }
}
@media (max-width: 900px) {
  .sp-bands { grid-template-columns: minmax(0, 1fr); max-width: 560px; row-gap: 1rem; }
  .sp-band { grid-row: auto; grid-template-rows: none; }
}

/* --------------------------------------------------------------------------
   Compliance: case files with a rubber-stamp heading on each.
   -------------------------------------------------------------------------- */
.sp-files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 1.5rem); }
.sp-file {
  position: relative;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-content: start;
  row-gap: 1.1rem;
  padding: 2.2rem clamp(1.3rem, 2.2vw, 1.7rem) 1.7rem;
  border-radius: 4px 16px 16px 16px;
  background: #f6f1e6;
  border: 1px solid #e6dcc6;
}
/* folder tab */
.sp-file::before {
  content: "";
  position: absolute;
  left: -1px; top: -14px;
  width: 38%; height: 14px;
  border: 1px solid #e6dcc6;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #f6f1e6;
}
.sp-stamp {
  justify-self: start;
  align-self: center;
  max-width: 100%;
  padding: 0.55rem 0.85rem 0.5rem;
  border: 3px double var(--cobalt-deep);
  border-radius: 6px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt-deep);
  transform: rotate(-2.5deg);
  mix-blend-mode: multiply;
  background: color-mix(in srgb, var(--cobalt) 5%, transparent);
}
.sp-file:nth-child(2) .sp-stamp { transform: rotate(1.5deg); }
.sp-file:nth-child(3) .sp-stamp { transform: rotate(-1deg); }
ul.sp-ticks { display: grid; gap: 0.4rem; }
.sp-ticks li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; font-weight: 500; color: var(--ink-900); }
.sp-ticks li::before {
  content: "\2713";
  display: grid;
  place-items: center;
  flex: none;
  width: 1.15rem; height: 1.15rem;
  border-radius: 4px;
  background: #2f8f6b;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}
.sp-file > p { padding-top: 1rem; border-top: 1px solid #e6dcc6; font-size: 0.98rem; line-height: 1.65; color: var(--ink-600); }
@media (prefers-reduced-motion: no-preference) {
  .js .sp-file .sp-stamp { opacity: 0; transform: scale(1.35) rotate(-6deg); transition: opacity 260ms ease-out 350ms, transform 420ms cubic-bezier(0.2, 1.4, 0.4, 1) 350ms; }
  .js .sp-file.is-visible .sp-stamp { opacity: 1; transform: rotate(-2.5deg); }
  .js .sp-file.is-visible:nth-child(2) .sp-stamp { transform: rotate(1.5deg); }
  .js .sp-file.is-visible:nth-child(3) .sp-stamp { transform: rotate(-1deg); }
}
@media (max-width: 900px) {
  .sp-files { grid-template-columns: minmax(0, 1fr); max-width: 560px; row-gap: 2rem; }
  .sp-file { grid-row: auto; grid-template-rows: none; }
}

/* --------------------------------------------------------------------------
   Trading: a ticker tape over three order tickets. Each heading leads with
   a coloured market glyph.
   -------------------------------------------------------------------------- */
.sp-tape {
  overflow: hidden;
  margin-bottom: clamp(1.2rem, 2.4vw, 1.8rem);
  border-radius: 10px;
  background: var(--navy-950);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.sp-tape__run { display: flex; width: max-content; gap: 1.6rem; padding: 0.7rem 1.2rem; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; white-space: nowrap; color: var(--t-dim); }
.sp-tape__run span:nth-child(odd) { color: var(--t-bright); }
.sp-tape b { font-weight: 400; }
.sp-tape .up { color: #4fd1a5; }
.sp-tape .sw { color: #e0b46a; }
.sp-tape .ai { color: var(--cobalt-bright); }
@media (prefers-reduced-motion: no-preference) {
  .sp-tape__run { animation: sp-tape 38s linear infinite; }
  @keyframes sp-tape { to { transform: translateX(-50%); } }
}
.sp-tickets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 1.5rem); }
.sp-ticket {
  position: relative;
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  align-content: start;
  row-gap: 1rem;
  padding: 1.3rem clamp(1.3rem, 2.2vw, 1.7rem) 1.4rem clamp(1.6rem, 2.6vw, 2rem);
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line-light);
}
/* perforated stub edge */
.sp-ticket::before {
  content: "";
  position: absolute;
  left: 0.65rem; top: 1rem; bottom: 1rem;
  width: 2px;
  background: radial-gradient(circle, var(--line-light-strong) 1px, transparent 1.5px) 0 0 / 2px 8px repeat-y;
}
.sp-ticket--add { --glyph: #1f9f74; }
.sp-ticket--replace { --glyph: #c98a1b; }
.sp-ticket--upgrade { --glyph: var(--cobalt); }
.sp-ticket__meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-600); }
.sp-ticket__meta span:last-child { padding: 0.08rem 0.45rem; border-radius: 4px; background: color-mix(in srgb, var(--glyph) 14%, transparent); color: var(--glyph); }
.sp-ticket h3 { display: flex; align-items: baseline; gap: 0.55rem; font-family: var(--serif); font-weight: 450; font-size: clamp(1.5rem, 2.3vw, 1.85rem); line-height: 1.12; color: var(--ink-900); }
.sp-ticket h3 b { flex: none; font-family: var(--sans); font-weight: 500; font-size: 0.8em; color: var(--glyph); }
.sp-ticket > p:not([class]) { font-size: 0.98rem; line-height: 1.65; color: var(--ink-600); }
.sp-ticket__foot { align-self: end; padding-top: 0.9rem; border-top: 1px dashed var(--line-light-strong); font-family: var(--mono); font-size: 0.74rem; color: var(--ink-900); }
.sp-ticket__foot::before { content: "STATUS\00a0\00b7\00a0"; color: var(--glyph); }
@media (max-width: 900px) {
  .sp-tickets { grid-template-columns: minmax(0, 1fr); max-width: 560px; row-gap: 1rem; }
  .sp-ticket { grid-row: auto; grid-template-rows: none; }
}

/* --------------------------------------------------------------------------
   Accounting: one workpaper with three referenced sections. Headings get
   the accountant's double underline and a red tickmark.
   -------------------------------------------------------------------------- */
.sp-sheet {
  position: relative;
  padding: clamp(1.2rem, 2.4vw, 1.8rem) clamp(1.2rem, 3vw, 2.4rem) clamp(1.2rem, 2.4vw, 1.6rem) clamp(2.2rem, 4.4vw, 3.6rem);
  border: 1px solid #e3ddcc;
  border-radius: 6px;
  background-color: #fbf9f3;
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(36, 84, 216, 0.06) 31px 32px);
  box-shadow: 0 24px 50px -36px rgba(40, 32, 10, 0.4);
}
/* red margin rule */
.sp-sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(1.4rem, 3vw, 2.4rem); width: 1px; background: rgba(194, 65, 12, 0.35); }
.sp-sheet__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid #e3ddcc; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-600); }
.sp-sheet__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.6rem); padding: clamp(1.4rem, 2.6vw, 2rem) 0; }
.sp-ref { display: flex; flex-direction: column; gap: 0.8rem; }
.sp-ref__wp { align-self: flex-start; padding: 0.12rem 0.5rem; border: 1px solid #c2410c; border-radius: 4px; font-family: var(--mono); font-size: 0.72rem; color: #c2410c; }
.sp-ref h3 {
  align-self: flex-start;
  padding-bottom: 0.3rem;
  border-bottom: 3px double var(--ink-900);
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
  line-height: 1.15;
  color: var(--ink-900);
}
.sp-ref h3 i { margin-left: 0.4rem; font-style: normal; font-family: var(--sans); font-weight: 700; font-size: 0.75em; color: #c2410c; }
.sp-ref p { font-family: var(--serif); font-size: 1.05rem; line-height: 1.6; color: #3a3a40; }
.sp-sheet__legend { padding-top: 0.8rem; border-top: 1px solid #e3ddcc; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-600); }
.sp-sheet__legend i { font-style: normal; font-weight: 700; color: #c2410c; }
@media (prefers-reduced-motion: no-preference) {
  .js .sp-sheet .sp-ref h3 i { display: inline-block; opacity: 0; transform: scale(1.8); transition: opacity 240ms ease-out, transform 360ms cubic-bezier(0.2, 1.4, 0.4, 1); }
  .js .sp-sheet .sp-ref:nth-child(1) h3 i { transition-delay: 500ms; }
  .js .sp-sheet .sp-ref:nth-child(2) h3 i { transition-delay: 750ms; }
  .js .sp-sheet .sp-ref:nth-child(3) h3 i { transition-delay: 1000ms; }
  .js .sp-sheet.is-visible .sp-ref h3 i { opacity: 1; transform: none; }
}
@media (max-width: 900px) { .sp-sheet__cols { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Legal hub: pleading paper. Numbered lines down the left margin, a double
   rule, and Roman-numeral headings in small capitals.
   -------------------------------------------------------------------------- */
.sp-plead {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  background: #fdfcf8;
  box-shadow: 0 26px 50px -38px rgba(20, 20, 30, 0.45);
  overflow: hidden;
}
ol.sp-plead__lines {
  display: grid;
  grid-auto-rows: 1fr;
  padding: 1.4rem 0;
  border-right: 3px double color-mix(in srgb, #b42318 55%, transparent);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-400);
  text-align: center;
}
.sp-plead__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.4rem, 3vw, 2.8rem); }
.sp-count { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 1rem; }
.sp-count h3 {
  display: grid;
  align-content: end;
  gap: 0.35rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--ink-900);
  font-family: var(--serif);
  font-weight: 500;
  font-variant: small-caps;
  font-size: clamp(1.5rem, 2.3vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--ink-900);
}
.sp-count__n { font-family: var(--serif); font-style: italic; font-variant: normal; font-size: 2.2rem; line-height: 1; color: var(--cobalt); }
.sp-count p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.7; color: #3a3a40; }
@media (max-width: 900px) {
  .sp-plead__body { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
  .sp-count { grid-row: auto; grid-template-rows: none; }
  .sp-plead { grid-template-columns: 2.2rem minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Documentation Automation: contract clauses. Headings are merge fields in
   brackets, and a redline shows what goes in and what comes out.
   -------------------------------------------------------------------------- */
.sp-clauses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 1.5rem); }
.sp-clause {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  align-content: start;
  row-gap: 0.9rem;
  padding: clamp(1.3rem, 2.2vw, 1.7rem);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  background: #fdfcf9;
  box-shadow: 0 1px 0 var(--line-light), 0 18px 34px -30px rgba(20, 20, 30, 0.5);
}
.sp-clause__no { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-600); }
.sp-clause h3 { font-family: var(--serif); font-weight: 450; font-size: clamp(1.4rem, 2.1vw, 1.7rem); line-height: 1.25; color: var(--cobalt-deep); }
.sp-clause h3 span {
  padding: 0.05em 0.25em;
  border-radius: 4px;
  background: #dfe6fb;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.sp-clause h3 span::before { content: "\27E6"; margin-right: 0.15em; color: var(--cobalt); }
.sp-clause h3 span::after { content: "\27E7"; margin-left: 0.15em; color: var(--cobalt); }
.sp-redline { display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; padding: 0.6rem 0.75rem; border-left: 2px solid #b42318; background: #fbf3f1; font-size: 0.86rem; }
.sp-redline del { color: #b42318; text-decoration-thickness: 1.5px; }
.sp-redline ins { text-decoration: none; border-bottom: 1.5px solid #1d6b4f; color: #1d6b4f; font-weight: 500; }
.sp-clause > p:last-child { font-size: 0.98rem; line-height: 1.65; color: var(--ink-600); }
@media (max-width: 900px) {
  .sp-clauses { grid-template-columns: minmax(0, 1fr); max-width: 560px; row-gap: 1rem; }
  .sp-clause { grid-row: auto; grid-template-rows: none; }
}

/* --------------------------------------------------------------------------
   Workflow Automation: a process track. Three step nodes sit on one line
   that draws itself across; the headings hang off the nodes.
   -------------------------------------------------------------------------- */
ol.sp-track { --g: clamp(1.5rem, 3vw, 3rem); position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); padding-top: 0.4rem; }
ol.sp-track::before {
  content: "";
  position: absolute;
  left: 1.6rem; right: calc((100% - 2 * var(--g)) / 3 - 1.6rem); top: calc(0.4rem + 1.6rem - 1.5px);
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--cobalt-deep));
  transform-origin: left;
}
.sp-node { position: relative; display: grid; gap: 0.7rem; align-content: start; }
.sp-node__dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  border: 3px solid var(--paper-2);
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 0 0 1px var(--cobalt);
}
.sp-node:nth-child(2) .sp-node__dot { background: var(--cobalt-deep); box-shadow: 0 0 0 1px var(--cobalt-deep); }
.sp-node:nth-child(3) .sp-node__dot { background: var(--navy-900); box-shadow: 0 0 0 1px var(--navy-900); }
.sp-node__dot svg { width: 1.2rem; height: 1.2rem; }
.sp-node__k { margin-top: 0.6rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cobalt); }
.sp-node h3 {
  justify-self: start;
  padding: 0.5rem 0.9rem 0.55rem;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line-light-strong);
  box-shadow: 0 10px 22px -18px rgba(20, 30, 70, 0.5);
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.15;
  color: var(--ink-900);
}
.sp-node > p:last-child { font-size: 0.98rem; line-height: 1.65; color: var(--ink-600); }
@media (prefers-reduced-motion: no-preference) {
  .js .sp-track::before { transform: scaleX(0); transition: transform 1200ms var(--ease-out) 200ms; }
  .js .sp-track.is-visible::before { transform: none; }
  .js .sp-track .sp-node__dot { transform: scale(0.4); opacity: 0; transition: transform 420ms cubic-bezier(0.2, 1.4, 0.4, 1), opacity 260ms ease-out; }
  .js .sp-track .sp-node:nth-child(1) .sp-node__dot { transition-delay: 250ms; }
  .js .sp-track .sp-node:nth-child(2) .sp-node__dot { transition-delay: 750ms; }
  .js .sp-track .sp-node:nth-child(3) .sp-node__dot { transition-delay: 1250ms; }
  .js .sp-track.is-visible .sp-node__dot { transform: none; opacity: 1; }
}
@media (max-width: 900px) {
  ol.sp-track { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 2rem; padding-left: 4.4rem; }
  ol.sp-track::before { left: 1.6rem; right: auto; top: 0.4rem; bottom: 2rem; width: 3px; height: auto; transform-origin: top; }
  .sp-node__dot { position: absolute; left: -4.4rem; top: 0; }
  .sp-node__k { margin-top: 0.8rem; }
  .js .sp-track::before { transform: none; }
}

/* --------------------------------------------------------------------------
   Client Relations Management: a CRM pipeline. Three kanban columns; the
   headings are the column headers with a coloured top edge and count.
   -------------------------------------------------------------------------- */
.sp-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(0.8rem, 1.6vw, 1.2rem); padding: clamp(0.8rem, 1.6vw, 1.2rem); border-radius: 18px; background: var(--paper-2); }
.sp-col {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-content: start;
  row-gap: 0.9rem;
  padding: 0 0.9rem 1.2rem;
  border-radius: 12px;
  background: var(--paper);
  border-top: 4px solid var(--col);
}
.sp-col--add { --col: #2f8f6b; }
.sp-col--replace { --col: #d4a03c; }
.sp-col--upgrade { --col: var(--cobalt); }
.sp-col__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; padding: 1rem 0.2rem 0.2rem; }
.sp-col__head h3 { font-family: var(--sans); font-weight: 650; font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.25; letter-spacing: -0.015em; color: var(--ink-900); }
.sp-col__head span { flex: none; display: grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 0.4rem; border-radius: 999px; background: color-mix(in srgb, var(--col) 16%, transparent); font-family: var(--mono); font-size: 0.72rem; color: var(--col); }
.sp-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line-light);
  box-shadow: 0 8px 18px -14px rgba(20, 20, 40, 0.4);
}
.sp-card b { font-weight: 600; font-size: 0.95rem; color: var(--ink-900); }
.sp-card span { font-size: 0.82rem; color: var(--ink-600); }
.sp-card i { justify-self: start; margin-top: 0.35rem; padding: 0.1rem 0.45rem; border-radius: 5px; background: color-mix(in srgb, var(--col) 14%, transparent); font-family: var(--mono); font-style: normal; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--col); }
.sp-col > p { padding: 0 0.2rem; font-size: 0.96rem; line-height: 1.62; color: var(--ink-600); }
@media (prefers-reduced-motion: no-preference) {
  .js .sp-col .sp-card { transform: translateY(-14px) rotate(-1.5deg); opacity: 0; transition: transform 520ms var(--ease-out) 300ms, opacity 300ms ease-out 300ms; }
  .js .sp-col.is-visible .sp-card { transform: none; opacity: 1; }
}
@media (max-width: 900px) {
  .sp-board { grid-template-columns: minmax(0, 1fr); max-width: 560px; row-gap: 0.8rem; }
  .sp-col { grid-row: auto; grid-template-rows: none; }
}

/* --------------------------------------------------------------------------
   Real Estate hub: a blueprint. Three rooms on a drafting grid with
   dimension lines; headings are lettered like a plan.
   -------------------------------------------------------------------------- */
.sp-plan {
  --bp: #1d3f9e;
  padding: clamp(1.2rem, 2.6vw, 2rem);
  border-radius: 10px;
  background-color: var(--bp);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  color: #e6edff;
}
.sp-plan__title { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(230, 237, 255, 0.7); }
.sp-plan__rooms { display: grid; grid-template-columns: 1.15fr 1fr 1fr; border: 2.5px solid #e6edff; }
.sp-room { position: relative; display: grid; align-content: start; gap: 0.8rem; padding: clamp(1.3rem, 2.4vw, 2rem); }
.sp-room + .sp-room { border-left: 2.5px solid #e6edff; }
.sp-room__tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(230, 237, 255, 0.65); }
.sp-room h3 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
/* dimension line under each room name */
.sp-room h3::after {
  content: "";
  display: block;
  height: 9px;
  margin-top: 0.55rem;
  border-left: 1px solid rgba(230, 237, 255, 0.8);
  border-right: 1px solid rgba(230, 237, 255, 0.8);
  background: linear-gradient(rgba(230, 237, 255, 0.8), rgba(230, 237, 255, 0.8)) center / 100% 1px no-repeat;
}
.sp-room p:last-child { font-size: 0.97rem; line-height: 1.65; color: rgba(230, 237, 255, 0.88); }
@media (max-width: 900px) {
  .sp-plan__rooms { grid-template-columns: minmax(0, 1fr); }
  .sp-room + .sp-room { border-left: 0; border-top: 2.5px solid #e6edff; }
}

/* --------------------------------------------------------------------------
   Commercial Property: a stacking plan. Three floors of one building; each
   floor plate carries its heading on the slab edge.
   -------------------------------------------------------------------------- */
.sp-tower { position: relative; max-width: 1080px; padding: 0 clamp(0rem, 2vw, 1.5rem); }
.sp-tower__roof { height: 18px; margin: 0 6%; border-radius: 6px 6px 0 0; background: var(--navy-900); }
.sp-floor {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 0.9fr) minmax(0, 1.4fr);
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.4rem);
  padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1.1rem, 2.4vw, 2rem);
  /* a band of windows along the top of each floor plate */
  background:
    repeating-linear-gradient(90deg, #d5ddf2 0 30px, transparent 30px 38px) 0 0 / 100% 7px no-repeat,
    var(--white);
  border: 2px solid var(--navy-900);
  border-top-width: 0;
}
.sp-tower__roof + .sp-floor { border-top-width: 2px; }
.sp-floor__lvl { display: grid; justify-items: start; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-600); }
.sp-floor__lvl b { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1; letter-spacing: 0; color: var(--cobalt); }
.sp-floor h3 {
  padding: 0.55rem 0.85rem;
  border-left: 6px solid var(--cobalt);
  background: color-mix(in srgb, var(--cobalt) 8%, var(--white));
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.15;
  color: var(--ink-900);
}
.sp-floor:nth-of-type(2) h3 { border-left-color: var(--cobalt-deep); }
.sp-floor:nth-of-type(3) h3 { border-left-color: var(--navy-900); }
.sp-floor > p:last-child { font-size: 0.97rem; line-height: 1.6; color: var(--ink-600); }
.sp-tower__ground { height: 10px; margin: 0 -2%; border-radius: 0 0 4px 4px; background: repeating-linear-gradient(135deg, var(--ink-600) 0 2px, transparent 2px 7px); opacity: 0.5; }
@media (max-width: 860px) {
  .sp-floor { grid-template-columns: 3.4rem minmax(0, 1fr); align-items: start; }
  .sp-floor > p:last-child { grid-column: 2; }
  .sp-floor__lvl b { font-size: 1.8rem; }
}

/* --------------------------------------------------------------------------
   Property Feasibility: a pro-forma spreadsheet. Column letters, row
   numbers, and each heading sits in a selected (outlined) cell.
   -------------------------------------------------------------------------- */
.sp-grid { border: 1px solid #cfd6cf; border-radius: 6px; background: var(--white); overflow: hidden; font-size: 0.97rem; }
.sp-grid__cols, .sp-row { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 0.9fr); }
.sp-grid__cols span { padding: 0.35rem; border-right: 1px solid #dfe5df; border-bottom: 1px solid #cfd6cf; background: #f1f4f1; font-family: var(--mono); font-size: 0.72rem; text-align: center; color: var(--ink-600); }
.sp-row > * { padding: clamp(0.9rem, 1.8vw, 1.3rem) clamp(0.9rem, 1.8vw, 1.3rem); border-right: 1px solid #dfe5df; border-bottom: 1px solid #dfe5df; }
.sp-row:last-child > * { border-bottom: 0; }
.sp-row__n { display: grid; place-items: center; padding: 0 !important; background: #f1f4f1; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-600); }
.sp-row h3 {
  position: relative;
  align-self: stretch;
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  line-height: 1.15;
  color: var(--ink-900);
  background: #eef7f0;
  outline: 2px solid #1f7a4d;
  outline-offset: -2px;
}
/* the fill handle in the selected cell's corner */
.sp-row h3::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 7px; height: 7px; background: #1f7a4d; border: 1px solid #fff; }
.sp-row > p:not([class]) { line-height: 1.6; color: var(--ink-600); }
.sp-row__out { display: grid; align-content: center; gap: 0.3rem; font-size: 0.9rem; color: var(--ink-900); }
.sp-row__out b { font-family: var(--mono); font-weight: 400; font-size: 0.74rem; color: #1f7a4d; }
@media (max-width: 860px) {
  .sp-grid__cols { display: none; }
  .sp-row { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .sp-row__n { grid-row: span 3; }
  .sp-row > p { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   Property CRM & Syndication: hanging signs. Each heading is painted on a
   sign board that hangs from a post arm, with a rider strip below.
   -------------------------------------------------------------------------- */
.sp-signs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2rem); padding-top: 1.6rem; }
/* the post arm the signs hang from */
.sp-signs::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 4px; background: var(--navy-900); }
.sp-sign { position: relative; display: grid; grid-row: span 2; grid-template-rows: subgrid; align-content: start; row-gap: 1.2rem; transform-origin: 50% -1.6rem; }
/* the two chains from the arm to the board */
.sp-sign::before {
  content: "";
  position: absolute;
  left: 18%; right: 18%; top: -1.6rem;
  height: 1.6rem;
  border-left: 2px dashed var(--ink-600);
  border-right: 2px dashed var(--ink-600);
}
.sp-sign__board {
  display: flex;
  flex-direction: column;
  min-height: 9.5rem;
  border: 3px solid var(--navy-900);
  border-radius: 6px;
  background: var(--white);
  overflow: hidden;
}
.sp-sign h3 { display: grid; place-items: center; flex: 1; padding: 1.3rem 1.2rem; font-family: var(--sans); font-weight: 700; font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.15; letter-spacing: -0.02em; text-align: center; color: var(--navy-900); }
.sp-sign__rider { padding: 0.45rem; background: var(--rider); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; text-align: center; color: #fff; }
.sp-sign--add { --rider: #2f8f6b; }
.sp-sign--replace { --rider: #c2410c; }
.sp-sign--upgrade { --rider: var(--cobalt); }
.sp-sign > p { font-size: 0.98rem; line-height: 1.65; color: var(--ink-600); }
@media (prefers-reduced-motion: no-preference) {
  .js .sp-sign { transform: rotate(-4deg); transition: transform 900ms cubic-bezier(0.3, 1.6, 0.5, 1) 200ms; }
  .js .sp-sign:nth-child(2) { transform: rotate(3deg); }
  .js .sp-sign.is-visible { transform: none; }
}
@media (max-width: 900px) {
  .sp-signs { grid-template-columns: minmax(0, 1fr); max-width: 520px; row-gap: 2.6rem; }
  .sp-signs::before { display: none; }
  .sp-sign { grid-row: auto; grid-template-rows: none; }
  .sp-sign::before { display: none; }
}

/* --------------------------------------------------------------------------
   EdTech hub: a chalkboard in a wooden frame. Headings are chalk-white
   italic with a hand-drawn chalk underline.
   -------------------------------------------------------------------------- */
.sp-board-chalk {
  padding: clamp(1.6rem, 3.4vw, 2.8rem) clamp(1.4rem, 3.4vw, 2.8rem) 0;
  border: 12px solid #8a5a32;
  border-radius: 8px;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, 0.06), transparent 60%),
    #24352d;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45), 0 26px 50px -34px rgba(30, 20, 10, 0.6);
  color: rgba(240, 244, 236, 0.9);
}
.sp-chalk__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 3.4vw, 3rem); padding-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.sp-chalk h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.12;
  color: #f7f8f2;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.5), 0 0 6px rgba(255, 255, 255, 0.12);
}
/* a slightly wobbly chalk underline */
.sp-chalk h3::after {
  content: "";
  display: block;
  width: 72%;
  height: 8px;
  margin-top: 0.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 C40 2 70 7 110 4 S170 2 198 5' fill='none' stroke='%23f2f4ec' stroke-opacity='.75' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.sp-chalk:nth-child(2) h3::after { width: 64%; }
.sp-chalk p { margin-top: 1rem; font-size: 1rem; line-height: 1.7; color: rgba(236, 240, 232, 0.82); }
.sp-chalk__ledge { position: relative; height: 16px; margin: 0 calc(-1 * clamp(1.4rem, 3.4vw, 2.8rem)); background: #a06d42; box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.15); }
.sp-chalk__ledge i { position: absolute; top: -7px; height: 7px; border-radius: 3px; background: #f4f4ee; }
.sp-chalk__ledge i:first-child { left: 14%; width: 44px; }
.sp-chalk__ledge i:last-child { left: 22%; width: 30px; background: #f2c94c; }
@media (prefers-reduced-motion: no-preference) {
  .js .sp-board-chalk .sp-chalk h3::after { clip-path: inset(0 100% 0 0); transition: clip-path 900ms var(--ease-out); }
  .js .sp-board-chalk .sp-chalk:nth-child(1) h3::after { transition-delay: 400ms; }
  .js .sp-board-chalk .sp-chalk:nth-child(2) h3::after { transition-delay: 700ms; }
  .js .sp-board-chalk .sp-chalk:nth-child(3) h3::after { transition-delay: 1000ms; }
  .js .sp-board-chalk.is-visible .sp-chalk h3::after { clip-path: inset(0 0 0 0); }
}
@media (max-width: 900px) { .sp-chalk__cols { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Learning Management: course modules. Each card is a module with a
   progress bar; the heading is the module title.
   -------------------------------------------------------------------------- */
.sp-mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 1.5rem); }
.sp-mod {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  align-content: start;
  row-gap: 0.85rem;
  padding: clamp(1.3rem, 2.2vw, 1.7rem);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  background: var(--paper);
}
.sp-mod__top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-600); }
.sp-mod__top span:first-child { color: var(--cobalt); }
.sp-mod__bar { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--cobalt) 12%, transparent); overflow: hidden; }
.sp-mod__bar i { display: block; height: 100%; width: var(--p); border-radius: 3px; background: linear-gradient(90deg, var(--cobalt-bright), var(--cobalt)); }
.sp-mod h3 {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line-light);
  font-family: var(--sans);
  font-weight: 650;
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}
ul.sp-mod__lessons { display: grid; gap: 0.35rem; }
.sp-mod__lessons li { position: relative; padding-left: 1.6rem; font-size: 0.88rem; color: var(--ink-900); }
.sp-mod__lessons li::before { content: "\25B6"; position: absolute; left: 0; top: 0.15rem; display: grid; place-items: center; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: color-mix(in srgb, var(--cobalt) 14%, transparent); font-size: 0.45rem; color: var(--cobalt); }
.sp-mod > p:last-child { font-size: 0.96rem; line-height: 1.62; color: var(--ink-600); }
@media (prefers-reduced-motion: no-preference) {
  .js .sp-mod .sp-mod__bar i { width: 0; transition: width 1100ms var(--ease-out) 300ms; }
  .js .sp-mod.is-visible .sp-mod__bar i { width: var(--p); }
}
@media (max-width: 900px) {
  .sp-mods { grid-template-columns: minmax(0, 1fr); max-width: 560px; row-gap: 1rem; }
  .sp-mod { grid-row: auto; grid-template-rows: none; }
}

/* --------------------------------------------------------------------------
   Student Information: ruled index cards with a red title line and a
   punched hole; the heading is written on the title line.
   -------------------------------------------------------------------------- */
.sp-icards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 1.5rem); }
.sp-icard {
  position: relative;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-content: start;
  row-gap: 0;
  padding: 1.1rem clamp(1.2rem, 2vw, 1.5rem) 1.4rem;
  border-radius: 4px;
  background-color: #fffef9;
  box-shadow: 0 1px 2px rgba(20, 20, 40, 0.12), 0 18px 34px -26px rgba(20, 20, 40, 0.45);
}
.sp-icard:nth-child(1) { transform: rotate(-0.8deg); }
.sp-icard:nth-child(3) { transform: rotate(0.7deg); }
/* punched hole */
.sp-icard::before { content: ""; position: absolute; left: 50%; bottom: 0.7rem; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--white); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25); }
.sp-icard__no { justify-self: end; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); }
.sp-icard h3 {
  align-self: end;
  padding: 0.5rem 0 0.45rem;
  border-bottom: 2px solid #e05252;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
  line-height: 1.12;
  color: #12306f;
}
.sp-icard p:last-child { padding: 0.5rem 0 1.6rem; background: repeating-linear-gradient(transparent 0 27px, #cfdcf3 27px 28px) 0 0.5rem / 100% calc(100% - 1.6rem) no-repeat; font-size: 0.98rem; line-height: 28px; color: #2d3340; }
@media (max-width: 900px) {
  .sp-icards { grid-template-columns: minmax(0, 1fr); max-width: 560px; row-gap: 1.2rem; }
  .sp-icard { grid-row: auto; grid-template-rows: none; transform: none !important; }
}

/* --------------------------------------------------------------------------
   Enrollment: envelopes. Each card has a folded flap and a wax seal; the
   heading is the letter's title.
   -------------------------------------------------------------------------- */
.sp-letters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 1.5rem); }
.sp-letter {
  position: relative;
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  align-content: start;
  row-gap: 1rem;
  padding: 7rem clamp(1.3rem, 2.2vw, 1.7rem) 1.6rem;
  border: 1px solid #e3dccb;
  border-radius: 8px;
  background: #faf6ec;
  overflow: hidden;
}
.sp-letter__flap {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4.4rem;
  background: #efe6d0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.sp-letter__flap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 94%, rgba(0, 0, 0, 0.06)); }
.sp-letter__seal {
  position: absolute;
  left: 50%; top: 3.1rem;
  display: grid;
  place-items: center;
  width: 2.8rem; height: 2.8rem;
  margin-left: -1.4rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c9474a, #8f1f24 70%);
  box-shadow: 0 0 0 3px rgba(143, 31, 36, 0.25), 0 4px 8px rgba(80, 10, 10, 0.35);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255, 230, 225, 0.9);
}
.sp-letter h3 {
  align-self: end;
  text-align: center;
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  line-height: 1.12;
  color: #3a1d14;
}
.sp-letter h3::after { content: ""; display: block; width: 3rem; height: 1px; margin: 0.8rem auto 0; background: #c9a77a; }
.sp-letter p { font-family: var(--serif); font-size: 1.04rem; line-height: 1.65; color: #4a4038; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .js .sp-letter .sp-letter__seal { transform: scale(1.6); opacity: 0; transition: transform 380ms cubic-bezier(0.2, 1.4, 0.4, 1) 450ms, opacity 200ms ease-out 450ms; }
  .js .sp-letter.is-visible .sp-letter__seal { transform: none; opacity: 1; }
}
@media (max-width: 900px) {
  .sp-letters { grid-template-columns: minmax(0, 1fr); max-width: 520px; row-gap: 1.2rem; }
  .sp-letter { grid-row: auto; grid-template-rows: none; }
}

/* --------------------------------------------------------------------------
   Supply Chain hub: shipping containers. Each heading is stencilled on a
   corrugated container door with its container code and locking bars.
   -------------------------------------------------------------------------- */
.sp-yard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 1.5rem); }
.sp-box { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 1.1rem; }
.sp-box--a { --steel: #1f4fbf; }
.sp-box--b { --steel: #b5532a; }
.sp-box--c { --steel: #24624a; }
.sp-box__door {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 1.2rem;
  min-height: 12rem;
  padding: 1.1rem 1.3rem 1.2rem;
  border: 5px solid color-mix(in srgb, var(--steel) 70%, #000);
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 10px, rgba(0, 0, 0, 0.1) 10px 13px, transparent 13px 22px),
    var(--steel);
  color: #fff;
  overflow: hidden;
}
.sp-box__code { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.82); }
.sp-box h3 {
  position: relative;
  max-width: 85%;
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.sp-box__bars { position: absolute; right: 1rem; top: 0.9rem; bottom: 0.9rem; display: flex; gap: 7px; }
.sp-box__bars i { width: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.45); }
.sp-box > p { font-size: 0.98rem; line-height: 1.65; color: var(--ink-600); }
@media (prefers-reduced-motion: no-preference) {
  .js .sp-box .sp-box__door { transform: translateX(-24px); opacity: 0; transition: transform 700ms var(--ease-out), opacity 400ms ease-out; }
  .js .sp-box.is-visible .sp-box__door { transform: none; opacity: 1; }
}
@media (max-width: 900px) {
  .sp-yard { grid-template-columns: minmax(0, 1fr); max-width: 560px; row-gap: 1.4rem; }
  .sp-box { grid-row: auto; grid-template-rows: none; }
  .sp-box__door { min-height: 9rem; }
}

/* --------------------------------------------------------------------------
   3PL & Warehouse: rack labels. Three yellow location labels clipped to an
   orange pallet-rack beam, each with its heading and a barcode.
   -------------------------------------------------------------------------- */
.sp-rack { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 1.5rem); padding-top: 1.1rem; }
.sp-rack__beam { position: absolute; left: -1%; right: -1%; top: 0; height: 2.4rem; border-radius: 3px; background: linear-gradient(#f07a24, #d9601a); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15); }
.sp-rack__beam::before { content: ""; position: absolute; inset: 0.6rem 0.8rem auto; height: 6px; background: radial-gradient(circle, rgba(0, 0, 0, 0.35) 2px, transparent 2.5px) 0 0 / 22px 6px repeat-x; }
.sp-bay { position: relative; display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 1.2rem; }
.sp-label {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem 1rem;
  border-radius: 3px;
  background: #ffd84a;
  color: #14140f;
  box-shadow: 0 10px 20px -12px rgba(60, 40, 0, 0.5);
}
.sp-label__loc { font-family: var(--mono); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.1em; }
.sp-label h3 { font-family: var(--sans); font-weight: 800; font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.12; letter-spacing: -0.02em; text-transform: uppercase; }
.sp-label__code {
  display: block;
  height: 30px;
  background: repeating-linear-gradient(90deg, #14140f 0 2px, transparent 2px 4px, #14140f 4px 5px, transparent 5px 8px, #14140f 8px 11px, transparent 11px 12px, #14140f 12px 13px, transparent 13px 16px);
}
.sp-bay > p { font-size: 0.98rem; line-height: 1.65; color: var(--ink-600); }
@media (max-width: 900px) {
  .sp-rack { grid-template-columns: minmax(0, 1fr); max-width: 520px; row-gap: 1.6rem; padding-top: 0; }
  .sp-rack__beam { display: none; }
  .sp-bay { grid-row: auto; grid-template-rows: none; }
  .sp-label { border-top: 10px solid #e06a1e; }
}

/* --------------------------------------------------------------------------
   Supplier Risk: gauge dials. Each card leads with a half-circle gauge;
   the heading sits under it on a tinted plate.
   -------------------------------------------------------------------------- */
.sp-dials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 1.5rem); }
.sp-dial {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  justify-items: center;
  align-content: start;
  row-gap: 1.1rem;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line-light);
  text-align: center;
}
.sp-dial__gauge { position: relative; display: grid; justify-items: center; width: 11rem; height: 5.9rem; padding-top: 2.6rem; }
.sp-dial__arc {
  position: absolute;
  inset: 0 0 auto;
  height: 11rem;
  border-radius: 50%;
  background: conic-gradient(from -90deg, var(--tone) calc(var(--v) * 180deg), color-mix(in srgb, var(--ink-900) 8%, transparent) 0 180deg, transparent 0);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%);
  mask: radial-gradient(circle, transparent 54%, #000 55%);
}
.sp-dial__gauge b { font-family: var(--serif); font-weight: 450; font-size: 1.4rem; line-height: 1; color: var(--ink-900); }
.sp-dial__gauge em { font-style: normal; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-600); }
.sp-dial h3 {
  align-self: start;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tone) 12%, var(--white));
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.15;
  color: var(--ink-900);
}
.sp-dial > p { font-size: 0.97rem; line-height: 1.62; color: var(--ink-600); }
/* the gauge sweeps from empty to its value (browsers without @property just show the value) */
@property --sweep { syntax: "<number>"; inherits: true; initial-value: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .sp-dial .sp-dial__arc { background: conic-gradient(from -90deg, var(--tone) calc(var(--sweep) * 180deg), color-mix(in srgb, var(--ink-900) 8%, transparent) 0 180deg, transparent 0); transition: --sweep 1200ms var(--ease-out) 300ms; }
  .js .sp-dial.is-visible .sp-dial__arc { --sweep: var(--v); }
}
@media (max-width: 900px) {
  .sp-dials { grid-template-columns: minmax(0, 1fr); max-width: 520px; row-gap: 1rem; }
  .sp-dial { grid-row: auto; grid-template-rows: none; }
}

/* --------------------------------------------------------------------------
   Supply Chain ERP & Retail: printed receipts with torn edges. Each heading
   is printed reversed out of a black bar.
   -------------------------------------------------------------------------- */
.sp-receipts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2rem); align-items: start; }
.sp-receipt {
  position: relative;
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 1rem;
  padding: 1.4rem 1.4rem 2.2rem;
  background: #fffefb;
  font-family: var(--mono);
  color: #22222a;
  box-shadow: 0 1px 2px rgba(20, 20, 30, 0.1);
}
/* torn zig-zag bottom edge */
.sp-receipt::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -9px;
  height: 10px;
  background:
    linear-gradient(135deg, #fffefb 50%, transparent 50%) 0 0 / 14px 10px repeat-x,
    linear-gradient(225deg, #fffefb 50%, transparent 50%) 0 0 / 14px 10px repeat-x;
  filter: drop-shadow(0 1px 0 rgba(20, 20, 30, 0.08));
}
.sp-receipt:nth-child(2) { margin-top: 1.4rem; }
.sp-receipt__top { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; color: #6a6a72; border-bottom: 1px dashed #c9c9cf; padding-bottom: 0.8rem; }
.sp-receipt h3 { align-self: start; padding: 0.5rem 0.7rem; background: #17171c; font-family: var(--mono); font-weight: 600; font-size: clamp(0.98rem, 1.4vw, 1.12rem); line-height: 1.3; letter-spacing: 0.02em; text-transform: uppercase; color: #fff; }
.sp-receipt > p { font-family: var(--sans); font-size: 0.95rem; line-height: 1.62; color: var(--ink-600); }
dl.sp-receipt__lines { display: grid; gap: 0.35rem; margin: 0; padding-top: 0.8rem; border-top: 1px dashed #c9c9cf; font-size: 0.8rem; }
/* item ........ value, with dot leaders */
.sp-receipt__lines div { display: flex; align-items: baseline; gap: 0.5rem; }
.sp-receipt__lines dt { flex: none; white-space: nowrap; }
.sp-receipt__lines div::before { content: ""; order: 1; flex: 1; border-bottom: 1px dotted #9a9aa2; transform: translateY(-3px); }
.sp-receipt__lines dd { order: 2; margin: 0; font-weight: 600; white-space: nowrap; }
.sp-receipt__lines .is-total { margin-top: 0.3rem; padding-top: 0.5rem; border-top: 2px solid #22222a; font-size: 0.86rem; font-weight: 600; }
@media (max-width: 900px) {
  .sp-receipts { grid-template-columns: minmax(0, 1fr); max-width: 480px; row-gap: 1.2rem; }
  .sp-receipt { grid-row: auto; grid-template-rows: none; }
  .sp-receipt:nth-child(2) { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   General Services hub: a settings panel. Each path is a setting row whose
   heading is the setting name, with a toggle that switches on.
   -------------------------------------------------------------------------- */
.sp-panel { max-width: 980px; border: 1px solid var(--line-light-strong); border-radius: 18px; background: var(--paper); overflow: hidden; }
.sp-panel__head { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem clamp(1.2rem, 2.4vw, 1.8rem); border-bottom: 1px solid var(--line-light); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-600); }
.sp-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  padding: clamp(1.2rem, 2.4vw, 1.7rem) clamp(1.2rem, 2.4vw, 1.8rem);
  background: var(--white);
}
.sp-setting + .sp-setting { border-top: 1px solid var(--line-light); }
.sp-setting h3 { font-family: var(--sans); font-weight: 650; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink-900); }
.sp-setting p { max-width: 44rem; margin-top: 0.45rem; font-size: 0.98rem; line-height: 1.62; color: var(--ink-600); }
.sp-switch { position: relative; display: block; width: 3.6rem; height: 2rem; border-radius: 999px; background: var(--cobalt); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05); }
.sp-switch i { position: absolute; top: 0.2rem; left: calc(100% - 1.8rem); width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); }
@media (prefers-reduced-motion: no-preference) {
  .js .sp-panel .sp-switch { background: var(--ink-400); transition: background-color 300ms ease-out; }
  .js .sp-panel .sp-switch i { left: 0.2rem; transition: left 380ms var(--ease-out); }
  .js .sp-panel .sp-setting:nth-of-type(1) .sp-switch, .js .sp-panel .sp-setting:nth-of-type(1) .sp-switch i { transition-delay: 400ms; }
  .js .sp-panel .sp-setting:nth-of-type(2) .sp-switch, .js .sp-panel .sp-setting:nth-of-type(2) .sp-switch i { transition-delay: 750ms; }
  .js .sp-panel .sp-setting:nth-of-type(3) .sp-switch, .js .sp-panel .sp-setting:nth-of-type(3) .sp-switch i { transition-delay: 1100ms; }
  .js .sp-panel.is-visible .sp-switch { background: var(--cobalt); }
  .js .sp-panel.is-visible .sp-switch i { left: calc(100% - 1.8rem); }
}
@media (max-width: 560px) { .sp-setting { grid-template-columns: minmax(0, 1fr); } .sp-switch { grid-row: 1; } }

/* --------------------------------------------------------------------------
   Document Automation (general): dog-eared template pages. Each heading sits
   in a labelled "Title" form field, with a page footer.
   -------------------------------------------------------------------------- */
.sp-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2rem); }
.sp-page {
  position: relative;
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  align-content: start;
  row-gap: 0;
  padding: 1.6rem clamp(1.3rem, 2.2vw, 1.7rem) 1.1rem;
  background: linear-gradient(225deg, transparent 22px, #fff 22px);
  filter: drop-shadow(0 1px 1px rgba(20, 20, 40, 0.18)) drop-shadow(0 16px 22px rgba(20, 20, 40, 0.1));
}
/* the folded corner */
.sp-page::before { content: ""; position: absolute; top: 0; right: 0; width: 31px; height: 31px; background: linear-gradient(225deg, transparent 50%, #e4e7ef 50%); border-bottom-left-radius: 4px; }
.sp-page__field { margin-bottom: 0.3rem; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cobalt); }
.sp-page h3 {
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--cobalt);
  border-radius: 6px;
  background: color-mix(in srgb, var(--cobalt) 5%, #fff);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.9vw, 1.55rem);
  line-height: 1.18;
  color: var(--ink-900);
}
.sp-page > p:not([class]) { margin-top: 1rem; font-size: 0.97rem; line-height: 1.62; color: var(--ink-600); }
.sp-page__foot { display: flex; justify-content: space-between; margin-top: 1.4rem; padding-top: 0.7rem; border-top: 1px solid #eceef3; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-400); }
.sp-page__foot span:first-child { color: #b45309; }
@media (max-width: 900px) {
  .sp-pages { grid-template-columns: minmax(0, 1fr); max-width: 540px; row-gap: 1.4rem; }
  .sp-page { grid-row: auto; grid-template-rows: none; }
}

/* --------------------------------------------------------------------------
   API Integrations: a dark code editor. Each path is a function block with
   a line number and a coloured signature; the heading is the function body.
   -------------------------------------------------------------------------- */
.sp-editor { border-radius: 14px; background: #0d1017; box-shadow: 0 30px 60px -40px rgba(10, 14, 30, 0.8); overflow: hidden; }
.sp-editor__tabs { display: flex; gap: 0.2rem; padding: 0 0.8rem; background: #151a24; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-family: var(--mono); font-size: 0.74rem; color: #7d8496; }
.sp-editor__tabs span { padding: 0.65rem 0.9rem; }
.sp-editor__tabs .is-cur { color: #e8ebf2; background: #0d1017; border-top: 2px solid var(--cobalt-bright); }
.sp-editor__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-fn { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); padding: clamp(1.3rem, 2.4vw, 1.8rem) clamp(1rem, 2vw, 1.6rem) clamp(1.4rem, 2.6vw, 2rem) 0.6rem; }
.sp-fn + .sp-fn { border-left: 1px solid rgba(255, 255, 255, 0.06); }
.sp-fn__ln { padding-top: 0.15rem; font-family: var(--mono); font-size: 0.72rem; text-align: right; padding-right: 0.8rem; color: #4b5263; }
.sp-fn__sig { font-family: var(--mono); font-size: 0.8rem; color: #8bd5ff; }
.sp-fn__sig b { font-weight: 400; color: #c792ea; }
.sp-fn h3 {
  margin: 0.7rem 0 0 0.9rem;
  padding-left: 0.9rem;
  border-left: 2px solid #3a4152;
  font-family: var(--sans);
  font-weight: 650;
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.sp-fn:nth-child(1) h3 { border-left-color: #7fd6c2; }
.sp-fn:nth-child(2) h3 { border-left-color: #f2b56b; }
.sp-fn:nth-child(3) h3 { border-left-color: var(--cobalt-bright); }
.sp-fn h3 + p { margin: 0.8rem 0 0 0.9rem; padding-left: 0.9rem; border-left: 2px solid #232836; font-size: 0.95rem; line-height: 1.62; color: #a8afbf; }
.sp-fn > div::after { content: "}"; display: block; margin-top: 0.6rem; font-family: var(--mono); font-size: 0.8rem; color: #8bd5ff; }
@media (max-width: 900px) {
  .sp-editor__body { grid-template-columns: minmax(0, 1fr); }
  .sp-fn + .sp-fn { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
}

/* --------------------------------------------------------------------------
   Knowledge Base: search results. A search bar, then three results; each
   heading is a blue result title under its breadcrumb.
   -------------------------------------------------------------------------- */
.sp-serp { max-width: 860px; }
.sp-serp__bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.3rem;
  border: 1px solid var(--line-light-strong);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 10px 28px -20px rgba(20, 30, 70, 0.45);
  font-size: 1.05rem;
  color: var(--ink-900);
}
.sp-serp__bar svg { flex: none; width: 1.2rem; height: 1.2rem; color: var(--ink-400); }
.sp-serp__bar span::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: var(--cobalt); animation: sp-caret 1s steps(1) infinite; }
@keyframes sp-caret { 50% { opacity: 0; } }
.sp-serp__count { margin: 1.1rem 0 0.4rem 1.3rem; font-size: 0.84rem; color: var(--ink-400); }
.sp-hit { padding: 1.1rem 1.3rem; border-radius: 12px; }
.sp-hit + .sp-hit { margin-top: 0.2rem; }
.sp-hit__crumb { font-size: 0.82rem; color: #1f7a4d; }
.sp-hit h3 { margin-top: 0.2rem; font-family: var(--sans); font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em; color: #1a3fb8; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; text-decoration-color: color-mix(in srgb, #1a3fb8 30%, transparent); }
.sp-hit h3 + p { max-width: 44rem; margin-top: 0.4rem; font-size: 0.98rem; line-height: 1.6; color: var(--ink-600); }
@media (prefers-reduced-motion: no-preference) {
  .js .sp-serp .sp-hit { opacity: 0; transform: translateY(8px); transition: opacity 400ms ease-out, transform 500ms var(--ease-out); }
  .js .sp-serp .sp-hit:nth-of-type(1) { transition-delay: 300ms; }
  .js .sp-serp .sp-hit:nth-of-type(2) { transition-delay: 500ms; }
  .js .sp-serp .sp-hit:nth-of-type(3) { transition-delay: 700ms; }
  .js .sp-serp.is-visible .sp-hit { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .sp-serp__bar span::after { animation: none; } }

/* --------------------------------------------------------------------------
   Automated Email Response: an inbox. Three unread messages; each heading is
   the bold subject line under the sender and time.
   -------------------------------------------------------------------------- */
.sp-mail { max-width: 920px; border: 1px solid var(--line-light-strong); border-radius: 16px; background: var(--white); overflow: hidden; box-shadow: 0 26px 50px -38px rgba(20, 30, 70, 0.5); }
.sp-mail__head { display: flex; justify-content: space-between; padding: 0.85rem 1.3rem; border-bottom: 1px solid var(--line-light); font-weight: 600; font-size: 0.92rem; color: var(--ink-900); }
.sp-mail__head span:last-child { padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--cobalt); font-weight: 500; font-size: 0.74rem; color: #fff; }
.sp-msg { position: relative; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; padding: 1.15rem 1.3rem 1.25rem 1.6rem; }
.sp-msg + .sp-msg { border-top: 1px solid var(--line-light); }
/* unread dot */
.sp-msg::before { content: ""; position: absolute; left: 0.6rem; top: 1.65rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--cobalt); }
.sp-msg__av { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--navy-900); font-weight: 600; font-size: 0.95rem; color: #fff; }
.sp-msg:nth-child(3) .sp-msg__av { background: var(--cobalt-deep); }
.sp-msg:nth-child(4) .sp-msg__av { background: var(--cobalt); }
.sp-msg__from { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.86rem; color: var(--ink-600); }
.sp-msg__from b { font-weight: 600; color: var(--ink-900); }
.sp-msg h3 { margin-top: 0.15rem; font-family: var(--sans); font-weight: 700; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink-900); }
.sp-msg h3 + p { margin-top: 0.3rem; font-size: 0.97rem; line-height: 1.6; color: var(--ink-600); }
@media (prefers-reduced-motion: no-preference) {
  .js .sp-mail .sp-msg { opacity: 0; transform: translateY(-10px); transition: opacity 360ms ease-out, transform 460ms var(--ease-out); }
  .js .sp-mail .sp-msg:nth-of-type(1) { transition-delay: 300ms; }
  .js .sp-mail .sp-msg:nth-of-type(2) { transition-delay: 650ms; }
  .js .sp-mail .sp-msg:nth-of-type(3) { transition-delay: 1000ms; }
  .js .sp-mail.is-visible .sp-msg { opacity: 1; transform: none; }
}
@media (max-width: 480px) { .sp-msg { grid-template-columns: minmax(0, 1fr); } .sp-msg__av { display: none; } }
