/* =====================================================================
   POLITICKER — 2026 VISUAL REFRESH
   ---------------------------------------------------------------------
   One file controls the new look. It loads last, so it wins over the
   older stylesheets. To undo the whole refresh, remove the
   <link ... theme-refresh.css> line from templates/base.html.

   EASY THINGS TO TWEAK are all in the "Brand tokens" block just below:
   colours, fonts, corner roundness.
   ===================================================================== */

/* ---------- Brand tokens (change these to restyle everything) -------- */
:root {
  --pt-teal: #1a807d;          /* brand teal (from the decks) */
  --pt-teal-bright: #2fb7b1;   /* teal that reads well on dark backgrounds */
  --pt-yellow: #fffb57;        /* brand yellow (from the decks) */
  --pt-slate: #364242;         /* brand slate grey */
  --pt-night: #121c1c;         /* deep "terminal" background */
  --pt-night-2: #1a2626;       /* slightly lighter dark surface */
  --pt-nav: #1f2f2e;           /* navigation bar: teal-tinted slate */
  --pt-cream: #fafaf2;         /* brand cream page background */
  --pt-paper: #ffffff;         /* card background */
  --pt-wash: #f2f2e9;          /* alternate section background */

  --pt-ink: #1c2727;                       /* main text */
  --pt-ink-soft: rgb(54 66 66 / 0.72);     /* secondary text */
  --pt-line: rgb(54 66 66 / 0.12);         /* hairline borders */
  --pt-line-dark: rgb(250 250 242 / 0.1);  /* hairlines on dark */

  --pt-radius: 16px;           /* card corners */
  --pt-radius-sm: 10px;

  --pt-font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pt-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pt-shadow: 0 1px 2px rgb(18 28 28 / 0.04), 0 8px 24px rgb(18 28 28 / 0.06);
  --pt-shadow-hover: 0 2px 4px rgb(18 28 28 / 0.06), 0 16px 40px rgb(18 28 28 / 0.1);

  /* Feed the new palette into the site's existing colour variables */
  --color-yellow: var(--pt-yellow);
  --color-cream: var(--pt-cream);
  --font-family: var(--pt-font);
}

/* ---------- Typography --------------------------------------------- */
body {
  font-family: var(--pt-font);
  color: var(--pt-ink);
  background-color: var(--pt-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

/* The old CSS forced system fonts on header/footer/blog — use Inter everywhere */
.header, .header *, .mobile-menu, .mobile-menu *,
.footer, .footer *,
.blog, .blog *, .blog-card, .blog-card * {
  font-family: var(--pt-font) !important;
}

/* Small monospace "label" style — the techy accent used across the site */
.pt-eyebrow,
.section-eyebrow,
.case-study-eyebrow,
.step-panel-label {
  font-family: var(--pt-mono) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  color: var(--pt-teal);
}

.section-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--pt-yellow);
  box-shadow: 0 0 0 1px rgb(54 66 66 / 0.25);
}

/* Section headings: tighter and a bit smaller, like a product site */
.mission-objectives-title,
.capabilities-title,
.steps-title,
.case-study-title,
.home-blog-title {
  font-family: var(--pt-font) !important;
  font-size: clamp(2rem, 3.4vw, 3rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.05 !important;
  color: var(--pt-ink) !important;
}

.mission-objectives-summary,
.capabilities-summary,
.steps-summary,
.case-study-summary {
  color: var(--pt-ink-soft) !important;
  font-size: 1.0625rem !important;
  line-height: 1.65 !important;
}

/* ---------- Header (navigation bar) -------------------------------- */
/* Teal-tinted slate, a step lighter than the hero, with a crisp
   underline (hairline + thin teal/yellow highlight). Once you scroll,
   a soft shadow appears (class added by the script in base.html). */
.header {
  display: flex;
  align-items: center;
  /* fixed height: the logged-in dashboard sidebar is positioned to match */
  height: var(--app-header-height, 76px);
  background-color: var(--pt-nav) !important;
  border-bottom: 1px solid rgb(250 250 242 / 0.12);
  padding: 0 !important;
  transition: box-shadow 0.25s ease;
}

.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgb(47 183 177 / 0.9) 25%,
    rgb(255 251 87 / 0.9) 50%,
    rgb(47 183 177 / 0.9) 75%,
    transparent 100%
  );
  opacity: 0.55;
  pointer-events: none;
}

.header.is-scrolled {
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.22);
}

.header .container {
  max-width: 1280px;
}

.logo a,
.logo-fallback {
  font-size: 1.45rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.03em;
  color: var(--pt-cream) !important;
}

/* Blinking cursor on "Politicker_" */
.logo-cursor {
  color: var(--pt-yellow);
  animation: pt-blink 1.1s steps(1) infinite;
}

@keyframes pt-blink {
  50% { opacity: 0; }
}

/* Desktop: links grouped in a slim pill — the "command bar" */
.main-nav ul {
  align-items: center;
  gap: 2px !important;
  padding: 4px;
  border: 1px solid rgb(250 250 242 / 0.1);
  border-radius: 999px;
  background: rgb(18 28 28 / 0.45);
}

.main-nav .nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem !important;
  border-radius: 999px;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  line-height: 1.2;
  color: rgb(250 250 242 / 0.68) !important;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link::after {
  display: none !important;
}

.main-nav .nav-link:hover {
  color: var(--pt-cream) !important;
  background-color: rgb(250 250 242 / 0.07);
}

.main-nav .nav-link.active {
  color: var(--pt-cream) !important;
  background-color: rgb(250 250 242 / 0.1);
  box-shadow: inset 0 0 0 1px rgb(250 250 242 / 0.08);
}

/* Login / Sign-up: the yellow call to action at the end of the pill */
.main-nav a.nav-link[href*="login"] {
  margin-left: 4px;
  background-color: var(--pt-yellow);
  color: var(--pt-night) !important;
  font-weight: 600 !important;
}

.main-nav a.nav-link[href*="login"]:hover {
  background-color: var(--pt-cream);
  color: var(--pt-night) !important;
}

/* Hamburger: slimmer, rounded lines */
.menu-icon,
.menu-icon::before,
.menu-icon::after,
.close-icon::before,
.close-icon::after {
  height: 2px !important;
  border-radius: 2px;
}

.menu-toggle {
  width: 24px !important;
}

/* Mobile menu: full-screen, same dark surface */
.mobile-menu {
  padding: 0.75rem clamp(1rem, 4vw, 1.5rem) 2rem !important;
  background:
    radial-gradient(circle at 50% 0%, rgb(26 128 125 / 0.35), transparent 55%),
    var(--pt-nav) !important;
}

.mobile-menu-header {
  margin-bottom: 1.5rem !important;
}

.mobile-menu ul {
  gap: 0 !important;
}

.mobile-menu .nav-link {
  display: flex !important;
  justify-content: space-between;
  padding: 1.05rem 0.25rem !important;
  border-bottom: 1px solid var(--pt-line-dark);
  border-radius: 0;
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  color: var(--pt-cream) !important;
}

.mobile-menu .nav-link::before {
  content: "→";
  order: 2;
  color: rgb(250 250 242 / 0.3);
  font-family: var(--pt-mono);
  font-weight: 400;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
  color: var(--pt-yellow) !important;
}

.mobile-menu a.nav-link[href*="login"] {
  justify-content: center;
  margin-top: 1.5rem;
  padding: 1rem !important;
  border: 0;
  border-radius: 999px;
  background: var(--pt-yellow);
  color: var(--pt-night) !important;
  font-size: 1.05rem !important;
}

.mobile-menu a.nav-link[href*="login"]::before {
  display: none;
}

/* ---------- Hero ---------------------------------------------------- */
.home-hero {
  position: relative;
  background-color: var(--pt-night) !important;
  color: var(--pt-cream);
  padding-top: clamp(4.5rem, 10vw, 8rem) !important;
  padding-bottom: clamp(3.5rem, 8vw, 6rem) !important;
}

/* faint engineering grid */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgb(250 250 242 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(250 250 242 / 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 100%);
}

/* teal glow */
.home-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 30px;
  z-index: -3;
  width: min(900px, 120vw);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(26 128 125 / 0.45), transparent);
  filter: blur(20px);
}

.home-hero-glow-teal {
  display: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border: 1px solid var(--pt-line-dark);
  border-radius: 999px;
  background: rgb(250 250 242 / 0.04);
  color: rgb(250 250 242 / 0.8);
  font-family: var(--pt-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-badge-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ee08f;
}

.hero-badge-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #3ee08f;
  opacity: 0;
  animation: pt-ping 2s ease-out infinite;
}

@keyframes pt-ping {
  0% { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.home-hero .home-hero-title {
  font-family: var(--pt-font) !important;
  font-size: clamp(2.75rem, 6.2vw, 5.25rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.045em !important;
  line-height: 0.98 !important;
  color: var(--pt-cream) !important;
}

.hero-accent {
  display: block;
  color: var(--pt-yellow);
  font-weight: 300;
  letter-spacing: -0.04em;
}

.home-hero .home-hero-description {
  max-width: 38rem;
  color: rgb(250 250 242 / 0.7) !important;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem) !important;
  line-height: 1.6 !important;
}

.home-hero-primary-cta,
.home-hero-secondary-cta {
  min-height: 3rem;
  border-radius: 999px !important;
  font-weight: 600 !important;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

.home-hero-primary-cta {
  background-color: var(--pt-yellow) !important;
  color: var(--pt-night) !important;
  box-shadow: 0 0 0 1px rgb(255 251 87 / 0.4), 0 10px 30px rgb(255 251 87 / 0.15);
}

.home-hero-primary-cta:hover {
  background-color: var(--pt-cream) !important;
  transform: translateY(-1px);
}

.home-hero-secondary-cta {
  border: 1px solid rgb(250 250 242 / 0.22) !important;
  background-color: rgb(250 250 242 / 0.04) !important;
  color: var(--pt-cream) !important;
}

.home-hero-secondary-cta:hover {
  border-color: rgb(250 250 242 / 0.5) !important;
  background-color: rgb(250 250 242 / 0.1) !important;
  color: var(--pt-cream) !important;
  transform: translateY(-1px);
}

/* Fact strip under the hero buttons */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 880px;
  margin: 3.5rem auto 0;
  border: 1px solid var(--pt-line-dark);
  border-radius: var(--pt-radius);
  background: rgb(18 28 28 / 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.1rem 1.25rem;
  text-align: left;
  border-left: 1px solid var(--pt-line-dark);
}

.hero-stat:first-child {
  border-left: 0;
}

.hero-stat-value {
  display: block;
  font-family: var(--pt-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pt-cream);
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgb(250 250 242 / 0.55);
}

@media (max-width: 767.98px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stat:nth-child(3) {
    border-left: 0;
  }

  .hero-stat:nth-child(n + 3) {
    border-top: 1px solid var(--pt-line-dark);
  }
}

/* ---------- Live issue salience panel (in the hero) ---------------- */
.salience-panel {
  max-width: 1100px;
  margin: 2.75rem auto 0;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--pt-line-dark);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgb(250 250 242 / 0.035), rgb(250 250 242 / 0.01)),
    var(--pt-night);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.35), inset 0 1px 0 rgb(250 250 242 / 0.06);
  text-align: left;
}

.salience-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.salience-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  color: #3ee08f;
  font-family: var(--pt-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.salience-title {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left;
  color: var(--pt-cream);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.salience-sub {
  margin: 0.3rem 0 0;
  color: rgb(250 250 242 / 0.5);
  font-size: 0.85rem;
}

.salience-ranges {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--pt-line-dark);
  border-radius: 999px;
  background: rgb(250 250 242 / 0.03);
}

.salience-ranges button {
  min-width: 2.75rem;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgb(250 250 242 / 0.55);
  font-family: var(--pt-mono);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.salience-ranges button:hover {
  color: var(--pt-cream);
}

.salience-ranges button[aria-pressed="true"] {
  background: var(--pt-cream);
  color: var(--pt-night);
}

/* Issue "status" chips — one per tracked issue */
.salience-chips {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
}

.salience-chip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--pt-line-dark);
  border-top: 2px solid var(--chip-color);
  border-radius: 12px;
  background: rgb(250 250 242 / 0.025);
  color: var(--pt-cream);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.salience-chip:hover,
.salience-chip:focus-visible {
  background: rgb(250 250 242 / 0.06);
  transform: translateY(-1px);
  outline: none;
}

.salience-chip[aria-pressed="false"] {
  opacity: 0.38;
}

.salience-chip-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
  color: rgb(250 250 242 / 0.7);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.salience-chip-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chip-color);
}

.salience-chip-value {
  font-family: var(--pt-mono);
  font-size: 1.15rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.salience-chip-value small {
  margin-left: 1px;
  color: rgb(250 250 242 / 0.5);
  font-size: 0.7em;
}

.salience-chip-change {
  font-family: var(--pt-mono);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.salience-chip-change.is-up { color: #3ee08f; }
.salience-chip-change.is-down { color: #ff6b6b; }
.salience-chip-change.is-flat { color: rgb(250 250 242 / 0.4); }

.salience-chart {
  position: relative;
  height: clamp(240px, 32vw, 340px);
}

/* shimmer while loading */
.salience-loading {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, transparent, rgb(250 250 242 / 0.04), transparent);
  background-size: 200% 100%;
  animation: pt-shimmer 1.4s linear infinite;
}

.salience-panel.is-ready .salience-loading,
.salience-panel.is-error .salience-loading {
  display: none;
}

@keyframes pt-shimmer {
  to { background-position: -200% 0; }
}

.salience-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--pt-line-dark);
  color: rgb(250 250 242 / 0.45);
  font-family: var(--pt-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.salience-foot a {
  color: var(--pt-yellow);
  text-decoration: none;
}

.salience-foot a:hover {
  text-decoration: underline;
}

@media (max-width: 1023.98px) {
  .salience-chips {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 639.98px) {
  .salience-chips {
    display: flex;
    overflow-x: auto;
    margin-inline: -0.25rem;
    padding: 0 0.25rem 0.25rem;
    scrollbar-width: none;
  }

  .salience-chip {
    flex: 0 0 7.5rem;
  }
}

/* ---------- Scrolling ticker --------------------------------------- */
.pt-ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--pt-line-dark);
  border-bottom: 1px solid var(--pt-line);
  background: var(--pt-night-2);
  color: rgb(250 250 242 / 0.75);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.pt-ticker-track {
  display: flex;
  width: max-content;
  animation: pt-scroll 45s linear infinite;
}

.pt-ticker:hover .pt-ticker-track {
  animation-play-state: paused;
}

.pt-ticker-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pt-ticker-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--pt-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pt-ticker-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--pt-teal-bright);
}

.pt-ticker-list li:nth-child(4n)::before {
  background: var(--pt-yellow);
}

@keyframes pt-scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Steps --------------------------------------------------- */
.step-number {
  font-family: var(--pt-mono);
  font-size: 0.95rem !important;
  font-weight: 600;
}

.step-tab {
  font-size: 1.05rem !important;
}

.step-tab.is-active {
  background-color: var(--pt-paper) !important;
  box-shadow: var(--pt-shadow);
}

.steps-display {
  border: 1px solid var(--pt-line-dark) !important;
  border-radius: 20px !important;
  background-color: var(--pt-night) !important;
  background-image:
    radial-gradient(circle at 0% 100%, rgb(26 128 125 / 0.4), transparent 50%),
    linear-gradient(rgb(250 250 242 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(250 250 242 / 0.035) 1px, transparent 1px) !important;
  background-size: auto, 32px 32px, 32px 32px !important;
  box-shadow: var(--pt-shadow-hover) !important;
}

.step-panel-label {
  color: var(--pt-yellow) !important;
}

.step-panel-title {
  letter-spacing: -0.03em !important;
}

.step-panel-list li::before {
  content: "→ ";
  color: var(--pt-teal-bright);
  font-family: var(--pt-mono);
}

/* ---------- Homepage sections 01–03 -------------------------------- */
.pt-section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  border-top: 1px solid var(--pt-line);
}

.pt-section--cream { background: var(--pt-cream); }
.pt-section--wash { background: var(--pt-wash); }

.pt-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* Section header: number + title on the left, intro on the right */
.pt-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem 4rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--pt-line);
}

.pt-num {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--pt-teal);
  font-family: var(--pt-mono);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pt-num::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--pt-yellow);
  box-shadow: 0 0 0 1px rgb(54 66 66 / 0.25);
}

.pt-title {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--pt-ink) !important;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.045em !important;
  line-height: 0.95 !important;
  text-align: left !important;
}

.pt-lede {
  max-width: 34rem;
  margin: 0;
  color: var(--pt-ink-soft);
  font-size: 1.075rem;
  line-height: 1.65;
}

/* --- 01 Mission: three colourful on-brand cards --- */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mission-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 25rem;
  padding: 1.75rem;
  overflow: hidden;
  border-radius: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgb(18 28 28 / 0.18);
}

.mission-card--teal {
  background:
    radial-gradient(circle at 100% 0%, rgb(255 251 87 / 0.18), transparent 45%),
    var(--pt-teal);
  color: var(--pt-cream);
}

.mission-card--yellow {
  background:
    radial-gradient(circle at 0% 100%, rgb(26 128 125 / 0.22), transparent 50%),
    var(--pt-yellow);
  color: var(--pt-night);
}

.mission-card--night {
  background:
    radial-gradient(circle at 100% 100%, rgb(26 128 125 / 0.55), transparent 55%),
    var(--pt-night);
  color: var(--pt-cream);
}

.mission-visual {
  flex: 1;
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.mission-card-title {
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  text-align: left !important;
}

.mission-card-text {
  margin: 0;
  font-size: 0.975rem;
  line-height: 1.6;
  opacity: 0.82;
}

/* teal card: stance bars */
.mission-visual .stance-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 2.5rem;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 0.7rem;
  font-family: var(--pt-mono);
  font-size: 0.75rem;
}

.mission-visual:has(.stance-row) {
  flex-direction: column;
}

.stance-row span { opacity: 0.75; }
.stance-row b { font-weight: 600; text-align: right; }

.stance-row i {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: rgb(250 250 242 / 0.18);
}

.stance-row i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: var(--pt-yellow);
}

/* yellow card: coded tags */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-cloud span {
  padding: 0.4rem 0.75rem;
  border: 1.5px solid var(--pt-night);
  border-radius: 999px;
  font-family: var(--pt-mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.tag-cloud span.is-solid {
  background: var(--pt-night);
  color: var(--pt-yellow);
}

/* night card: pages -> dataset */
.funnel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--pt-mono);
  font-size: 0.8rem;
}

.funnel-in,
.funnel-out {
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
}

.funnel-in {
  border: 1px dashed rgb(250 250 242 / 0.35);
  color: rgb(250 250 242 / 0.7);
  box-shadow: 6px 6px 0 -1px var(--pt-night), 6px 6px 0 0 rgb(250 250 242 / 0.2),
    12px 12px 0 -1px var(--pt-night), 12px 12px 0 0 rgb(250 250 242 / 0.12);
}

.funnel-arrow {
  margin-left: 1rem;
  color: var(--pt-yellow);
  font-size: 1.1rem;
}

.funnel-out {
  background: var(--pt-yellow);
  color: var(--pt-night);
  font-weight: 600;
}

/* --- 02 Capabilities: bento grid with product-style mock-ups --- */
.cap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.cap-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--pt-line);
  border-radius: 22px;
  background: var(--pt-paper);
  box-shadow: var(--pt-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cap-card:hover {
  transform: translateY(-4px);
  border-color: rgb(26 128 125 / 0.4);
  box-shadow: var(--pt-shadow-hover);
}

.cap-card--feature {
  grid-row: span 2;
  justify-content: space-between;
  gap: 2rem;
}

.cap-card--dark {
  border-color: var(--pt-line-dark);
  background:
    radial-gradient(circle at 100% 0%, rgb(26 128 125 / 0.4), transparent 50%),
    var(--pt-night);
  color: var(--pt-cream);
}

.cap-title {
  margin: 0 0 0.6rem !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  text-align: left !important;
}

.cap-text {
  margin: 0;
  color: var(--pt-ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cap-card--dark .cap-text {
  color: rgb(250 250 242 / 0.65);
}

/* mock app window */
.mock-window {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--pt-line);
  border-radius: 14px;
  background: var(--pt-cream);
  box-shadow: 0 12px 30px rgb(18 28 28 / 0.08);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--pt-line);
  background: var(--pt-paper);
}

.mock-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(54 66 66 / 0.18);
}

.mock-bar span {
  margin-left: 0.6rem;
  color: var(--pt-ink-soft);
  font-family: var(--pt-mono);
  font-size: 0.7rem;
}

.mock-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem;
}

.mock-quote {
  margin: 0;
  color: var(--pt-ink);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.75;
}

.mock-quote mark {
  padding: 0.05em 0.2em;
  border-radius: 4px;
  color: inherit;
}

.hl-teal { background: rgb(47 211 201 / 0.3); }
.hl-yellow { background: rgb(255 251 87 / 0.75); }
.hl-coral { background: rgb(255 122 89 / 0.3); }

.mock-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
}

.mock-tags > div {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--pt-line);
  border-radius: 10px;
  background: var(--pt-paper);
}

.mock-tags dt {
  color: var(--pt-ink-soft);
  font-family: var(--pt-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mock-tags dd {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.mock-tags .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1px rgb(18 28 28 / 0.15);
}

/* mini bar chart */
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 7rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--pt-line);
}

.mini-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: rgb(26 128 125 / 0.22);
  transition: height 0.4s ease;
}

.mini-bars i.is-hot {
  background: var(--pt-teal);
  box-shadow: 0 -3px 0 var(--pt-yellow) inset;
}

.cap-card:hover .mini-bars i { background: rgb(26 128 125 / 0.35); }
.cap-card:hover .mini-bars i.is-hot { background: var(--pt-teal); }

/* terminal */
.terminal {
  margin: 0 0 1.5rem;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--pt-line-dark);
  border-radius: 12px;
  background: rgb(0 0 0 / 0.25);
  color: var(--pt-cream);
  font-family: var(--pt-mono);
  font-size: 0.74rem;
  line-height: 1.7;
  white-space: pre;
}

.t-dim { color: rgb(250 250 242 / 0.4); }
.t-key { color: var(--pt-teal-bright); }
.t-str { color: var(--pt-yellow); }
.t-num { color: #ff9ad5; }
.t-cursor {
  color: var(--pt-yellow);
  animation: pt-blink 1.1s steps(1) infinite;
}

/* --- 03 How it works: horizontal stepper with progress --- */
.steps-v2 .stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0;
}

.steps-v2 .step-tab {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 0.85rem;
  min-height: 0 !important;
  padding: 1.1rem 1.1rem 1.3rem !important;
  overflow: hidden;
  border: 1px solid var(--pt-line) !important;
  border-radius: 14px !important;
  background: var(--pt-paper) !important;
  box-shadow: none !important;
  color: var(--pt-ink-soft) !important;
  font-size: 1rem !important;
  text-align: left;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.steps-v2 .step-tab:hover {
  border-color: rgb(26 128 125 / 0.4) !important;
  color: var(--pt-ink) !important;
}

.steps-v2 .step-tab.is-active {
  border-color: var(--pt-teal) !important;
  color: var(--pt-ink) !important;
  box-shadow: var(--pt-shadow) !important;
}

/* progress line along the bottom of the active step */
.steps-v2 .step-tab::before {
  content: "";
  position: absolute !important;
  inset: auto auto 0 0 !important;
  top: auto !important;
  width: 0 !important;
  height: 3px !important;
  border-radius: 0 !important;
  background: var(--pt-teal) !important;
}

.steps-v2 .step-tab.is-active::before {
  animation: pt-progress 3.5s linear forwards;
}

@keyframes pt-progress {
  from { width: 0; }
  to { width: 100%; }
}

.steps-v2 .step-number {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--pt-wash);
  color: var(--pt-ink-soft) !important;
  font-family: var(--pt-mono);
  font-size: 0.85rem !important;
  font-weight: 600;
}

.steps-v2 .step-tab.is-active .step-number {
  background: var(--pt-yellow);
  color: var(--pt-night) !important;
}

.steps-v2 .step-tab-title {
  font-weight: 600 !important;
}

.steps-v2 .steps-display {
  display: block;
  min-height: 0;
  padding: clamp(1.75rem, 4vw, 3rem) !important;
  border-radius: 22px !important;
}

.steps-v2 .step-panel:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
}

.steps-v2 .step-panel-title {
  margin: 0.75rem 0 1rem !important;
  padding: 0 !important;
  color: var(--pt-cream) !important;
  font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
  font-weight: 700 !important;
  text-align: left !important;
}

.steps-v2 .step-panel-text {
  margin: 0;
  color: rgb(250 250 242 / 0.72);
  font-size: 1.05rem;
  line-height: 1.65;
}

.step-log {
  margin: 0;
  padding: 1rem 1.1rem;
  list-style: none;
  border: 1px solid var(--pt-line-dark);
  border-radius: 14px;
  background: rgb(0 0 0 / 0.25);
  font-family: var(--pt-mono);
  font-size: 0.8rem;
  color: rgb(250 250 242 / 0.8);
}

.step-log li {
  display: flex;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--pt-line-dark);
}

.step-log li:last-child {
  border-bottom: 0;
}

.step-log li span {
  min-width: 1.4rem;
  color: var(--pt-teal-bright);
}

.step-log li.is-live,
.step-log li.is-live span {
  color: var(--pt-yellow);
}

/* --- Blog + newsletter on the homepage --- */
.home-page .home-blog-section {
  padding: clamp(4rem, 9vw, 7rem) 0 !important;
  border-top: 1px solid var(--pt-line);
  background: var(--pt-wash) !important;
}

.home-page .home-blog-title {
  text-align: left !important;
}

.home-page .blog-empty-state {
  padding: 3rem 1.5rem;
  border: 1px dashed rgb(54 66 66 / 0.25);
  border-radius: 22px;
  background: var(--pt-paper);
}

.home-page .home-newsletter {
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 2rem) !important;
  background: var(--pt-cream) !important;
}

.home-page .home-newsletter-shell {
  max-width: 1200px !important;
  padding: clamp(2rem, 5vw, 3.5rem) !important;
  border: 1px solid var(--pt-line-dark) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 0% 0%, rgb(26 128 125 / 0.55), transparent 50%),
    radial-gradient(circle at 100% 100%, rgb(255 251 87 / 0.12), transparent 45%),
    var(--pt-night) !important;
  box-shadow: none !important;
  color: var(--pt-cream);
}

.home-page .home-newsletter-title {
  color: var(--pt-cream) !important;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.035em !important;
}

.home-page .home-newsletter-description {
  color: rgb(250 250 242 / 0.65) !important;
}

.home-page .home-newsletter-input-shell {
  border: 1px solid rgb(250 250 242 / 0.2) !important;
  border-radius: 999px !important;
  background: rgb(250 250 242 / 0.06) !important;
}

.home-page .home-newsletter-input {
  background: transparent !important;
  color: var(--pt-cream) !important;
}

.home-page .home-newsletter-input::placeholder {
  color: rgb(250 250 242 / 0.45);
}

.home-page .home-newsletter-icon {
  color: rgb(250 250 242 / 0.5) !important;
}

.home-page .home-newsletter-submit {
  border-radius: 999px !important;
  background: var(--pt-yellow) !important;
  color: var(--pt-night) !important;
  font-weight: 600 !important;
}

.home-page .home-newsletter-submit:hover {
  background: var(--pt-cream) !important;
}

/* --- Tablet & phone layouts --- */
@media (max-width: 899.98px) {
  .pt-section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .mission-card {
    min-height: 0;
  }

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

  .cap-card--feature {
    grid-row: auto;
  }

  .steps-v2 .stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-v2 .step-panel:not([hidden]) {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 479.98px) {
  .mock-tags {
    grid-template-columns: 1fr;
  }

  .steps-v2 .step-tab {
    padding: 0.85rem !important;
    font-size: 0.875rem !important;
  }
}

/* ---------- Buttons ------------------------------------------------- */
.basic-button-1 {
  padding: 0.75rem 1.4rem !important;
  border-radius: 999px !important;
  background-color: var(--pt-night) !important;
  color: var(--pt-cream) !important;
  font-weight: 600 !important;
  transition: transform 0.15s ease, background-color 0.15s ease !important;
}

.basic-button-1:hover {
  background-color: var(--pt-teal) !important;
  transform: translateY(-1px);
}

/* ---------- Blog cards --------------------------------------------- */
.blog-card {
  border: 1px solid var(--pt-line) !important;
  border-radius: var(--pt-radius) !important;
  background: var(--pt-paper) !important;
  box-shadow: var(--pt-shadow) !important;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgb(26 128 125 / 0.45) !important;
  box-shadow: var(--pt-shadow-hover) !important;
}

.blog-category {
  font-family: var(--pt-mono) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Footer -------------------------------------------------- */
.footer {
  background-color: var(--pt-night) !important;
  border-top: 1px solid var(--pt-line-dark);
  color: rgb(250 250 242 / 0.6);
}

.footer-nav-item,
.footer-social-icon {
  color: rgb(250 250 242 / 0.7) !important;
  transition: color 0.15s ease;
}

.footer-nav-item:hover,
.footer-social-icon:hover {
  color: var(--pt-yellow) !important;
}

.footer-copyright,
.footer-copyright-desktop {
  font-family: var(--pt-mono) !important;
  font-size: 0.72rem !important;
  color: rgb(250 250 242 / 0.4) !important;
}

/* ---------- Accessibility: calm everything down if requested ------- */
@media (prefers-reduced-motion: reduce) {
  .logo-cursor,
  .hero-badge-dot::after,
  .salience-loading,
  .t-cursor,
  .steps-v2 .step-tab.is-active::before {
    width: 100% !important;
  }

  .steps-v2 .step-tab.is-active::before,
  .pt-ticker-track {
    animation: none !important;
  }

  .mission-card:hover,
  .cap-card:hover,
  .blog-card:hover {
    transform: none;
  }
}

/* footer line inside the transcript mock-up */
.mock-foot {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--pt-line);
  color: var(--pt-ink-soft);
  font-family: var(--pt-mono);
  font-size: 0.7rem;
}

.mock-foot span:last-child {
  color: var(--pt-teal);
}

/* line the blog section up with sections 01–03 */
.home-page .home-blog-section .container {
  max-width: 1200px;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* =====================================================================
   INNER PAGES — About us, Methodology, News, articles (and Contact us)
   Same building blocks as the homepage Mission/Capabilities sections,
   kept a little simpler.
   ===================================================================== */
.pg {
  background: var(--pt-cream);
}

/* Page header */
.pg-hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgb(26 128 125 / 0.1), transparent 60%),
    var(--pt-cream);
}

.pg-hero--compact {
  padding-bottom: 0;
}

.pg-hero .pt-section-head {
  margin-bottom: 2.5rem;
}

.pg-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--pt-teal);
  font-family: var(--pt-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pg-label::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--pt-yellow);
  box-shadow: 0 0 0 1px rgb(54 66 66 / 0.25);
}

/* Intro: big lead sentence left, supporting text right */
.pg-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 4rem;
}

.pg-intro-lead {
  margin: 0;
  color: var(--pt-ink);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.pg-intro-body p,
.pg-row-body p {
  margin: 0 0 1rem;
  color: var(--pt-ink-soft);
  font-size: 1.025rem;
  line-height: 1.7;
}

.pg-intro-body p:last-child,
.pg-row-body > p:last-child {
  margin-bottom: 0;
}

/* "On this page" links */
.pg-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.pg-toc a {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  background: var(--pt-paper);
  color: var(--pt-ink);
  font-family: var(--pt-mono);
  font-size: 0.72rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pg-toc a:hover {
  border-color: var(--pt-teal);
  color: var(--pt-teal);
}

/* Sections */
.pg-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--pt-line);
  background: var(--pt-cream);
  scroll-margin-top: 80px;
}

.pg-section--wash {
  background: var(--pt-wash);
}

.pg-section--flush {
  padding-top: 0;
  border-top: 0;
}

/* Row: number + title on the left, content on the right */
.pg-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem 4rem;
  align-items: start;
}

.pg-row--stack {
  align-items: end;
  margin-bottom: 2rem;
}

.pg-row-head {
  position: sticky;
  top: 100px;
}

.pg-row--stack .pg-row-head {
  position: static;
}

.pg-h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--pt-ink) !important;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.05 !important;
  text-align: left !important;
}

.pg-row-lede {
  margin: 0;
  color: var(--pt-ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.pg-big {
  color: var(--pt-ink) !important;
  font-size: clamp(1.2rem, 2vw, 1.45rem) !important;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35 !important;
}

.pg-note {
  margin-top: 1.25rem !important;
  padding-left: 1rem;
  border-left: 3px solid var(--pt-teal);
  color: var(--pt-ink) !important;
  font-size: 0.975rem !important;
}

.pg-note--wide {
  max-width: 48rem;
  margin: 1.5rem 0 0 !important;
}

/* Lists */
.pg-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--pt-line);
}

.pg-list li {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--pt-line);
  color: var(--pt-ink);
  font-size: 1rem;
  line-height: 1.5;
}

.pg-list li::before {
  content: "→";
  flex: none;
  color: var(--pt-teal);
  font-family: var(--pt-mono);
}

.pg-list--check li::before {
  content: "✓";
}

.pg-row-body .pg-list {
  margin: 1rem 0;
}

.pg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.pg-chips span {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  background: var(--pt-paper);
  color: var(--pt-ink);
  font-family: var(--pt-mono);
  font-size: 0.8rem;
}

/* Cards */
.pg-cards {
  display: grid;
  gap: 1rem;
}

.pg-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pg-card {
  padding: 1.6rem;
  border: 1px solid var(--pt-line);
  border-radius: 20px;
  background: var(--pt-paper);
  box-shadow: var(--pt-shadow);
  color: var(--pt-ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pg-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pt-shadow-hover);
}

.pg-card p {
  margin: 0;
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
}

.pg-card .pg-card-tag {
  display: inline-block;
  margin-bottom: 1.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--pt-yellow);
  color: var(--pt-night);
  font-family: var(--pt-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 1;
}

.pg-card-title {
  margin: 0 0 0.5rem !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  text-align: left !important;
}

.pg-cards--4 .pg-card {
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* coloured variants, as on the homepage mission cards */
.pg-card--teal {
  border-color: transparent;
  background: radial-gradient(circle at 100% 0%, rgb(255 251 87 / 0.18), transparent 45%), var(--pt-teal);
  color: var(--pt-cream);
}

.pg-card--yellow {
  border-color: transparent;
  background: radial-gradient(circle at 0% 100%, rgb(26 128 125 / 0.22), transparent 50%), var(--pt-yellow);
  color: var(--pt-night);
}

.pg-card--night {
  border-color: transparent;
  background: radial-gradient(circle at 100% 100%, rgb(26 128 125 / 0.55), transparent 55%), var(--pt-night);
  color: var(--pt-cream);
}

.pg-card--slate {
  border-color: transparent;
  background: var(--pt-slate);
  color: var(--pt-cream);
}

.pg-card--yellow .pg-card-tag {
  background: var(--pt-night);
  color: var(--pt-yellow);
}

.pg-mini-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.pg-mini-list li {
  padding: 0.55rem 0;
  border-top: 1px solid currentColor;
  border-top-color: color-mix(in srgb, currentColor 18%, transparent);
  font-size: 0.925rem;
  line-height: 1.5;
}

/* Callout panel */
.pg-callout {
  margin-top: 1.5rem;
  padding: 1.75rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgb(26 128 125 / 0.45), transparent 55%),
    var(--pt-night);
  color: var(--pt-cream);
}

.pg-row-body > .pg-callout:first-child {
  margin-top: 0;
}

.pg-callout p {
  color: rgb(250 250 242 / 0.75) !important;
}

.pg-callout .pg-big {
  color: var(--pt-cream) !important;
}

/* Closing call to action */
.pg-section--cta {
  border-top: 0;
  padding-top: 0;
}

.pg-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 0%, rgb(26 128 125 / 0.55), transparent 50%),
    radial-gradient(circle at 100% 100%, rgb(255 251 87 / 0.12), transparent 45%),
    var(--pt-night);
  color: var(--pt-cream);
}

.pg-cta-title {
  margin: 0 0 0.35rem !important;
  padding: 0 !important;
  color: var(--pt-cream) !important;
  font-size: clamp(1.6rem, 3vw, 2.25rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.035em !important;
  text-align: left !important;
}

.pg-cta p {
  margin: 0;
  color: rgb(250 250 242 / 0.65);
}

.pg-cta-button {
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--pt-yellow);
  color: var(--pt-night);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.pg-cta-button:hover {
  background: var(--pt-cream);
  transform: translateY(-1px);
}

/* ---------- News listing ------------------------------------------ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 2.5rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--pt-line);
  border-radius: 20px;
  background: var(--pt-paper);
  box-shadow: var(--pt-shadow);
  color: var(--pt-ink);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgb(26 128 125 / 0.4);
  box-shadow: var(--pt-shadow-hover);
}

.news-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--pt-wash);
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.03);
}

.news-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgb(250 250 242 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(250 250 242 / 0.05) 1px, transparent 1px),
    radial-gradient(circle at 30% 30%, rgb(26 128 125 / 0.6), transparent 60%),
    var(--pt-night);
  background-size: 24px 24px, 24px 24px, auto, auto;
  color: var(--pt-cream);
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.news-card-placeholder i {
  color: var(--pt-yellow);
  font-style: normal;
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem 1.4rem 1.4rem;
}

.news-card-tags {
  margin: 0 0 0.6rem;
  color: var(--pt-teal);
  font-family: var(--pt-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card-title {
  margin: 0 0 0.5rem !important;
  padding: 0 !important;
  color: var(--pt-ink) !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
  text-align: left !important;
}

.news-card-text {
  margin: 0;
  color: var(--pt-ink-soft);
  font-size: 0.925rem;
  line-height: 1.55;
}

.news-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: auto 0 0;
  padding-top: 1.25rem;
  color: var(--pt-ink-soft);
  font-family: var(--pt-mono);
  font-size: 0.7rem;
}

/* first story on page 1 spans the full width */
.news-card--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.news-card--lead .news-card-image {
  aspect-ratio: auto;
  min-height: 20rem;
}

.news-card--lead .news-card-body {
  justify-content: center;
  padding: 2rem 2.25rem;
}

.news-card--lead .news-card-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem) !important;
  letter-spacing: -0.035em !important;
}

.news-card--lead .news-card-text {
  font-size: 1.05rem;
}

.news-card--lead .news-card-meta {
  margin-top: 1.5rem;
}

.news-empty {
  grid-column: 1 / -1;
  padding: 4rem 2rem;
  border: 1px dashed rgb(54 66 66 / 0.25);
  border-radius: 22px;
  background: var(--pt-paper);
  text-align: center;
}

.news-empty .pg-h2 {
  text-align: center !important;
}

.news-empty p:last-child {
  margin: 0.75rem 0 0;
  color: var(--pt-ink-soft);
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pt-line);
}

.news-pagination-info {
  color: var(--pt-ink-soft);
  font-family: var(--pt-mono);
  font-size: 0.8rem;
}

.news-pagination-controls {
  display: flex;
  gap: 0.5rem;
}

.news-pagination-controls a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  background: var(--pt-paper);
  color: var(--pt-ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.news-pagination-controls a:hover {
  border-color: var(--pt-teal);
  color: var(--pt-teal);
}

/* ---------- Single article (also used by Contact us) --------------- */
.pg-article .blog-post-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--pt-cream) !important;
}

.pg-article .container {
  max-width: 1200px;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.pg-article .blog-post-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--pt-line);
}

.pg-article .blog-post-title {
  margin: 0 !important;
  color: var(--pt-ink) !important;
  font-size: clamp(2.25rem, 5vw, 3.75rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.045em !important;
  line-height: 1 !important;
  text-align: left !important;
}

.pg-article .blog-post-subtitle {
  margin: 1rem 0 0 !important;
  color: var(--pt-ink-soft) !important;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem) !important;
  line-height: 1.5 !important;
}

.pg-article .blog-post-image img {
  border-radius: 20px;
}

.pg-article .blog-post-meta {
  padding: 0 0 0.9rem;
  border-top: 0;
  border-bottom: 1px solid var(--pt-line);
  font-family: var(--pt-mono) !important;
  font-size: 0.75rem !important;
}

.pg-article .blog-post-content {
  max-width: 44rem;
  color: var(--pt-ink);
  font-size: 1.075rem;
  line-height: 1.75;
}

.pg-article .blog-post-content h2,
.pg-article .blog-post-content h3 {
  margin-top: 2.25rem !important;
  color: var(--pt-ink) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  text-align: left !important;
}

.pg-article .blog-post-content a {
  color: var(--pt-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.pg-article .blog-post-content blockquote {
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-left: 3px solid var(--pt-yellow);
  color: var(--pt-ink);
  font-size: 1.2rem;
}

.pg-article .sidebar-content {
  padding: 1.5rem !important;
  border: 1px solid var(--pt-line);
  border-radius: 20px !important;
  background: var(--pt-paper) !important;
  box-shadow: var(--pt-shadow);
}

.pg-article .sidebar-title {
  color: var(--pt-teal) !important;
  font-family: var(--pt-mono) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pg-article .related-post-image img {
  border-radius: 10px;
}

.pg-article .blog-author-bio {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid var(--pt-line);
  border-radius: 20px;
  background: var(--pt-paper);
}

/* ---------- Inner pages on tablets & phones ----------------------- */
@media (max-width: 899.98px) {
  .pg-intro,
  .pg-row {
    grid-template-columns: 1fr;
  }

  .pg-row-head {
    position: static;
  }

  .pg-cards--3,
  .pg-cards--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .news-card--lead {
    grid-template-columns: 1fr;
  }

  .news-card--lead .news-card-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 599.98px) {
  .pg-cards--2,
  .pg-cards--3,
  .pg-cards--4,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .pg-cards--4 .pg-card {
    min-height: 0;
  }

  .pg-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- About Us: leadership cards ----------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.team-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--pt-line);
  border-radius: 22px;
  background: var(--pt-paper);
  box-shadow: var(--pt-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pt-shadow-hover);
}

.team-photo {
  position: relative;
  min-height: 100%;
  background: var(--pt-wash);
}

.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.team-body {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.team-tag {
  align-self: flex-start;
  margin: 0 0 1.5rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--pt-yellow);
  color: var(--pt-night);
  font-family: var(--pt-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-tag--teal {
  background: var(--pt-teal);
  color: var(--pt-cream);
}

.team-name {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--pt-ink) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  text-align: left !important;
}

.team-role {
  margin: 0.25rem 0 1rem;
  color: var(--pt-teal);
  font-family: var(--pt-mono);
  font-size: 0.8rem;
}

.team-bio {
  margin: 0 0 1.5rem;
  color: var(--pt-ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.team-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.55rem 1rem;
  border: 1px solid var(--pt-line);
  border-radius: 999px;
  color: var(--pt-ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.team-link:hover {
  border-color: #0a66c2;
  background: #0a66c2;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1023.98px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 539.98px) {
  .team-card {
    grid-template-columns: 1fr;
  }

  .team-photo {
    aspect-ratio: 1 / 1;
  }
}

/* ---------- Contact Us ------------------------------------------- */
.contact-cards {
  margin-top: 0.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  min-height: 19rem;
}

.contact-card .pg-card-title {
  font-size: 1.5rem !important;
}

.contact-card > p:not(.pg-card-tag):not(.contact-place) {
  margin-bottom: 1.5rem;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgb(250 250 242 / 0.35);
  border-radius: 999px;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.contact-socials .contact-action {
  margin-top: 0;
}

.contact-action:hover {
  border-color: var(--pt-cream);
  background: var(--pt-cream);
  color: var(--pt-night);
}

.contact-action--dark {
  border-color: var(--pt-night);
  background: var(--pt-night);
  color: var(--pt-yellow);
  font-family: var(--pt-mono);
}

.contact-action--dark:hover {
  border-color: var(--pt-night);
  background: transparent;
  color: var(--pt-night);
}

.contact-place {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto !important;
  font-family: var(--pt-mono);
  font-size: 0.8rem !important;
  opacity: 0.85 !important;
}

.contact-card .pg-card-tag {
  align-self: flex-start;
}

@media (max-width: 599.98px) {
  .contact-card {
    min-height: 0;
  }

  .contact-card .pg-card-tag {
    margin-bottom: 1.25rem;
  }
}
