/* ==========================================================================
   ModPay Systems Ghana Ltd
   Palette from the logo: charcoal, slate grey and signal red.
   ========================================================================== */

:root {
  --red: #e41824;
  --red-dark: #b9111b;
  --red-soft: #fdecee;
  --charcoal: #38383c;
  --ink: #232326;
  --slate: #6c6c70;
  --slate-text: #55555a;
  --paper: #f5f5f6;
  --line: #e0e0e3;
  --white: #fff;

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 12px 34px rgba(30, 30, 40, 0.1);
  --shadow-lg: 0 22px 60px rgba(30, 30, 40, 0.18);
  --container: 1200px;
  --header-h: 92px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0 0 0.6em;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--red-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--red); }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.hero :focus-visible, .page-hero :focus-visible, .cta :focus-visible, .section--ink :focus-visible { outline-color: var(--white); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--white); color: var(--charcoal);
  padding: 0.7rem 1rem; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Short red bar above headings, echoing the logo */
.accent::before {
  content: "";
  display: block;
  width: 3.2rem; height: 5px;
  margin-bottom: 1rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red) 0 60%, var(--slate) 60% 100%);
}

/* Scroll reveal (only when JavaScript is running) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .proof__card[data-reveal]:nth-child(2), .js .focus__card[data-reveal]:nth-child(2), .js .column[data-reveal]:nth-child(2), .js .partner-card[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.js .proof__card[data-reveal]:nth-child(3), .js .focus__card[data-reveal]:nth-child(3), .js .column[data-reveal]:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.55rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font: 600 1.0625rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: var(--white); box-shadow: 0 8px 20px rgba(228, 24, 36, 0.28); }
.btn--primary:hover { background: var(--red-dark); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.65); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--charcoal); }
.btn--light { background: var(--paper); color: var(--charcoal); border-color: var(--line); }
.btn--light:hover { background: var(--line); color: var(--charcoal); }
.btn--small { min-height: 42px; padding: 0.5rem 1.15rem; font-size: 1rem; }
.btn--large { min-height: 56px; padding: 1rem 2rem; font-size: 1.15rem; }

.link { font-weight: 600; }
.link--arrow::after { content: "\2192"; display: inline-block; margin-left: 0.4rem; transition: transform 0.2s var(--ease); }
.link--arrow:hover::after, a:hover > .link--arrow::after { transform: translateX(5px); }

/* ---------- Top bar and header ---------- */

.topbar { background: var(--ink); color: #dcdcdf; font-size: 0.9375rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.45rem; }
.topbar p { margin: 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__contact { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.1rem 1.5rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(30, 30, 40, 0.12); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); transition: min-height 0.25s; }
.site-header.is-scrolled .site-header__inner { min-height: 72px; }
.brand { display: block; flex: none; }
.brand img { display: block; width: auto; height: 76px; transition: height 0.25s; }
.site-header.is-scrolled .brand img { height: 58px; }

.site-nav ul { display: flex; align-items: center; gap: 1.9rem; margin: 0; padding: 0; list-style: none; }
.site-nav a:not(.btn) {
  position: relative; display: block; padding: 0.4rem 0;
  color: var(--charcoal); font-weight: 600; text-decoration: none;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--red); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.site-nav a:not(.btn):hover::after, .site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.6rem;
    min-height: 44px; padding: 0 0.9rem;
    background: var(--white); color: var(--charcoal);
    border: 2px solid var(--charcoal); border-radius: var(--radius);
    font: 600 1rem var(--font-body); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; content: ""; position: relative;
  }
  .nav-toggle__bars::before { position: absolute; top: -6px; }
  .nav-toggle__bars::after { position: absolute; top: 6px; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem; display: none;
    box-shadow: 0 20px 30px rgba(30, 30, 40, 0.12);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn) { padding: 0.9rem 0; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav a.is-active { color: var(--red-dark); }
  .site-nav__cta { border-bottom: 0 !important; padding-top: 1rem; }
  .site-nav__cta .btn { width: 100%; }
  .brand img, .site-header.is-scrolled .brand img { height: 56px; }
  .site-header__inner, .site-header.is-scrolled .site-header__inner { min-height: 74px; }
  .topbar__place { display: none; }
  .topbar__contact { justify-content: flex-start; }
}

/* ---------- Hero slider ---------- */

.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.hero__viewport { display: grid; }

.slide {
  position: relative; grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s;
  background: linear-gradient(115deg, var(--ink) 0%, #34343a 100%);
}
.slide.is-active { opacity: 1; visibility: visible; }

/* Overlapping diamonds from the logo, as a background accent */
.slide__shade { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.slide__shade::before, .slide__shade::after {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 64px; transform: rotate(45deg);
}
.slide__shade::before { right: -4%; bottom: -300px; background: rgba(108, 108, 112, 0.28); }
.slide__shade::after { right: -140px; bottom: -260px; background: rgba(228, 24, 36, 0.5); }

.slide__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center; gap: 3rem;
  min-height: clamp(560px, 74vh, 700px);
  padding-block: 3rem 7rem;
}

.slide__index {
  display: inline-flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.1rem; color: #e6e6e8; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.9375rem;
}
.slide__index span { font: 600 1.6rem/1 var(--font-display); color: var(--white); padding-right: 0.75rem; border-right: 2px solid var(--red); }
.slide__copy h2 { color: var(--white); font-size: clamp(2.5rem, 5.2vw, 4.3rem); line-height: 1; margin-bottom: 0.45em; text-wrap: balance; }
.slide__copy p:not(.slide__index) { max-width: 34rem; font-size: 1.1875rem; color: #e2e2e5; margin-bottom: 1.8rem; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.slide__visual { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.slide__card {
  width: min(100%, 21rem); padding: 1.4rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.slide__card p { margin: 0 0 0.35rem; color: #ececee; font-size: 1rem; }
.slide__card-label { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8125rem !important; color: #fff !important; }
.slide__card-title { font: 600 1.6rem/1.1 var(--font-display); color: var(--white) !important; }
.dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #c9c9cc; }
.dot--live { background: var(--red); box-shadow: 0 0 0 0 rgba(228, 24, 36, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(228, 24, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(228, 24, 36, 0); } }

/* Staggered entrance for the copy of the active slide */
.slide.is-active .slide__copy > * { animation: rise 0.8s var(--ease) both; }
.slide.is-active .slide__copy > *:nth-child(2) { animation-delay: 0.08s; }
.slide.is-active .slide__copy > *:nth-child(3) { animation-delay: 0.16s; }
.slide.is-active .slide__copy > *:nth-child(4) { animation-delay: 0.24s; }
.slide.is-active .slide__card { animation: rise 0.9s var(--ease) 0.4s both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.slide__art img { display: block; width: 100%; max-height: 400px; margin-inline: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35)); }
.slide.is-active .slide__art { animation: art-in 0.9s var(--ease) 0.15s both; }
@keyframes art-in { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }

.hero__controls {
  position: absolute; left: 0; right: 0; bottom: 1.5rem; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.hero__tabs { display: flex; gap: 0.75rem; flex: 1 1 auto; max-width: 30rem; }
.hero__tab {
  flex: 1 1 0; min-height: 44px; padding: 0; background: none; border: 0;
  color: #c4c4c8; font: 600 1.0625rem var(--font-body); text-align: left; cursor: pointer;
}
.hero__tab:hover, .hero__tab.is-current { color: var(--white); }
.hero__tab-label { display: block; padding-bottom: 0.45rem; }
.hero__tab-bar { position: relative; display: block; height: 4px; background: rgba(255, 255, 255, 0.3); border-radius: 2px; overflow: hidden; }
.hero__tab-bar::after { content: ""; position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }
.hero__tab.is-current .hero__tab-bar::after { transform: scaleX(1); }
.hero__tab.is-running .hero__tab-bar::after { animation: hero-fill var(--hero-interval, 7s) linear forwards; }
@keyframes hero-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero:hover .hero__tab-bar::after, .hero.is-paused .hero__tab-bar::after { animation-play-state: paused; }
.hero:has(:focus-visible) .hero__tab-bar::after { animation-play-state: paused; }

.hero__buttons { display: flex; gap: 0.5rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  background: rgba(255, 255, 255, 0.1); color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 50%; cursor: pointer;
  backdrop-filter: blur(6px); transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.icon-btn:hover { background: var(--white); color: var(--charcoal); transform: scale(1.06); }
.icon-btn .i-play { display: none; }
.hero.is-paused .icon-btn .i-play, .hero.is-static .icon-btn .i-play { display: block; }
.hero.is-paused .icon-btn .i-pause, .hero.is-static .icon-btn .i-pause { display: none; }

@media (max-width: 900px) {
  .slide__inner { grid-template-columns: 1fr; gap: 1.25rem; min-height: 0; padding-block: 1.5rem 7.5rem; }
  .slide__visual { order: -1; }
  .slide__card { display: none; }
  .slide__art img { max-height: 190px; }
  .slide__copy p:not(.slide__index) { font-size: 1.0625rem; }
  .slide__actions .btn { flex: 1 1 100%; }
  .hero__buttons .icon-btn:not([data-toggle]) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
  .slide.is-active .slide__copy > *, .slide.is-active .slide__card, .slide.is-active .slide__art, .dot--live { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Proof strip overlapping the hero ---------- */

.proof { position: relative; z-index: 3; margin-top: -3.25rem; }
.proof__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.proof__card {
  padding: 1.5rem 1.6rem 1.4rem;
  background: var(--white); border-radius: var(--radius-lg); border-top: 4px solid var(--charcoal);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.proof__card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(30, 30, 40, 0.22); }
.proof__card h3 { font-size: 1.4rem; margin: 0.8rem 0 0.4rem; }
.proof__card p { margin: 0; color: var(--slate-text); font-size: 0.975rem; line-height: 1.55; }
.tag { display: inline-block; padding: 0.15rem 0.75rem; border-radius: 99px; font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.tag--done { background: var(--charcoal); color: var(--white); }
.tag--progress { background: var(--red); color: var(--white); }

@media (max-width: 900px) {
  .proof { margin-top: 0; padding-top: 1.5rem; }
  .proof__grid { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 7.5vw, 6rem); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #dcdcdf; }
.section--ink h2, .section--ink h3 { color: var(--white); }

.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: 0.3em; }
.section-head p { color: var(--slate-text); font-size: 1.15rem; margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); }
.split__head h2 { margin: 0; }
.prose { max-width: 42rem; }
.prose--wide { max-width: 52rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.6em; }
.prose > h3:first-child { margin-top: 0; }

@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Focus photo cards ---------- */

.focus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.focus__card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white); color: var(--charcoal); text-decoration: none;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.focus__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.focus__art {
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.5rem 1rem; background: var(--ink);
}
.focus__card--erp .focus__art { background: linear-gradient(135deg, #1c1c1f 0%, #35353a 100%); }
.focus__card--paperless .focus__art { background: linear-gradient(135deg, #26262a 0%, #46464c 100%); }
.focus__card--fraud .focus__art { background: linear-gradient(135deg, #240a0c 0%, #5c1319 100%); }
.focus__art img { width: 78%; max-width: 220px; transition: transform 0.5s var(--ease); }
.focus__card:hover .focus__art img { transform: scale(1.06) translateY(-4px); }
.focus__body { display: block; padding: 1.6rem 1.75rem 1.9rem; }
.focus__kicker { display: inline-block; margin-bottom: 0.6rem; padding: 0.2rem 0.7rem; background: var(--red-soft); color: var(--red-dark); border-radius: 99px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.focus__title { display: block; font: 600 1.55rem/1.15 var(--font-display); margin-bottom: 0.9rem; text-wrap: balance; color: var(--charcoal); }
.focus__more { display: inline-block; font-weight: 600; color: var(--red-dark); }
.focus__more::after { content: "\2192"; margin-left: 0.4rem; display: inline-block; transition: transform 0.25s var(--ease); }
.focus__card:hover .focus__more::after { transform: translateX(6px); }

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

/* ---------- Services explorer (home) ---------- */

.explorer { display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: 2rem; align-items: start; }
.explorer__tabs { display: none; }
.js .explorer__tabs { display: flex; flex-direction: column; gap: 0.35rem; }
.explorer__tab {
  display: flex; align-items: center; gap: 1rem; width: 100%;
  padding: 0.85rem 1rem; text-align: left;
  background: transparent; color: var(--charcoal);
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 1.05rem/1.25 var(--font-body); cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.explorer__tab:hover { background: var(--paper); transform: translateX(4px); }
.explorer__tab[aria-selected="true"] { background: var(--charcoal); color: var(--white); transform: translateX(8px); box-shadow: var(--shadow); }
.explorer__num { flex: none; font: 600 1.35rem/1 var(--font-display); color: var(--red); min-width: 1.8rem; }
.explorer__tab[aria-selected="true"] .explorer__num { color: #ff6b74; }

.explorer__panels { min-width: 0; }
.explorer__panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--paper); border-radius: var(--radius-lg); border-left: 5px solid var(--red);
  margin-bottom: 1.25rem;
}
.js .explorer__panel { margin-bottom: 0; }
.js .explorer__panel[hidden] { display: none; }
.js .explorer__panel { animation: panel-in 0.45s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.explorer__panel h3 { font-size: 2rem; }
.explorer__lead { font-size: 1.25rem; font-weight: 500; color: var(--charcoal); }
.explorer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin: 1.6rem 0 0; }

.checks { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.checks li { position: relative; padding: 0.35rem 0 0.35rem 1.8rem; }
.checks li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.9rem;
  width: 0.55rem; height: 0.55rem; background: var(--red); border-radius: 2px; transform: rotate(45deg);
}

@media (max-width: 900px) {
  .explorer { grid-template-columns: 1fr; gap: 1rem; }
  .js .explorer__tabs { flex-direction: row; overflow-x: auto; gap: 0.5rem; padding-bottom: 0.5rem; scroll-snap-type: x proximity; }
  .explorer__tab { flex: none; width: auto; white-space: nowrap; scroll-snap-align: start; border-color: var(--line); }
  .explorer__tab:hover, .explorer__tab[aria-selected="true"] { transform: none; }
  .explorer__num { display: none; }
}

/* ---------- Columns (sectors, why, how) ---------- */

.columns { display: grid; gap: 2.5rem 3rem; margin-top: 2.25rem; }
.columns--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.columns--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.column h3 { margin-bottom: 0.4em; }
.column p { margin: 0 0 1em; }
.column--rule { border-top: 3px solid var(--charcoal); padding-top: 1.1rem; }
.column__num { display: block; font: 600 3.4rem/1 var(--font-display); color: var(--red); margin-bottom: 0.4rem; }
.section--ink .column { border-top: 1px solid rgba(255, 255, 255, 0.28); padding-top: 1.25rem; transition: border-color 0.3s; }
.section--ink .column:hover { border-top-color: var(--red); }
.section--ink .column p { color: #d3d3d6; }

@media (max-width: 820px) { .columns--2, .columns--3 { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Partner cards ---------- */

.partner-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.partner-card {
  display: block; padding: 2rem 2rem 1.8rem;
  background: var(--white); color: var(--charcoal); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.partner-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--red), var(--charcoal)); }
.partner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--charcoal); }
.partner-card__name { display: block; font: 600 2rem/1.1 var(--font-display); margin-bottom: 0.6rem; }
.partner-card__text { display: block; margin-bottom: 1rem; color: var(--slate-text); }
@media (max-width: 820px) { .partner-cards { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--white); padding-block: clamp(3.5rem, 8vw, 6rem); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(24, 24, 27, 0.95) 0%, rgba(24, 24, 27, 0.8) 55%, rgba(24, 24, 27, 0.55) 100%); }
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -110px; z-index: -1;
  width: 340px; height: 340px; border-radius: 52px; transform: rotate(45deg);
  background: rgba(228, 24, 36, 0.88); box-shadow: -190px 60px 0 -20px rgba(108, 108, 112, 0.4);
}
.page-hero h1 { color: var(--white); margin-bottom: 0.3em; }
.page-hero p { max-width: 38rem; margin: 0; font-size: 1.3rem; color: #e2e2e5; }
@media (max-width: 720px) { .page-hero::after { width: 220px; height: 220px; right: -110px; top: -110px; box-shadow: none; } }

/* ---------- Ledger (About track record, Partners platforms) ---------- */

.ledger { list-style: none; margin: 1.75rem 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.ledger__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) auto;
  gap: 0.5rem 2rem; align-items: baseline;
  padding: 1.4rem 0.75rem; border-top: 1px solid var(--line);
  transition: background 0.2s;
}
.ledger__row:hover { background: var(--paper); }
.ledger__row--two { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.ledger__client { margin: 0; font-size: 1.5rem; }
.ledger__row--two .ledger__client { font-size: 1.35rem; }
.ledger__work { margin: 0; color: var(--slate-text); }
.ledger .tag { justify-self: end; }
.ledger--plain { margin-top: 0.75rem; }
@media (max-width: 820px) {
  .ledger__row, .ledger__row--two { grid-template-columns: 1fr; }
  .ledger .tag { justify-self: start; }
}

/* ---------- Services page ---------- */

.services-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 3rem; align-items: start; }
.service-nav { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.service-nav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.service-nav a {
  display: flex; gap: 0.7rem; padding: 0.55rem 0 0.55rem 1rem; margin-left: -2px;
  border-left: 2px solid transparent; color: var(--slate-text); font-weight: 500; text-decoration: none; line-height: 1.3;
  transition: color 0.2s, border-color 0.2s;
}
.service-nav a span { font: 600 1.05rem/1.3 var(--font-display); color: var(--slate); }
.service-nav a:hover { color: var(--charcoal); }
.service-nav a.is-current { color: var(--charcoal); font-weight: 600; border-left-color: var(--red); }
.service-nav a.is-current span { color: var(--red); }

.service {
  position: relative; padding: 2.25rem 2.25rem 2rem; margin-bottom: 1.5rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.service:hover { box-shadow: var(--shadow); border-color: transparent; }
.service__num { position: absolute; right: 1.75rem; top: 1.1rem; font: 600 4.5rem/1 var(--font-display); color: var(--paper); pointer-events: none; }
.service h2 { position: relative; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.service__lead { position: relative; font-size: 1.25rem; font-weight: 500; }
.service > p, .service .checks { position: relative; max-width: 42rem; }

@media (max-width: 900px) {
  .services-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-nav { display: none; }
  .service { padding: 1.6rem; }
}

/* ---------- Partners page ---------- */

.partner__head { max-width: 50rem; margin-bottom: 2.5rem; }
.partner__lead { font-size: 1.3rem; line-height: 1.5; color: var(--charcoal); margin: 0; }
.partner__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem; align-items: start; }
.partner__sub { margin-top: 3rem; }
.facts { margin: 0; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-top: 4px solid var(--red); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.facts div { padding: 0.8rem 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { font-size: 0.9375rem; font-weight: 600; color: var(--slate-text); }
.facts dd { margin: 0.1rem 0 0; }
.link-list { padding-left: 1.1rem; }
.link-list li { margin-bottom: 0.4rem; }
@media (max-width: 900px) { .partner__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Call to action ---------- */

.cta { position: relative; overflow: hidden; background: var(--charcoal); color: var(--white); padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta::before, .cta::after { content: ""; position: absolute; top: 50%; width: 320px; height: 320px; margin-top: -160px; border-radius: 48px; transform: rotate(45deg); }
.cta::before { right: -80px; background: rgba(228, 24, 36, 0.9); }
.cta::after { right: 160px; background: rgba(108, 108, 112, 0.4); }
.cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.cta h2 { color: var(--white); max-width: 32rem; margin-bottom: 0.3em; }
.cta p { margin: 0; color: #e0e0e3; max-width: 32rem; }
@media (max-width: 820px) { .cta::before { right: -180px; } .cta::after { right: -30px; opacity: 0.6; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--paper); border-top: 4px solid var(--red); color: var(--charcoal); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 2.5rem; padding-block: 3rem; }
.site-footer__about img { display: block; width: auto; height: 84px; margin-bottom: 0.8rem; }
.site-footer__about p { max-width: 22rem; color: var(--slate-text); }
.site-footer__title { font: 600 1.35rem/1.2 var(--font-display); margin-bottom: 0.7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: var(--charcoal); }
.site-footer a:hover { color: var(--red-dark); }
.site-footer address { font-style: normal; }
.site-footer address p { margin-bottom: 0.9rem; }
.site-footer__legal { background: var(--ink); color: #d0d0d4; font-size: 0.9375rem; }
.site-footer__legal .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 2rem; }
.site-footer__legal p { margin: 0; padding-block: 0.9rem; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: grid; place-items: center; width: 50px; height: 50px;
  background: var(--red); color: var(--white); border: 0; border-radius: 50%;
  box-shadow: 0 10px 26px rgba(228, 24, 36, 0.4); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s var(--ease), background 0.2s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-dark); }

/* ---------- Contact and booking ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__details {
  background: var(--ink); color: #dcdcdf;
  border-radius: var(--radius-lg); padding: 2.25rem 2rem;
  position: relative; overflow: hidden; isolation: isolate;
}
.contact__details::after { content: ""; position: absolute; right: -90px; bottom: -90px; z-index: -1; width: 220px; height: 220px; border-radius: 36px; transform: rotate(45deg); background: rgba(228, 24, 36, 0.85); }
.contact__details h2 { font-size: 2rem; color: var(--white); }
.contact__details h3 { font-size: 1.05rem; margin: 1.5rem 0 0.2rem; color: #a9a9ae; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-body); font-weight: 600; }
.contact__details address { font-style: normal; margin-bottom: 0.6rem; color: #fff; }
.contact__details p { margin-bottom: 0.3rem; }
.contact__details a { color: #fff; }
.contact__details a:hover { color: #ff8d94; }

.contact__booking { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.contact__booking h2 { margin-bottom: 0.25em; }
.contact__intro { color: var(--slate-text); margin-bottom: 1.5rem; }

/* Step indicator (JavaScript only) */
.steps { display: none; }
.js .steps { display: flex; gap: 0.5rem; list-style: none; margin: 0 0 1.75rem; padding: 0; }
.steps__item { flex: 1 1 0; display: flex; align-items: center; gap: 0.6rem; padding-top: 0.75rem; border-top: 4px solid var(--line); color: var(--slate-text); font-weight: 600; font-size: 0.975rem; transition: border-color 0.3s, color 0.3s; }
.steps__num { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--paper); font: 600 1rem var(--font-display); }
.steps__item.is-done { border-top-color: var(--charcoal); color: var(--charcoal); }
.steps__item.is-current { border-top-color: var(--red); color: var(--charcoal); }
.steps__item.is-current .steps__num { background: var(--red); color: var(--white); }
.steps__item.is-done .steps__num { background: var(--charcoal); color: var(--white); }
@media (max-width: 560px) { .steps__item { font-size: 0; } .steps__num { font-size: 1rem; } }

.step[hidden] { display: none; }
.js .step { animation: panel-in 0.4s var(--ease) both; }
.step__nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.step:not(:last-of-type) .step__nav { display: none; }
.js .step:not(:last-of-type) .step__nav { display: flex; }
[data-next], [data-back] { display: none; }
.js [data-next], .js [data-back] { display: inline-flex; }

.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.25rem; }
.step + .step { margin-top: 1.75rem; }
.js .step + .step { margin-top: 0; }
.field { min-width: 0; margin: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 0.35rem; padding: 0; }
.field__hint { font-weight: 400; color: var(--slate-text); margin-left: 0.3rem; }

.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.65rem 0.9rem;
  font: inherit; color: var(--charcoal); background: var(--white);
  border: 1px solid #a5a5aa; border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(228, 24, 36, 0.16); }
.field [aria-invalid="true"] { border-color: var(--red); background: #fff6f6; }
.field__error { margin: 0.35rem 0 0; color: var(--red-dark); font-weight: 500; font-size: 0.975rem; }

.choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice legend { margin-bottom: 0.5rem; }
.choice__item { display: inline-flex !important; align-items: center; gap: 0.55rem; margin: 0 0.6rem 0.6rem 0 !important; padding: 0.65rem 1rem; border: 1px solid #a5a5aa; border-radius: var(--radius); font-weight: 500 !important; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.choice__item:hover { border-color: var(--charcoal); }
.choice__item:has(input:checked) { border-color: var(--red); background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red); }
.choice__item input, .check input { width: 1.15rem; height: 1.15rem; accent-color: var(--red); }
.check { display: flex !important; align-items: flex-start; gap: 0.65rem; font-weight: 500 !important; }
.check input { margin-top: 0.2rem; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.review { display: none; margin: 0 0 1.4rem; padding: 1.25rem 1.4rem; background: var(--paper); border-radius: var(--radius); }
.js .review { display: block; }
.review div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.75rem; padding: 0.45rem 0; border-top: 1px solid var(--line); }
.review div:first-child { border-top: 0; }
.review dt { font-weight: 600; color: var(--slate-text); }
.review dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }

.notice { padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; border-radius: var(--radius); border-left: 6px solid var(--charcoal); background: var(--paper); }
.notice:focus { outline: none; }
.notice h2 { font-size: 1.9rem; }
.notice p:last-child { margin-bottom: 0; }
.notice--error { border-left-color: var(--red); background: #fff1f2; color: #7c0d14; }

@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form__grid { grid-template-columns: 1fr; }
  .choice__item { display: flex !important; margin-right: 0 !important; }
  .review div { grid-template-columns: 1fr; gap: 0; }
}
