:root {
  /* Tally Solutions official brand (tallysolutions.com) */
  --tally-red: #e30613;
  --tally-red-dark: #b8050f;
  --tally-black: #1d1d1b;
  --tally-blue: #2a67b2;
  --tally-blue-deep: #1a3e70;
  --tally-cyan: #00aeef;
  --tally-cyan-light: #8dd0f3;
  --tally-teal: #23b9d6;
  --tally-sky: #bddced;

  /* Semantic tokens */
  --brand-red: var(--tally-red);
  --brand-navy: var(--tally-blue-deep);
  --brand-navy-deep: var(--tally-black);
  --brand-blue: var(--tally-blue);
  --brand-gold: var(--tally-cyan);
  --brand-gold-dark: #0095cc;
  --brand-orange: var(--tally-red);
  --ink: var(--tally-black);
  --ink-soft: #5c6578;
  --paper: #f7f8fa;
  --surface: #ffffff;
  --line: #e2e6eb;
  --accent: var(--tally-red);
  --shadow: 0 16px 40px rgba(29, 29, 27, 0.08);
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(0, 174, 239, 0.07), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(227, 6, 19, 0.04), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  color: var(--tally-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--tally-red);
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(29, 29, 27, 0.06);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tally-red), var(--tally-cyan), var(--tally-blue));
}

.site-header .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--tally-black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.cert-badge {
  display: block;
  width: auto;
  object-fit: contain;
}

.cert-badge--nav {
  height: 40px;
}

.nav-cert {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.4rem 0.55rem;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(0, 174, 239, 0.08));
  border: 1px solid rgba(0, 174, 239, 0.28);
  box-shadow: 0 6px 16px rgba(29, 29, 27, 0.06);
}

.nav-cert-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tally-red);
  line-height: 1;
  white-space: nowrap;
}

.cert-badge--footer {
  height: 40px;
  background: #fff;
  border-radius: 8px;
  padding: 3px 6px;
}

.cert-badge--strip {
  height: clamp(88px, 14vw, 120px);
}

.cert-badge--about {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cert-strip {
  background:
    linear-gradient(90deg, rgba(227, 6, 19, 0.06), rgba(0, 174, 239, 0.08)),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  border-block: 1px solid var(--line);
}

.cert-strip-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.cert-strip-copy h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--tally-black);
}

.cert-strip-copy p {
  margin: 0;
  max-width: 42rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.cert-strip-copy .cert-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(227, 6, 19, 0.1);
  border: 1px solid rgba(227, 6, 19, 0.22);
  color: var(--tally-red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.awards-stack {
  display: grid;
  gap: 1rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--tally-red), var(--tally-blue-deep));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  align-items: center;
}

.nav-links a:not(.btn) {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
  color: var(--tally-red);
  background: rgba(0, 174, 239, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.4rem;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--tally-red) 0%, var(--tally-red-dark) 100%);
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(227, 6, 19, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--tally-blue), var(--tally-blue-deep));
  box-shadow: 0 10px 24px rgba(42, 103, 178, 0.35);
  color: #fff !important;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink) !important;
  border: 1.5px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--tally-cyan);
  color: var(--tally-blue-deep) !important;
  background: rgba(0, 174, 239, 0.08);
}

.hero-carousel {
  position: relative;
  min-height: min(75vh, 620px);
  overflow: hidden;
  background: var(--brand-navy-deep);
}

.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: min(75vh, 620px);
}

.hero-slide {
  position: relative;
  height: 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--tally-black);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  right: 58%;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-slide-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center right;
  z-index: 0;
}

.hero-slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 38%,
    rgba(26, 62, 112, 0.15) 62%,
    rgba(42, 103, 178, 0.2) 100%
  );
  pointer-events: none;
}

.hero-slide-media--fallback {
  left: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(0, 160, 227, 0.25), transparent 45%),
    linear-gradient(135deg, var(--brand-navy-deep), var(--brand-navy));
}

.hero-slide-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(29, 29, 27, 0.97) 0%,
    rgba(26, 62, 112, 0.9) 24%,
    rgba(26, 62, 112, 0.55) 38%,
    rgba(26, 62, 112, 0.15) 50%,
    transparent 58%
  );
  pointer-events: none;
}

.hero-carousel .hero-content {
  flex: 0 0 auto;
  width: min(520px, 46%);
  max-width: none;
  margin: 0;
  margin-right: auto;
  align-self: center;
  padding: 2.5rem clamp(1.25rem, 3vw, 2.5rem);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(1180px, 100%);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  animation: riseIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(227, 6, 19, 0.15);
  border: 1px solid rgba(227, 6, 19, 0.35);
  color: #fff;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.12;
  max-width: 22ch;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  max-width: 38ch;
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.95;
  margin-bottom: 1.25rem;
}

.hero-content .btn-primary {
  background: linear-gradient(135deg, var(--tally-cyan), var(--tally-teal));
  color: var(--tally-black) !important;
  box-shadow: 0 10px 24px rgba(0, 174, 239, 0.35);
}

.hero-content .btn-primary:hover {
  background: #fff;
  color: var(--tally-blue-deep) !important;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
}

.carousel-indicators .active {
  background-color: var(--tally-cyan);
}

.hero-fallback {
  min-height: min(72vh, 560px);
  display: grid;
  place-items: end start;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 174, 239, 0.2), transparent 40%),
    linear-gradient(135deg, var(--tally-black), var(--tally-blue-deep));
  color: #fff;
}

.hero-fallback .hero-content {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  animation: riseIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-fallback .hero-content .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(227, 6, 19, 0.15);
  border: 1px solid rgba(227, 6, 19, 0.35);
  color: #fff;
}

.hero-fallback .hero-content h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.12;
  max-width: 22ch;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-fallback .hero-content p {
  max-width: 38ch;
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.95;
  margin-bottom: 1.25rem;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.55rem);
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 4px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tally-red), var(--tally-cyan));
}

.section-head p {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.6;
}

.product-grid,
.event-grid,
.testimonial-grid,
.logo-grid {
  display: grid;
  gap: 1.25rem;
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.event-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.testimonial-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.logo-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  align-items: stretch;
}

.product-tile,
.event-tile,
.testimonial-tile {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(213, 222, 234, 0.9);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-tile:hover,
.event-tile:hover,
.testimonial-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 174, 239, 0.45);
  box-shadow: 0 24px 48px rgba(29, 29, 27, 0.1);
}

.product-tile .media,
.event-tile .media {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 174, 239, 0.1), transparent 50%),
    linear-gradient(145deg, #eef6fc 0%, #f7f8fa 55%, #ffffff 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.product-tile .media img,
.event-tile .media img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  transition: transform 0.45s ease;
}

.event-tile .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-tile:hover .media img {
  transform: scale(1.06) rotate(-1deg);
}

.product-tile .body,
.event-tile .body,
.testimonial-tile {
  padding: 1.2rem 1.25rem 1.4rem;
}

.product-tile h3,
.event-tile h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
}

.meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.logo-cell {
  background: linear-gradient(160deg, #fff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 100px;
  display: grid;
  place-items: center;
  padding: 0.9rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--tally-black);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.logo-cell:hover {
  transform: translateY(-3px);
  border-color: var(--tally-cyan);
  box-shadow: 0 12px 24px rgba(0, 174, 239, 0.15);
}

.logo-cell img {
  max-height: 56px;
  object-fit: contain;
}

.testimonial-tile {
  position: relative;
}

.testimonial-tile::before {
  content: "“";
  position: absolute;
  top: 0.35rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: rgba(0, 174, 239, 0.25);
  pointer-events: none;
}

.testimonial-tile blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.stars {
  color: var(--tally-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.page-banner {
  padding: 3.75rem 1.25rem 2rem;
  max-width: 1180px;
  margin: 0 auto;
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.site-footer {
  margin-top: 0;
  border-top: none;
  background: linear-gradient(160deg, var(--tally-black) 0%, var(--tally-blue-deep) 100%);
  color: #d7dde6;
}

.site-footer .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.site-footer a {
  color: #f2f4f7;
}

.site-footer a:hover {
  color: var(--tally-cyan);
}

.site-footer h4 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.gallery-grid a,
.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-thumb:hover {
  transform: translateY(-3px);
  border-color: var(--tally-cyan);
  box-shadow: 0 12px 24px rgba(0, 174, 239, 0.15);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 32, 0.78);
  backdrop-filter: blur(4px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: riseIn 0.25s ease both;
}

.lightbox-image {
  max-width: 100%;
  max-height: min(78vh, 820px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: #0b1530;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-caption {
  margin: 0;
  color: #e8eef8;
  text-align: center;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: -0.35rem;
  right: -0.15rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #0e1524;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.lightbox-close:hover {
  background: var(--brand-red);
  color: #fff;
}

body.lightbox-open {
  overflow: hidden;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(232, 240, 255, 0.75));
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  border-block: 1px solid rgba(213, 222, 234, 0.7);
}

.section-alt > .section-head,
.section-alt > .product-grid,
.section-alt > .why-grid,
.section-alt > .testimonial-grid,
.section-alt > .mt-4 {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section-alt > .section-head {
  margin-bottom: 2rem;
}

.about-intro {
  max-width: 48rem;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 18px;
  padding: 1.25rem 1.2rem;
  color: #fff;
  box-shadow: 0 16px 36px rgba(13, 36, 96, 0.18);
}

.stat-card:nth-child(1) {
  background: linear-gradient(145deg, var(--tally-red), var(--tally-red-dark));
}

.stat-card:nth-child(2) {
  background: linear-gradient(145deg, var(--tally-cyan), var(--tally-teal));
  color: var(--tally-black);
}

.stat-card:nth-child(2) span {
  color: rgba(29, 29, 27, 0.85);
}

.stat-card:nth-child(3) {
  background: linear-gradient(145deg, var(--tally-black), var(--tally-blue-deep));
}

.stat-card:nth-child(4) {
  background: linear-gradient(145deg, var(--tally-blue), var(--tally-blue-deep));
}

.stat-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  right: -30px;
  top: -40px;
  background: rgba(255, 255, 255, 0.12);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 1;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.service-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}

.service-card,
.why-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.45rem 1.3rem 1.4rem;
  box-shadow: 0 12px 30px rgba(13, 36, 96, 0.06);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.service-card::before,
.why-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tally-red), var(--tally-cyan));
}

.service-card:nth-child(2n)::before,
.why-card:nth-child(2n)::before {
  background: linear-gradient(90deg, var(--brand-blue), var(--tally-cyan));
}

.service-card:nth-child(3n)::before,
.why-card:nth-child(3n)::before {
  background: linear-gradient(90deg, var(--tally-red), var(--tally-cyan));
}

.service-card:hover,
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(13, 36, 96, 0.12);
}

.service-card h3,
.why-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--tally-black);
}

.service-card p,
.why-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 0.98rem;
}

.cta-band {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--tally-black) 0%, var(--tally-blue-deep) 50%, var(--tally-blue) 100%);
  color: #fff;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -80px;
  top: -160px;
  background: radial-gradient(circle, rgba(227, 6, 19, 0.22), transparent 65%);
  animation: floatGlow 8s ease-in-out infinite;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  left: 8%;
  bottom: -140px;
  background: radial-gradient(circle, rgba(0, 160, 227, 0.2), transparent 65%);
  animation: floatGlow 10s ease-in-out infinite reverse;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.25rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0;
  max-width: 40rem;
  opacity: 0.94;
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cta-outline {
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.cta-outline:hover {
  background: var(--tally-cyan) !important;
  color: var(--tally-black) !important;
  border-color: var(--tally-cyan) !important;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-18px, 12px) scale(1.06);
  }
}

@media (max-width: 860px) {
  .site-footer .inner {
    grid-template-columns: 1fr;
  }

  .site-header .inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-slide::after {
    right: 0;
    bottom: 50%;
    opacity: 0.6;
  }

  .hero-slide-media,
  .hero-slide-media--fallback {
    background-position: center top;
  }

  .hero-slide-shade {
    background: linear-gradient(
      180deg,
      rgba(29, 29, 27, 0.25) 0%,
      rgba(26, 62, 112, 0.6) 45%,
      rgba(29, 29, 27, 0.94) 100%
    );
  }

  .hero-carousel .hero-content {
    width: 100%;
    max-width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 3rem;
  }

  .hero-content h1 {
    max-width: 100%;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .hero-content p {
    max-width: 100%;
    font-size: 0.98rem;
  }

  .cert-strip-inner {
    justify-content: center;
    text-align: center;
  }

  .nav-cert {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
  }

  .cert-badge--nav {
    height: 36px;
  }
}
