/* ==========================================================================
   Page-level layouts: home, services overview, service detail.
   Mobile first; desktop from 960px. Loaded on every page after components.css.
   ========================================================================== */

/* ---- Hero split: text + visual/aside ------------------------------------ */

.hero-split {
  display: grid;
  gap: var(--sp-10);
  align-items: center;
}

.hero-split--service {
  align-items: start;
  margin-top: var(--sp-6);
}

@media (min-width: 960px) {
  .hero-split {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
    gap: var(--sp-12);
  }

  .hero-split--service {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  .hero--home {
    padding-block: 5.5rem 5rem;
  }
}

.hero-split__main .sys-badge {
  margin-bottom: var(--sp-5);
}

.hero-split__main .lead {
  max-width: 34rem;
}

.hero--home .hero__title {
  margin-top: var(--sp-5);
}

.hero__stats {
  margin-top: var(--sp-8);
  align-items: flex-start;
}

/* Third hero stat: a headline with a sub-line instead of a number (home.hero_stat_* settings). */
.inline-stats__item--text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  max-width: 17rem;
}

.inline-stats__sub {
  color: var(--c-text-body);
}

@media (max-width: 959.98px) {
  .hero__stats {
    display: none; /* phones show the stat cards section instead (D-MobileHome) */
  }
}

/* ---- Orbit graphic (home hero) ------------------------------------------ */

.hero-split__visual {
  display: flex;
  justify-content: center;
}

.orbit {
  position: relative;
  width: 240px;
  height: 240px;
}

@media (min-width: 960px) {
  .orbit {
    width: 440px;
    height: 440px;
  }
}

.orbit__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--c-border);
}

.orbit__ring--outer { inset: 0; }
.orbit__ring--dashed { inset: 34px; border: 1px dashed var(--c-pink-border-strong); }
.orbit__ring--inner { display: none; }

@media (min-width: 960px) {
  .orbit__ring--dashed { inset: 56px; }
  .orbit__ring--inner { display: block; inset: 112px; background: rgba(255, 255, 255, 0.6); }
}

.orbit__core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.orbit__tag {
  position: absolute;
}

/* Tag order: SOC 2, ISO 27001, VAPT, DPDPA, HIPAA, GDPR.
   Phones (D-MobileHome): SOC 2 top, ISO 27001 right, VAPT bottom, GDPR left.
   Desktop (D-Home): all six around the ring. */
.orbit__tag--1 { left: 50%; top: -10px; transform: translateX(-50%); }
.orbit__tag--2 { right: -8px; top: 70px; }
.orbit__tag--3 { left: 50%; bottom: -10px; transform: translateX(-50%); }
.orbit__tag--4,
.orbit__tag--5 { display: none; }
.orbit__tag--6 { left: -8px; top: 70px; }

@media (min-width: 960px) {
  .orbit__tag--1 { top: -14px; }
  .orbit__tag--2 { right: -10px; top: 92px; }
  .orbit__tag--3 { left: auto; right: 0; bottom: 92px; transform: none; }
  .orbit__tag--4 { display: inline-block; left: 50%; bottom: -14px; transform: translateX(-50%); }
  .orbit__tag--5 { display: inline-block; left: -10px; bottom: 92px; }
  .orbit__tag--6 { left: 0; top: 92px; }
}

/* ---- Logo strip --------------------------------------------------------- */

.logo-strip__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5) var(--sp-8);
  list-style: none;
}

@media (min-width: 960px) {
  .logo-strip__list {
    flex: 1;
    justify-content: space-between;
    gap: var(--sp-5) var(--sp-10);
    margin-left: var(--sp-10);
  }
}

.logo-strip__img { width: auto; }
.logo-strip__img--h24 { height: 24px; }
.logo-strip__img--h26 { height: 26px; }
.logo-strip__img--h28 { height: 28px; }
.logo-strip__img--h30 { height: 30px; }
.logo-strip__img--h32 { height: 32px; }
.logo-strip__img--h34 { height: 34px; }
.logo-strip__img--h36 { height: 36px; }

/* ---- Testimonials slider (home "05 — Client_log") --------------------------
   Server HTML is a wrapped grid of equal-height cards (also the no-JS, reduced-
   motion and "three or fewer" view). main.js adds .is-slider when there are more
   testimonials than fit: one row of --per-view cards, moved with a transform. */

.tslider {
  --per-view: 1;
  --tslider-gap: var(--sp-5);
  margin-top: var(--sp-10);
}

@media (min-width: 640px) {
  .tslider { --per-view: 2; }
}

@media (min-width: 960px) {
  .tslider { --per-view: 3; }
}

.tslider__track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(18.75rem, 100%), 1fr));
  gap: var(--tslider-gap);
  list-style: none;
}

.tslider__slide {
  display: flex;
}

.tslider__slide .quote-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tslider__slide .quote-card figcaption {
  margin-top: auto;
}

.tslider.is-slider .tslider__viewport {
  overflow: hidden;
}

.tslider.is-slider .tslider__track {
  display: flex;
  position: relative;
  transition: transform 750ms ease-in-out;
}

.tslider.is-slider .tslider__track.is-instant {
  transition: none;
}

.tslider.is-slider .tslider__slide {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--tslider-gap)) / var(--per-view));
  min-width: 0;
}

.tslider__controls {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.tslider__controls[hidden] {
  display: none;
}

.tslider__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-width: var(--tap);
  min-height: var(--tap);
  padding-inline: var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-text);
  font: inherit;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  cursor: pointer;
}

.tslider__btn:hover {
  border-color: var(--c-pink-border-strong);
  color: var(--c-red-dark);
}

.tslider__btn--toggle .icon {
  color: var(--c-red-dark);
}

.tslider__btn--toggle .tslider__icon-play,
.tslider__btn--toggle[data-paused="true"] .tslider__icon-pause {
  display: none;
}

.tslider__btn--toggle[data-paused="true"] .tslider__icon-play {
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .tslider.is-slider .tslider__track {
    transition: none;
  }
}

/* ---- Module cards: grid cards on desktop, compact rows on phones -------- */

.section--modules {
  padding-top: var(--sp-12);
}

@media (min-width: 960px) {
  .section--modules {
    padding-top: 6.5rem;
    padding-bottom: var(--sp-20);
  }
}

.module-card__arrow {
  display: none;
}

@media (max-width: 639.98px) {
  .module-grid {
    --grid-gap: var(--sp-3);
  }

  .module-card {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: 1.125rem;
    border-radius: var(--r-xl);
  }

  .module-card .card__head {
    flex-shrink: 0;
  }

  .module-card__meta {
    display: none;
  }

  .module-card .hex-badge {
    width: 52px;
    height: 46px;
  }

  .module-card__body {
    flex: 1;
    min-width: 0;
  }

  .module-card .card__title {
    margin: 0;
    font-size: 1.0625rem;
  }

  .module-card .card__text {
    font-size: var(--fs-xs);
    margin-top: 2px;
  }

  .module-card__arrow {
    display: block;
    color: var(--c-red-dark);
  }

  .module-card.card--dark .module-card__arrow {
    color: var(--c-red-soft);
  }
}

/* ---- Stats (phones only, as in D-MobileHome) ------------------------------ */

.stats-mobile {
  padding-block: var(--sp-10);
  background: var(--c-bg);
}

@media (min-width: 960px) {
  .stats-mobile {
    display: none;
  }
}

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

/* ---- Why AtlasHive ------------------------------------------------------- */

.why__inner {
  display: grid;
  gap: var(--sp-8) var(--sp-12);
  align-items: center;
}

@media (min-width: 960px) {
  .why {
    padding-top: var(--sp-6);
  }

  .why__inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

.why__title {
  font-size: clamp(1.875rem, 1.6rem + 1.15vw, 2.625rem);
  margin-bottom: var(--sp-4);
}

.why__text {
  color: var(--c-text-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: var(--sp-4);
}

/* Team cards: phones only (D-MobileHome); desktop shows the four feature cards. */
.team-mini {
  display: grid;
  gap: var(--sp-3);
  list-style: none;
}

.team-mini__item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
}

.team-mini__photo {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  object-fit: cover;
  object-position: top;
}

.team-mini__name {
  font-weight: 600;
  font-size: 1.0625rem;
}

.team-mini__role {
  color: var(--c-text-body);
  font-size: var(--fs-xs);
}

.team-mini__creds {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  color: var(--c-red-dark);
}

@media (max-width: 959.98px) {
  .why__cards {
    display: none;
  }
}

@media (min-width: 960px) {
  .team-mini {
    display: none;
  }
}

/* ---- Industries / FAQ spacing --------------------------------------------- */

.section--industries {
  padding-bottom: var(--sp-10);
}

.faq-heading {
  max-width: none;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
}

/* ---- Services overview filter -------------------------------------------- */

.section--filter {
  padding-top: var(--sp-8);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.filter-bar__chips {
  gap: 0.625rem;
}

.filter-bar__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-text-muted);
}

/* ---- Service detail ------------------------------------------------------ */

.section--benefits {
  padding-block: var(--sp-section-sm);
}

.benefit {
  padding-block: var(--sp-2);
}

/* "01 — Overview" (Phase 7I, every service): text column + a 520px card from 1024px, stacked
   below that; an optional row of 3-6 step cards (N columns from 1024px, 2 from 640px, 1 below). */
.overview {
  display: grid;
  gap: var(--sp-10);
  margin-top: var(--sp-6);
}

.overview__title {
  font-size: 2rem;                   /* 32 */
  line-height: 1.08;
  letter-spacing: var(--ls-heading);
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
}

.overview__accent {
  font-style: normal;
  color: var(--c-red);
}

.overview__lead {
  margin-top: var(--sp-6);
  font-size: 1.0625rem;              /* 17 */
  line-height: 1.65;
  font-weight: 500;
  color: var(--c-text);
}

.overview__definition {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);           /* 15 */
  line-height: var(--lh-relaxed);
  color: var(--c-text-body);
}

.overview__definition strong {
  font-weight: 700;
  color: var(--c-text);
}

.overview-card {
  padding: var(--sp-8);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  background: var(--c-surface);
  box-shadow: var(--sh-float);
}

.overview-card__label {
  margin: 0 0 1.125rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--c-red-dark);
}

.overview-card__rows {
  display: grid;
  gap: 0.625rem;
  list-style: none;
}

.overview-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 1.125rem;
  border-radius: var(--r-lg);
  background: var(--c-surface-muted);
}

.overview-card__body {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.overview-card__title {
  font-size: 1.0625rem;              /* 17 */
  font-weight: 700;
  line-height: var(--lh-snug);
  color: var(--c-text);
}

.overview-card__text {
  font-size: var(--fs-xs);           /* 14 */
  line-height: 1.5;
  color: var(--c-text-body);
}

.overview-card__tag {
  flex: 0 0 auto;
  max-width: 40%;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  font-weight: 500;
  text-transform: uppercase;
  text-align: right;
  color: var(--c-text-muted-strong); /* #64748b is 4.37:1 on this grey */
}

.overview-card__row--1 {
  background: var(--c-red);
}

.overview-card__row--1 .overview-card__title,
.overview-card__row--1 .overview-card__text,
.overview-card__row--1 .overview-card__tag {
  color: var(--c-text-on-dark);      /* 4.98:1 on red */
}

.overview-card__row--2 {
  background: var(--c-pink);
}

.overview-card__row--2 .overview-card__tag {
  color: var(--c-red-dark);          /* 4.92:1 on pink (#d32f2f would be 4.36:1) */
}

.overview-card__note {
  margin-top: 1.125rem;
  font-size: var(--fs-2xs);          /* 13 */
  line-height: 1.5;
  color: var(--c-text-muted);
}

.overview-steps {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-12);
  list-style: none;
}

.overview-step {
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  background: var(--c-surface);
}

.overview-step__title {
  margin-top: var(--sp-4);
  font-size: var(--fs-h4);           /* 18 */
  font-weight: 600;
  line-height: var(--lh-snug);
}

.overview-step__text {
  margin-top: 0.375rem;
  font-size: var(--fs-xs);           /* 14 */
  color: var(--c-text-body);
}

@media (max-width: 639.98px) {
  .overview-card { padding: var(--sp-5); }
  .overview-card__row { padding: 0.875rem var(--sp-4); }
}

@media (min-width: 640px) {
  .overview-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .section--overview { padding-block: 6rem; } /* 96 */
  .overview {
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: var(--sp-20);               /* 80 */
    align-items: start;
  }
  .overview--full { grid-template-columns: minmax(0, 1fr); }
  .overview__title { font-size: 3rem; }        /* 48 */
  .overview__lead { font-size: 1.1875rem; }    /* 19 */
  .overview__definition { font-size: 1.0625rem; } /* 17 */
  .overview-steps--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-steps--n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .overview-steps--n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .overview-steps--n6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* "Trusted by" after the pipeline: no double hairline where a bordered section follows it. */
.trusted + .grid-bg--bordered {
  border-top: 0;
}

.faq-related {
  display: grid;
  gap: var(--sp-12);
  align-items: start;
}

@media (min-width: 960px) {
  .faq-related {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

.faq-related__title {
  margin-top: 0;
  margin-bottom: var(--sp-6);
}

.related-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  margin-bottom: 1.125rem;
}

.choose__inner {
  max-width: calc(62.5rem + 2 * var(--gutter));
}

.choose__title {
  margin-inline: auto;
  margin-bottom: var(--sp-8);
}

.choose__toggle {
  justify-content: center;
  margin-bottom: var(--sp-6);
}

.choose__panel {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  padding: var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-4xl);
}

.choose__panel + .choose__panel {
  margin-top: var(--sp-4); /* without JavaScript both panels are shown */
}

@media (min-width: 960px) {
  .choose__panel {
    padding: var(--sp-10);
  }
}

.choose__main {
  flex: 2 1 23.75rem;
  min-width: 0;
}

.choose__panel-title {
  font-size: var(--fs-h3-lg);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--sp-3);
}

.choose__text {
  color: var(--c-text-body);
  line-height: var(--lh-relaxed);
}

.choose__facts {
  flex: 1 1 13.75rem;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin: 0;
}

.choose__fact {
  padding: 1.125rem;
  border-radius: var(--r-lg);
  background: var(--c-surface-muted);
}

.choose__fact dt {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  color: var(--c-text-body); /* #64748B is below 4.5:1 on this grey */
  text-transform: uppercase;
}

.choose__fact dd {
  margin: var(--sp-1) 0 0;
  font-weight: 600;
}

/* ==========================================================================
   Phase 5B: About, Industries, Contact, Academy
   ========================================================================== */

.grid--280 { --grid-min: 17.5rem; --grid-gap: var(--sp-4); }

.hex-badge--md { width: 52px; height: 46px; }
.hex-badge--lg { width: 64px; height: 57px; }
.hex-badge .icon { width: 1.5rem; height: 1.5rem; }

.tag--solid {
  border-color: var(--c-red);
  background: var(--c-red);
  color: var(--c-text-on-dark);
}

/* ---- About -------------------------------------------------------------- */

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
  margin: 0;
}

/* Value above label, as in the design. */
.about-stats__item {
  display: flex;
  flex-direction: column-reverse;
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.about-stats__item .stat__value {
  margin: 0;
}

.about-stats__label {
  font-size: var(--fs-2xs);
  color: var(--c-text-body);
}

.principle {
  border-radius: var(--r-3xl);
  padding: var(--sp-7);
}

.principle__title {
  font-size: 1.25rem;
  margin: 1.125rem 0 var(--sp-2);
}

.statements {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(26.25rem, 100%), 1fr));
}

.statement {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--sp-8) var(--sp-6);
  border-radius: var(--r-5xl);
}

@media (min-width: 960px) {
  .statement {
    padding: var(--sp-12);
  }
}

.statement--dark {
  background: var(--c-navy);
  color: var(--c-text-on-dark);
}

.statement--pink {
  background: var(--c-pink);
  color: var(--c-red-ink);
}

.statement__hex {
  position: absolute;
  z-index: -1;
  right: -30px;
  top: -24px;
  width: 150px;
  height: 132px;
  clip-path: var(--hex-clip);
  background: var(--c-red);
}

.statement__label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--c-red-dark);
}

.statement--dark .statement__label {
  color: var(--c-red-soft);
}

/* Small icon above the label (Phase 7F: Our Mission / Our Vision). */
.statement__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  color: var(--c-red-dark);
}

.statement--dark .statement__icon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--c-red-soft);
}

/* "Our Values": five cards; 1 column, 2 from 560px, 3 from 960px, 5 from 1200px. */
.values__grid {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
  list-style: none;
}

@media (min-width: 560px) {
  .values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values__grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .values__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .values__grid > * { grid-column: span 2; }
  .values__grid > :last-child:nth-child(odd) { grid-column: span 2; }
  /* 3 + 2: the second row is centred. */
  .values__grid > :nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
}

@media (min-width: 1200px) {
  .values__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .values__grid > *,
  .values__grid > :last-child:nth-child(odd),
  .values__grid > :nth-child(4):nth-last-child(2) { grid-column: auto; }
}

.value-card {
  border-radius: var(--r-3xl);
  padding: var(--sp-6);
}

.value-card__title {
  font-size: 1.125rem;
  margin: var(--sp-4) 0 var(--sp-2);
}

.statement__text {
  max-width: 28.75rem;
  margin-top: 0.875rem;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--ls-tight);
}

.founders {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(min(30rem, 100%), 1fr));
  list-style: none;
}

.founder {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  padding: var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-4xl);
  background: var(--c-bg);
}

.founder__photo {
  flex: 0 0 190px;
  width: 190px;
  height: 250px;
  border-radius: var(--r-xl);
  object-fit: cover;
  object-position: top;
}

@media (max-width: 639.98px) {
  .founder__photo {
    flex-basis: 100%;
    width: 100%;
    height: 280px;
  }
}

.founder__body {
  flex: 1 1 12.5rem;
  min-width: 0;
  padding: var(--sp-2) var(--sp-1);
}

.founder__name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: var(--ls-tight);
}

.founder__role {
  margin-top: var(--sp-1);
  color: var(--c-red-dark);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.founder__bio {
  margin: var(--sp-3) 0 0.875rem;
  color: var(--c-text-body);
  font-size: var(--fs-xs);
}

.founder__creds {
  --cluster-gap: var(--sp-2);
  list-style: none;
}

.founder__link {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
}

.partners {
  display: grid;
  gap: var(--sp-10);
  align-items: center;
}

@media (min-width: 960px) {
  .partners {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  }
}

.partners__title {
  margin-bottom: 0.875rem;
}

.partners__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem;
  list-style: none;
}

.partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6.5rem;
  padding: var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  background: var(--c-surface);
  font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

/* ---- Industries ---------------------------------------------------------- */

.section--industry-list {
  padding-top: var(--sp-8);
}

.industry-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(31.25rem, 100%), 1fr));
  list-style: none;
}

.industry-card {
  display: flex;
  gap: 1.375rem;
  border-radius: var(--r-3xl);
  scroll-margin-top: 6rem;
}

.industry-card:target {
  border-color: var(--c-pink-border-strong);
  box-shadow: var(--sh-card-hover);
}

.industry-card__body {
  min-width: 0;
}

.industry-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--sp-2);
}

.industry-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: 0.875rem;
  list-style: none;
}

.fw-chip {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--sp-3);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--c-surface-muted);
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  font-weight: 500;
}

/* Mouse pointers: the design's compact size, still above the 24px WCAG 2.2 minimum. */
@media (min-width: 960px) {
  .fw-chip {
    min-height: 2rem;
  }
}

a.fw-chip:hover {
  border-color: var(--c-pink-border-strong);
  background: var(--c-pink);
  color: var(--c-red-dark);
}

.fw-chip--plain {
  color: var(--c-text-body);
}

@media (max-width: 639.98px) {
  .industry-card {
    flex-direction: column;
    gap: var(--sp-4);
  }
}

/* ---- Contact ------------------------------------------------------------- */

/* Three large, tappable detail cards: Call, Email, Address. One column on phones
   (full width, big targets), three across from 760px. */
.contact-details {
  display: grid;
  gap: var(--sp-4);
  list-style: none;
}

@media (min-width: 760px) {
  .contact-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-5);
  }
}

.contact-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  height: 100%;
  min-height: 12rem;
  padding: var(--sp-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3xl);
  color: var(--c-text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

@media (min-width: 960px) {
  .contact-detail {
    padding: 2rem;
  }
}

a.contact-detail:hover {
  border-color: var(--c-pink-border-strong);
  box-shadow: var(--sh-card-hover);
  color: var(--c-text);
}

a.contact-detail:focus-visible {
  outline-offset: 4px;
  border-radius: var(--r-3xl);
}

.contact-detail .hex-badge {
  margin-bottom: var(--sp-3);
}

.contact-detail__label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-red-dark);
}

.contact-detail__value {
  font-size: var(--fs-h3-lg);
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-detail__action {
  margin-top: auto;
  padding-top: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-red-dark);
}

.contact-detail__action--muted {
  font-weight: 400;
  color: var(--c-text-muted);
}

.sys-badge--caps {
  text-transform: uppercase;
}

/* ---- Academy ------------------------------------------------------------- */

.orbit--academy {
  width: 240px;
  height: 240px;
}

@media (min-width: 960px) {
  .orbit--academy {
    width: 320px;
    height: 320px;
  }

  .orbit--academy .orbit__ring--dashed {
    inset: 44px;
  }
}

.course-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-6);
  min-height: 23.75rem;
  border-radius: var(--r-4xl);
}

@media (min-width: 960px) {
  .course-card {
    padding: var(--sp-8);
  }
}

.course-card__level {
  text-transform: uppercase;
}

.course-card__title {
  margin: 1.625rem 0 var(--sp-3);
  font-size: var(--fs-h3-lg);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
}

.course-card__date {
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-red-dark);
}

.card--dark .course-card__date {
  color: var(--c-red-soft);
}

.course-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  padding-top: 1.125rem;
  border-top: 1px solid var(--c-border);
  font-weight: 700;
}

.card--dark .course-card__foot {
  border-top-color: var(--c-navy-border);
}

.course-card__action {
  color: var(--c-red-dark);
}

.card--dark .course-card__action {
  color: var(--c-red-soft);
}

.why-learn__title {
  margin-bottom: 0.875rem;
}

.why-learn {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
  list-style: none;
}

.why-learn__item {
  padding: 1.375rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.why-learn__name {
  font-size: var(--fs-body);
  font-weight: 700;
}

.why-learn__text {
  margin-top: 0.375rem;
  font-size: var(--fs-xs);
  color: var(--c-text-body);
}

.cta-band__text--tight {
  margin: var(--sp-2) 0 0;
}

/* ==========================================================================
   Phase 5C: blog, post, landing, legal, errors, thank-you, HTML sitemap
   ========================================================================== */

.container--article {
  max-width: calc(51.25rem + 2 * var(--gutter)); /* 820px, as in D-BlogPost and D-Legal */
}

/* ---- Blog (Phase 7J): list, cards, cover tiles, post page ------------------------
   Tokens only: red, pale red, ink, body, muted (--c-text-muted-strong, #5b6779), border,
   light grey, page background. Hexagons use --hex-clip. No photos needed: every post has a tile. */

.blog-hero__title em,
.post-head__title em {
  font-style: normal;
  color: var(--c-red);
}

.blog-hero {
  padding-bottom: var(--sp-10);
}

.blog-hero__lead {
  max-width: 40rem;
}

.blog-hero .lead {
  margin-bottom: 0;
}

.blog-featured-section {
  padding-bottom: 0;
}

.blog-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.625rem;
  border-radius: var(--r-pill);
  background: var(--c-pink);
  color: var(--c-red-dark);             /* 4.92:1 on pale red */
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.4;
}

.blog-pill {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: var(--r-pill);
  background: var(--c-red);
  color: var(--c-text-on-dark);         /* 4.98:1 */
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.4;
}

.blog-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-text-muted-strong);
}

/* Cover tile: hexagons on a faint grid; tone by category. */
.post-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--c-pink);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}

.post-cover--card { aspect-ratio: 16 / 9; }
.post-cover--featured { min-height: 16.25rem; height: 100%; }
.post-cover--hero { height: 300px; border-radius: 24px; }

.post-cover--image { background: var(--c-surface-muted); }

.post-cover__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sized by the tile's height, so the art keeps its shape on wide covers. */
.post-cover__hex {
  position: absolute;
  aspect-ratio: 1 / 0.92;
  clip-path: var(--hex-clip);
}

/* The art box takes the tile's full height and a width of 1.5 x that height. */
.post-cover__art {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 6%;
  aspect-ratio: 1.5 / 1;
}

.post-cover__hex--a { height: 58%; right: 12%; top: 16%; }
.post-cover__hex--b { height: 34%; right: 54%; top: 50%; }
.post-cover__hex--c { height: 24%; right: 0; top: 62%; }

.post-cover--pink .post-cover__hex--a { background: var(--c-red); }
.post-cover--pink .post-cover__hex--b { background: rgba(211, 47, 47, 0.35); }
.post-cover--pink .post-cover__hex--c { background: var(--c-surface); }

.post-cover--grey { background-color: var(--c-surface-muted); }
.post-cover--grey .post-cover__hex--a { background: var(--c-navy); }
.post-cover--grey .post-cover__hex--b { background: var(--c-red); }
.post-cover--grey .post-cover__hex--c { background: rgba(15, 23, 42, 0.14); }

.post-cover--red {
  background-color: var(--c-red);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}
.post-cover--red .post-cover__hex--a { background: rgba(255, 255, 255, 0.92); }
.post-cover--red .post-cover__hex--b { background: rgba(255, 255, 255, 0.32); }
.post-cover--red .post-cover__hex--c { background: var(--c-red-dark); }

/* Featured post */
.blog-featured {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: 24px;
  background: var(--c-surface);
}

.blog-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-4);
  padding: var(--sp-6);
}

.blog-featured__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
}

.blog-featured__title {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
}

.blog-featured__excerpt {
  margin: 0;
  color: var(--c-text-body);
  font-size: var(--fs-lead);
}

.blog-featured__btn {
  align-self: flex-start;
  margin-top: var(--sp-2);
}

@media (min-width: 960px) {
  .blog-featured { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .blog-featured__body { padding: var(--sp-12) var(--sp-10); }
}

/* Topic chips */
.blog-featured-section + .blog-list { padding-top: var(--sp-12); }

.blog-chips__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0 0 var(--sp-8);
  padding: 0;
  list-style: none;
}

.blog-chip {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 1.125rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-text);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
}

.blog-chip:hover {
  border-color: var(--c-red);
  color: var(--c-red-dark);
}

.blog-chip[aria-current="page"] {
  border-color: var(--c-red);
  background: var(--c-red);
  color: var(--c-text-on-dark);
}

/* Card grid: 1 / 2 / 3 columns */
.blog-grid {
  display: grid;
  gap: var(--sp-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  background: var(--c-surface);
  color: inherit;
  text-decoration: none;
}

.blog-card__link:hover {
  border-color: var(--c-pink-border-strong);
  box-shadow: var(--sh-card-hover);
}

.blog-card__link:hover .blog-card__title {
  color: var(--c-red-dark);
}

.blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
}

.blog-card__title {
  margin: 0;
  font-size: 1.1875rem;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}

.blog-card__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--c-text-body);
  font-size: var(--fs-sm);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.blog-card .blog-meta {
  margin-top: auto;
  padding-top: var(--sp-2);
}

/* Pagination: round numbers, the current page red */
.blog-pages__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  margin: var(--sp-12) 0 0;
  padding: 0;
  list-style: none;
}

.blog-pages__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
}

.blog-pages__link:hover {
  border-color: var(--c-red);
  color: var(--c-red-dark);
}

.blog-pages__link[aria-current="page"] {
  border-color: var(--c-red);
  background: var(--c-red);
  color: var(--c-text-on-dark);
}

/* ---- Post page -------------------------------------------------------------- */

.post-preview-note {
  margin: 0;
  padding: var(--sp-3) var(--gutter);
  background: var(--c-pink);
  color: var(--c-red-ink);
  font-size: var(--fs-xs);
  text-align: center;
}

/* Phase 8: [[post:...]] cross-link that is plain text in this preview */
.post-preview-note--warn {
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
}

.post-head {
  padding-bottom: 0;
}

.post-head__inner {
  max-width: calc(56.25rem + 2 * var(--gutter)); /* 900 */
}

.post-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-5) 0 var(--sp-4);
}

.post-head__title {
  margin: 0;
  font-size: clamp(2.125rem, 1.59rem + 2.29vw, 3.25rem); /* 34 -> 52 */
  line-height: 1.08;
  letter-spacing: var(--ls-heading);
}

.post-head__lead {
  margin: var(--sp-5) 0 0;
  color: var(--c-text-strong-body);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
}

.post-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
}

.post-author__initials {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border-radius: 50%;
  background: var(--c-pink);
  color: var(--c-red-dark);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.post-author__initials--lg {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.125rem;
}

.post-author__text {
  display: grid;
  margin: 0;
  line-height: 1.4;
}

.post-author__name {
  color: var(--c-text);
  font-weight: 600;
}

.post-author__role {
  color: var(--c-text-muted-strong);
  font-size: var(--fs-xs);
}

/* Below the header the page has a plain background, like every other section (the grid shows only behind the header). */
.post-body-area {
  padding-top: var(--sp-10);
  background-color: var(--c-bg);
}

.post-layout {
  display: grid;
  gap: var(--sp-8);
  margin-top: var(--sp-12);
  padding-bottom: var(--sp-section-sm);
}

.post-main {
  min-width: 0;
}

/* Contents: a box above the text below 1024 px, a sticky column from 1024 px. */
.post-toc--side {
  display: none;
}

.post-toc--box {
  margin-bottom: var(--sp-8);
  padding: 0 var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  background: var(--c-surface);
}

.post-toc--box summary {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding-block: var(--sp-2);
  cursor: pointer;
}

.post-toc--box[open] {
  padding-bottom: var(--sp-4);
}

.post-toc__title {
  margin: 0;
  color: var(--c-red-dark);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  font-weight: 500;
  text-transform: uppercase;
}

.post-toc__list {
  display: grid;
  margin: var(--sp-3) 0 0;
  padding: 0;
  border-left: 1px solid var(--c-border);
  list-style: none;
}

.post-toc__link {
  display: block;
  margin-left: -1px;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-4);
  border-left: 2px solid transparent;
  color: var(--c-text-body);
  font-size: var(--fs-xs);
  line-height: 1.45;
  text-decoration: none;
}

.post-toc__link:hover {
  color: var(--c-red-dark);
}

.post-toc__link.is-active,
.post-toc__link[aria-current="true"] {
  border-left-color: var(--c-red);
  color: var(--c-text);
  font-weight: 700;
}

@media (min-width: 1024px) {
  .post-layout {
    grid-template-columns: 260px minmax(0, 780px);
    justify-content: center;
    gap: 72px;
  }
  .post-layout--no-toc { grid-template-columns: minmax(0, 780px); }
  .post-toc--side {
    display: block;
    position: sticky;
    top: 7rem;
    align-self: start;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
  }
  .post-toc--box { display: none; }
  .post-head__lead { font-size: 1.25rem; }  /* 20 */
}

/* Body: 18 px, line height 1.8, H2 30 px */
.post-prose {
  max-width: 780px;
  color: var(--c-text-body);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.post-prose > p:first-child {
  color: var(--c-text-strong-body);
  font-size: inherit;
}

.post-prose h2 {
  margin-top: var(--sp-12);
  font-size: 1.5rem;
  line-height: 1.25;
  scroll-margin-top: 7rem;
}

.post-prose h3 {
  font-size: 1.1875rem;
  line-height: 1.35;
}

.post-prose ul {
  padding-left: 0;
  list-style: none;
}

.post-prose ul > li {
  position: relative;
  padding-left: 1.625rem;
}

.post-prose ul > li::before {
  content: "";
  position: absolute;
  left: 0.375rem;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-red);
}

@media (min-width: 640px) {
  .post-prose { font-size: 1.125rem; }  /* 18 */
  .post-prose h2 { font-size: 1.875rem; } /* 30 */
}

/* Numbered steps: hexagon badges, the first one solid red */
.post-prose .md-steps {
  display: grid;
  gap: var(--sp-3);
  margin-block: var(--sp-7);
  padding: 0;
  list-style: none;
}

.md-step {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  background: var(--c-surface);
}

.post-prose .md-step + .md-step {
  margin-top: 0;
}

.md-step__num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.5rem;
  clip-path: var(--hex-clip);
  background: var(--c-pink);
  color: var(--c-red-dark);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1;
}

.md-step:first-child .md-step__num {
  background: var(--c-red);
  color: var(--c-text-on-dark);
}

.md-step__title {
  margin: 0;
  color: var(--c-text);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

.md-step__text {
  margin: var(--sp-1) 0 0;
  font-size: var(--fs-body);
  line-height: 1.65;
}

/* Key takeaway */
.md-takeaway {
  margin-block: var(--sp-8);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-xl);
  background: var(--c-pink);
  color: var(--c-text-strong-body);
}

.md-takeaway__label {
  margin: 0 0 var(--sp-2);
  color: var(--c-red-dark);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  font-weight: 500;
  text-transform: uppercase;
}

.md-takeaway > p + p {
  margin-top: var(--sp-3);
}

.md-takeaway > :last-child {
  margin-bottom: 0;
}

/* Pull quote: red left bar, 26 px (20 px on phones) */
.post-prose .md-quote {
  margin-block: var(--sp-10);
  padding: var(--sp-1) 0 var(--sp-1) var(--sp-6);
  border-left: 4px solid var(--c-red);
  border-radius: 0;
  background: none;
  color: var(--c-text);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--ls-tight);
}

.md-quote p {
  margin: 0;
}

@media (min-width: 640px) {
  .post-prose .md-quote { font-size: 1.625rem; }
}

/* Tables: a white card with a grey header row; scrolls sideways on small screens */
.post-prose .table-wrap {
  margin-block: var(--sp-7);
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  background: var(--c-surface);
}

.post-prose table {
  min-width: 34rem;
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.post-prose th {
  background: var(--c-surface-muted);
  font-weight: 700;
}

.post-prose th,
.post-prose td {
  padding: var(--sp-3) var(--sp-4);
}

.post-prose tr:last-child td {
  border-bottom: 0;
}

/* Question cards */
.md-faq {
  display: grid;
  gap: var(--sp-3);
  margin-block: var(--sp-7);
}

.md-faq__item {
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  background: var(--c-surface);
}

.post-prose .md-faq__item h3 {
  margin: 0 0 var(--sp-2);
  font-size: 1.0625rem;
}

.md-faq__item > :last-child {
  margin-bottom: 0;
}

/* Share row, author box, related service */
.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-12);
  padding-top: var(--sp-7);
  border-top: 1px solid var(--c-border);
}

.post-share__label {
  margin-right: var(--sp-1);
  color: var(--c-text-muted-strong);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  text-transform: uppercase;
}

.post-share__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  padding: 0 var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-text);
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.post-share__btn[hidden] {
  display: none;
}

.post-share__btn:hover,
.post-share__btn.is-done {
  border-color: var(--c-red);
  color: var(--c-red-dark);
}

.post-byline-box {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  background: var(--c-surface);
}

.post-byline-box__name {
  margin: 0;
  color: var(--c-text);
  font-weight: 600;
}

.post-byline-box__text {
  margin: var(--sp-1) 0 0;
  color: var(--c-text-body);
  font-size: var(--fs-sm);
}

.post-service-link {
  margin: var(--sp-4) 0 0;
  font-weight: 600;
}

.post-service-link a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  color: var(--c-red-dark);
}

/* Red CTA band with hexagon artwork */
.post-cta-band {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-6);
  overflow: hidden;
  padding: var(--sp-10) var(--sp-8);
  border-radius: var(--r-5xl);
  background: var(--c-red);
  color: var(--c-text-on-dark);
}

.post-cta-band__hex {
  position: absolute;
  aspect-ratio: 1 / 0.92;
  clip-path: var(--hex-clip);
  background: rgba(255, 255, 255, 0.12);
}

.post-cta-band__hex--a { width: 13.75rem; right: -2.5rem; top: -3.75rem; }
.post-cta-band__hex--b { width: 8.75rem; right: 9rem; bottom: -4.5rem; background: rgba(15, 23, 42, 0.14); }

.post-cta-band__text,
.post-cta-band__btn {
  position: relative;
}

.post-cta-band__title {
  margin: 0;
  color: var(--c-text-on-dark);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  line-height: 1.2;
}

.post-cta-band__sub {
  margin: var(--sp-2) 0 0;
  color: var(--c-text-on-dark);
  font-size: var(--fs-lead);
}

@media (min-width: 768px) {
  .post-cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-12) var(--sp-14);
  }
}

.post-cta-section {
  padding-bottom: var(--sp-section-sm);
}

.post-more {
  padding-bottom: var(--sp-section);
}

.post-more__title {
  margin: 0 0 var(--sp-7);
  font-size: var(--fs-h2-sm);
}

@media (prefers-reduced-motion: no-preference) {
  .blog-card__link,
  .blog-chip,
  .blog-pages__link,
  .post-share__btn,
  .post-toc__link {
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
  }
}

/* ---- Landing page --------------------------------------------------------- */

.landing-header {
  padding-top: var(--sp-5);
}

.landing-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.landing-header__logo {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

.landing-header__logo img {
  height: 24px;
  width: auto;
}

@media (min-width: 960px) {
  .landing-header__logo img {
    height: 28px;
  }
}

.landing-header__call {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
}

.landing-header__hint {
  display: none;
  color: var(--c-text-body);
}

@media (min-width: 640px) {
  .landing-header__hint {
    display: inline;
  }
}

.lp-hero__inner {
  display: grid;
  gap: var(--sp-10) var(--sp-14);
  align-items: start;
}

@media (min-width: 960px) {
  .lp-hero {
    padding-block: 4.5rem 6rem;
  }

  .lp-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 30rem);
  }
}

.lp-hero__title {
  margin-top: var(--sp-6);
  font-size: clamp(2.375rem, 1.9rem + 1.95vw, 3.625rem);
}

.lp-points {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: var(--sp-8);
  list-style: none;
}

.lp-points__item {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
}

.lp-points__hex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 23px;
  clip-path: var(--hex-clip);
  background: var(--c-red);
  color: var(--c-text-on-dark);
}

.lp-points__hex .icon {
  width: 0.75rem;
  height: 0.75rem;
  stroke-width: 3;
}

.lp-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5) var(--sp-7);
  list-style: none;
}

.lp-hero__cta {
  margin-bottom: var(--sp-8);
}

/* Call / email panel (#contact): every CTA on the page scrolls here. */
.lp-contact {
  scroll-margin-top: 6rem; /* clears the floating header */
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-4xl);
  padding: var(--sp-6);
  box-shadow: var(--sh-float);
}

@media (min-width: 640px) {
  .lp-contact {
    border-radius: var(--r-5xl);
    padding: 2.25rem;
  }
}

.lp-contact__title {
  margin: var(--sp-2) 0 var(--sp-2);
  font-size: var(--fs-h3-lg);
}

.lp-contact__text {
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
}

.lp-contact__actions {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  list-style: none;
}

.lp-contact__btn {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 4rem;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-xl);
  background: var(--c-bg);
  color: var(--c-text);
  font-weight: 600;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.lp-contact__btn:hover {
  border-color: var(--c-pink-border-strong);
  color: var(--c-text);
}

.lp-contact__btn--primary {
  border-color: var(--c-red);
  background: var(--c-red);
  color: var(--c-text-on-dark);
  box-shadow: var(--sh-red);
}

.lp-contact__btn--primary:hover {
  border-color: var(--c-red-dark);
  background: var(--c-red-dark);
  color: var(--c-text-on-dark);
}

.lp-contact__btn .icon {
  flex-shrink: 0;
}

.lp-contact__btn-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lp-contact__btn-value {
  display: block;
  font-size: var(--fs-lead);
  overflow-wrap: anywhere;
}


.lp-stats {
  padding-block: var(--sp-8);
  border-block: 1px solid var(--c-border);
  background: var(--c-surface);
}

.lp-stats__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
  margin: 0;
  text-align: center;
}

@media (min-width: 960px) {
  .lp-stats__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.lp-stats__item {
  display: flex;
  flex-direction: column-reverse;
}

.lp-stats__item .stat__value {
  margin: 0;
}

.lp-steps {
  list-style: none;
}

.lp-step {
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  background: rgba(255, 255, 255, 0.85);
}

.lp-step__num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--c-red-dark);
}

.lp-step__title {
  margin: 0.625rem 0 0.375rem;
  font-size: var(--fs-h4);
}

.lp-quote {
  text-align: center;
}

.lp-quote__text {
  margin: var(--sp-2) 0 var(--sp-5);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  line-height: 1.4;
  letter-spacing: var(--ls-tight);
}

.lp-cta {
  text-align: center;
}

.lp-cta .cta-band__title {
  margin-top: 0;
}

.lp-cta__hex {
  position: absolute;
  z-index: -1;
  left: -50px;
  bottom: -60px;
  width: 220px;
  height: 194px;
  clip-path: var(--hex-clip);
  background: var(--c-red);
  opacity: 0.9;
}

.landing-footer {
  padding-block: var(--sp-7);
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
}

.landing-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-text-muted);
}

.landing-footer__inner > p {
  text-transform: uppercase;
}

/* ---- Legal ------------------------------------------------------------------ */

.legal-updated {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--c-text-muted);
  text-transform: uppercase;
}

.legal-body .toc__list {
  list-style: decimal inside;
}

.legal-switch {
  margin-top: 0.875rem;
}

.legal-switch .link-row[aria-current="page"] {
  border-color: var(--c-pink-border-strong);
}

.legal-switch .link-row:not([aria-current]) {
  color: var(--c-text-body);
  font-weight: 500;
}

/* ---- Error pages (D-404) ------------------------------------------------------ */

.error-page {
  padding-block: var(--sp-16) var(--sp-20);
  text-align: center;
}

@media (min-width: 960px) {
  .error-page {
    padding-block: 7.5rem 10rem;
  }
}

.error-page__inner {
  max-width: calc(45rem + 2 * var(--gutter));
}

.error-page__logo {
  height: 26px;
  width: auto;
  margin: 0 auto var(--sp-10);
}

.error-hex {
  position: relative;
  width: 200px;
  height: 177px;
  margin: 0 auto var(--sp-8);
}

@media (min-width: 960px) {
  .error-hex {
    width: 260px;
    height: 230px;
    margin-bottom: 2.25rem;
  }
}

.error-hex__outer {
  position: absolute;
  inset: 0;
  clip-path: var(--hex-clip);
  background: var(--c-pink);
}

.error-hex__inner {
  position: absolute;
  inset: 11%;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: var(--hex-clip);
  background: var(--c-red);
  color: var(--c-text-on-dark);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.error-page__title {
  max-width: none;
  margin-inline: auto;
}

.error-page__lead {
  margin: 0 auto var(--sp-8);
}

.error-page__ref {
  margin-bottom: var(--sp-8);
  font-size: var(--fs-xs);
  color: var(--c-text-body);
}

.error-page__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  list-style: none;
}

/* ---- Thank you and HTML sitemap ----------------------------------------------- */

.thanks__icon {
  margin-bottom: var(--sp-5);
}

.thanks__links {
  margin-top: var(--sp-8);
}

.steps--single {
  grid-template-columns: minmax(0, 1fr);
}

.sitemap-groups {
  display: grid;
  gap: var(--sp-10) var(--sp-8);
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  align-items: start;
}

.sitemap-group__title {
  margin-bottom: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--c-red-dark);
  text-transform: uppercase;
}

.sitemap-group__list {
  list-style: none;
}

.sitemap-group__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--c-text);
}

.sitemap-group__link:hover {
  color: var(--c-red-dark);
}

@media (min-width: 960px) {
  .sitemap-group__link {
    min-height: 2rem;
  }
}
