/* Signature Ink — motion and polish on top of Tailwind.
   Effects stay subtle on purpose: this is a B2B site, not a showreel. */

:root {
  color-scheme: light;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Keep sticky-header offset when jumping to an anchor. */
[id] {
  scroll-margin-top: 5rem;
}

/* ---------------------------------------------------------------- reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* Without JS everything must still be readable. */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- hero backdrop */

.hero-surface {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hero-surface::before,
.hero-surface::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  pointer-events: none;
  z-index: 0;
}

.hero-surface::before {
  width: 26rem;
  height: 26rem;
  top: -10rem;
  right: -6rem;
  background: rgba(18, 128, 100, 0.10);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-surface::after {
  width: 20rem;
  height: 20rem;
  bottom: -9rem;
  right: 18%;
  background: rgba(67, 188, 150, 0.08);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2.5rem, 1.5rem, 0) scale(1.08); }
}

/* ---------------------------------------------------------------- header */

#site-header.is-scrolled {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
}

/* Underline that grows from the left on hover. */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ---------------------------------------------------------------- buttons and links */

.btn-cta {
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -12px rgba(15, 102, 82, 0.6);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-cta.bg-accent-700:hover {
  background-color: #105143;
}

.btn-ghost {
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}

.btn-ghost:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.arrow {
  transition: transform 0.25s var(--ease-out);
}

.group:hover .arrow,
.link-arrow:hover .arrow {
  transform: translateX(3px);
}

.footer-link {
  transition: color 0.2s ease, padding-left 0.2s var(--ease-out);
}

.footer-link:hover {
  color: #ffffff;
  padding-left: 3px;
}

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

.card {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #aee9d2;
  box-shadow: 0 18px 32px -20px rgba(15, 23, 42, 0.28);
}

.card-icon {
  transition: transform 0.3s var(--ease-out), background-color 0.3s ease;
}

.card:hover .card-icon,
section:hover > div > .card-icon {
  transform: scale(1.06);
  background-color: #d5f5e7;
}

.stat-card {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: #aee9d2;
  box-shadow: 0 16px 28px -22px rgba(15, 23, 42, 0.3);
}

.step-dot {
  transition: transform 0.3s var(--ease-out), background-color 0.3s ease;
}

li:hover > .step-dot {
  transform: scale(1.08);
  background-color: #d5f5e7;
}

/* ---------------------------------------------------------------- FAQ accordion */

.faq-icon {
  transition: transform 0.3s var(--ease-out);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-trigger:hover span {
  color: #0f6652;
}

.faq-panel {
  animation: faq-open 0.3s var(--ease-out);
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- mobile menu */

#mobile-nav:not([hidden]) {
  animation: menu-open 0.25s var(--ease-out);
}

@keyframes menu-open {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------- mobile refinements */

/* Comparison table stacks on phones; each cell shows which column it belongs to. */
@media (max-width: 639px) {
  .svc-num { font-size: 10rem; }

  .cmp-cell::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f6652;
  }

  /* Softer hero blobs so they never bleed over text on small screens. */
  .hero-surface::before {
    width: 16rem;
    height: 16rem;
    top: -7rem;
    right: -5rem;
  }

  .hero-surface::after {
    width: 12rem;
    height: 12rem;
    bottom: -6rem;
    right: 5%;
  }

  /* Hover lifts are meaningless on touch; keep taps snappy instead. */
  .card:hover,
  .stat-card:hover,
  .btn-cta:hover,
  .btn-ghost:hover {
    transform: none;
  }

  .card:active,
  .btn-cta:active {
    transform: scale(0.99);
  }
}

/* Comfortable tap targets on touch devices. */
@media (hover: none) {
  .faq-trigger {
    min-height: 3rem;
  }
}

/* Nothing should ever scroll sideways. */
html,
body {
  overflow-x: hidden;
}

/* ---------------------------------------------------------------- hero: modern backdrop */

/* Faint dot grid that fades out towards the edges. */
/* The home hero draws its own orbs in .hero-bg, so the shared blobs are off there. */
.hero-grid::before,
.hero-grid::after {
  display: none;
}

/* Key phrase: gradient text plus a stroke that draws itself once on load. */
.hl {
  position: relative;
  white-space: nowrap;
  background-image: linear-gradient(100deg, #0f6652 0%, #1f9f7c 45%, #43bc96 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Aurora glow behind the headline: slow, low-contrast, never competes with the text. */
.hero-heading::before {
  content: "";
  position: absolute;
  inset: -18% -10%;
  z-index: 0;
  background:
    radial-gradient(48% 62% at 18% 38%, rgba(67, 188, 150, 0.30), transparent 68%),
    radial-gradient(42% 55% at 62% 62%, rgba(18, 128, 100, 0.22), transparent 70%),
    radial-gradient(34% 48% at 88% 30%, rgba(120, 214, 182, 0.24), transparent 72%);
  filter: blur(46px);
  opacity: 0;
  animation: aurora-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards,
             aurora-drift 16s ease-in-out 1.3s infinite alternate;
  pointer-events: none;
}

@keyframes aurora-in {
  to { opacity: 1; }
}

@keyframes aurora-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(2rem, -0.75rem, 0) scale(1.06); }
}

@media (max-width: 639px) {
  .hero-heading::before {
    inset: -14% -14%;
    filter: blur(34px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-heading::before {
    animation: none;
    opacity: 1;
  }
}

/* ---------------------------------------------------------------- closing CTA band */

/* Light on purpose: the footer right below is dark, and two dark blocks in a row
   blurred the boundary between them. */
.cta-band {
  border: 1px solid rgba(174, 233, 210, 0.9);
  background:
    radial-gradient(80% 110% at 88% 10%, rgba(120, 214, 182, 0.30) 0%, transparent 58%),
    radial-gradient(60% 90% at 5% 95%, rgba(18, 128, 100, 0.14) 0%, transparent 62%),
    linear-gradient(135deg, #f2fcf8 0%, #ffffff 55%, #eefbf6 100%);
  box-shadow: 0 28px 56px -34px rgba(15, 102, 82, 0.4);
}

.cta-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(15, 102, 82, 0.14) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000 0%, transparent 72%);
  pointer-events: none;
}

/* "Taking on new clients" status dot */
.pulse-dot {
  animation: pulse-ring 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(2.1); opacity: 0; }
}

/* Light sweep across the button on hover. */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease-out);
}

.btn-glow:hover::after {
  left: 115%;
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot { animation: none; }
  .btn-glow::after { display: none; }
}

/* ---------------------------------------------------------------- service-standards timeline */

.sla-timeline {
  display: grid;
  gap: 2.25rem;
}

.sla-step {
  position: relative;
  padding-left: 3rem;
}

/* Connector: vertical on phones, horizontal from large screens up. */
.sla-step::before {
  content: "";
  position: absolute;
  left: 0.9375rem;
  top: 2.25rem;
  bottom: -2.25rem;
  width: 2px;
  background: linear-gradient(180deg, #78d6b6, rgba(120, 214, 182, 0.25));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.sla-step.is-visible::before {
  transform: scaleY(1);
}

.sla-step:last-child::before {
  display: none;
}

.sla-dot {
  position: absolute;
  left: 0;
  top: 0.25rem;
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 2px solid #aee9d2;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(174, 233, 210, 0.22);
}

.sla-dot-core {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: #0f6652;
}

.sla-time {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #0f6652;
}

.sla-step dd {
  margin-top: 0.625rem;
}

@media (min-width: 1024px) {
  .sla-timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }

  .sla-step {
    padding-left: 0;
    padding-top: 3.25rem;
    padding-right: 1.5rem;
  }

  .sla-step::before {
    left: 2.25rem;
    right: -2rem;
    top: 1.25rem;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, #78d6b6, rgba(120, 214, 182, 0.25));
    transform: scaleX(0);
    transform-origin: left;
  }

  .sla-step.is-visible::before {
    transform: scaleX(1);
  }

  .sla-dot {
    top: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sla-step::before {
    transition: none;
    transform: none !important;
  }
}

/* ---------------------------------------------------------------- company record card */

/* Gradient hairline border: gradient on the outside, white panel inside. */
.entity-card {
  position: relative;
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(140deg, rgba(18, 128, 100, 0.45), rgba(174, 233, 210, 0.35) 45%, rgba(226, 232, 240, 0.9));
  box-shadow: 0 24px 48px -30px rgba(15, 23, 42, 0.35);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.entity-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 56px -30px rgba(15, 23, 42, 0.42);
}

.entity-card-inner {
  position: relative;
  overflow: hidden;
  border-radius: calc(1.25rem - 1px);
  background: #ffffff;
  padding: 1.5rem;
}

/* Faint seal watermark in the corner. */
.entity-card-inner::after {
  content: "";
  position: absolute;
  right: -3.5rem;
  bottom: -3.5rem;
  height: 11rem;
  width: 11rem;
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 35%, rgba(18, 128, 100, 0.10), transparent 62%);
  pointer-events: none;
}

.entity-flag {
  flex: none;
  border-radius: 9999px;
  border: 1px solid rgba(18, 128, 100, 0.25);
  background: #eefbf6;
  padding: 0.3rem 0.7rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f6652;
  white-space: nowrap;
}

.entity-row {
  position: relative;
  border-left: 2px solid #e2e8f0;
  padding-left: 0.875rem;
  transition: border-color 0.25s ease;
}

.entity-card:hover .entity-row {
  border-color: #aee9d2;
}

@media (min-width: 640px) {
  .entity-card-inner {
    padding: 1.75rem;
  }
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background:
    radial-gradient(70% 90% at 12% 0%, rgba(18, 128, 100, 0.30) 0%, transparent 58%),
    radial-gradient(60% 80% at 88% 100%, rgba(15, 102, 82, 0.28) 0%, transparent 62%),
    linear-gradient(170deg, #0f172a 0%, #0e1c2b 45%, #0d2620 100%);
}

/* Gradient hairline along the top edge. */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 214, 182, 0.55) 22%, rgba(120, 214, 182, 0.55) 78%, transparent);
}

.footer-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 15% 10%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 15% 10%, #000 0%, transparent 70%);
  pointer-events: none;
}

/* Oversized wordmark bleeding off the bottom edge. */
.footer-wordmark {
  position: absolute;
  left: 50%;
  bottom: -3.4rem;
  transform: translateX(-50%);
  width: max-content;
  max-width: 100%;
  text-align: center;
  /* 10vw keeps the wordmark inside the viewport at every width */
  font-size: min(10vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.028);
  pointer-events: none;
  user-select: none;
}

/* Too little room on phones — the mark would be cropped mid-word. */
@media (max-width: 767px) {
  .footer-wordmark {
    display: none;
  }
}

/* ---------------------------------------------------------------- animated hero background */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Fine grid, fading out towards the edges. */
.hero-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 102, 82, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 102, 82, 0.09) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 30% 40%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 85% 70% at 30% 40%, #000 0%, transparent 76%);
}

/* Soft colour orbs drifting on their own timings. */
.hero-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.85;
}

.hero-orb-1 {
  width: 30rem;
  height: 30rem;
  top: -12rem;
  right: -6rem;
  background: radial-gradient(circle, rgba(18, 128, 100, 0.26), transparent 68%);
  animation: orb-a 19s ease-in-out infinite alternate;
}

.hero-orb-2 {
  width: 22rem;
  height: 22rem;
  bottom: -10rem;
  right: 22%;
  background: radial-gradient(circle, rgba(67, 188, 150, 0.22), transparent 68%);
  animation: orb-b 24s ease-in-out infinite alternate;
}

.hero-orb-3 {
  width: 18rem;
  height: 18rem;
  top: 18%;
  left: -8rem;
  background: radial-gradient(circle, rgba(120, 214, 182, 0.20), transparent 70%);
  animation: orb-c 28s ease-in-out infinite alternate;
}

@keyframes orb-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3rem, 2rem, 0) scale(1.12); }
}

@keyframes orb-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(2.5rem, -1.5rem, 0) scale(0.92); }
}

@keyframes orb-c {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(2rem, 2.5rem, 0); }
}

/* Light beams sweeping across the grid. */
.hero-beam {
  position: absolute;
  top: -40%;
  height: 180%;
  width: 14rem;
  background: linear-gradient(90deg, transparent, rgba(120, 214, 182, 0.16), transparent);
  transform: rotate(14deg) translateX(-30vw);
  opacity: 0;
}

.hero-beam-1 {
  left: 5%;
  animation: beam-sweep 13s ease-in-out infinite;
}

.hero-beam-2 {
  left: 45%;
  width: 9rem;
  animation: beam-sweep 17s ease-in-out 5s infinite;
}

@keyframes beam-sweep {
  0%        { transform: rotate(14deg) translateX(-30vw); opacity: 0; }
  12%, 42%  { opacity: 1; }
  60%, 100% { transform: rotate(14deg) translateX(60vw); opacity: 0; }
}

/* A few grid intersections lighting up. */
.hero-spark {
  position: absolute;
  height: 5px;
  width: 5px;
  border-radius: 9999px;
  background: #43bc96;
  box-shadow: 0 0 10px 2px rgba(67, 188, 150, 0.55);
  opacity: 0;
}

.hero-spark-1 { top: 24%; left: 58%; animation: spark 7s ease-in-out infinite; }
.hero-spark-2 { top: 64%; left: 71%; animation: spark 9s ease-in-out 2.5s infinite; }
.hero-spark-3 { top: 38%; left: 76%; animation: spark 11s ease-in-out 4.5s infinite; }

@keyframes spark {
  0%, 100%  { opacity: 0; transform: scale(0.6); }
  8%, 16%   { opacity: 0.9; transform: scale(1); }
  30%       { opacity: 0; transform: scale(0.6); }
}

@media (max-width: 639px) {
  .hero-lines { background-size: 44px 44px; }
  .hero-beam { display: none; }
  .hero-orb-3 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb,
  .hero-beam,
  .hero-spark {
    animation: none;
  }
  .hero-beam,
  .hero-spark {
    opacity: 0;
  }
}

/* ---------------------------------------------------------------- hero: mesh, spotlight, rotator, mockup */

/* Slow-moving mesh gradient. Kept low-contrast so the mockup stays the focal point. */
.hero-mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(28% 34% at 20% 28%, rgba(18, 128, 100, 0.20), transparent 62%),
    radial-gradient(26% 32% at 72% 22%, rgba(67, 188, 150, 0.18), transparent 64%),
    radial-gradient(30% 36% at 60% 78%, rgba(120, 214, 182, 0.18), transparent 66%),
    radial-gradient(24% 30% at 32% 74%, rgba(18, 128, 100, 0.14), transparent 66%);
  filter: blur(18px);
  animation: mesh-shift 22s ease-in-out infinite alternate;
}

@keyframes mesh-shift {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(2%, -1.5%, 0) scale(1.06) rotate(1.5deg); }
  100% { transform: translate3d(-2%, 1.5%, 0) scale(1.03) rotate(-1.5deg); }
}

/* Cursor spotlight — JS sets --mx/--my; hidden until the pointer enters. */
.hero-spotlight {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    18rem 18rem at var(--mx, 50%) var(--my, 40%),
    rgba(67, 188, 150, 0.22),
    rgba(67, 188, 150, 0.08) 42%,
    transparent 68%
  );
}

.hero-surface.is-pointer .hero-spotlight {
  opacity: 1;
}

/* Rotating keyword */
.rotator {
  position: relative;
  display: inline-grid;
  min-width: 11ch;
  vertical-align: baseline;
}

.rotator-word {
  grid-area: 1 / 1;
  /* orange-700 rather than a brighter orange: 14px uppercase still needs 4.5:1 on this background */
  color: #c2410c;
  opacity: 0;
  transform: translateY(0.4em);
  /* the incoming word waits for the outgoing one to clear, so the two never overlap legibly */
  transition: opacity 0.26s var(--ease-out) 0.16s, transform 0.26s var(--ease-out) 0.16s;
  white-space: nowrap;
}

.rotator-word.is-active {
  opacity: 1;
  transform: none;
}

.rotator-word.is-leaving {
  opacity: 0;
  transform: translateY(-0.4em);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

/* Product mockup */
/* 3D stage: the card sits in perspective and its inner layers lift off the surface. */
.hero-stage {
  perspective: 1400px;
  perspective-origin: 60% 40%;
}

.hero-mock {
  position: relative;
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(150deg, rgba(18, 128, 100, 0.40), rgba(174, 233, 210, 0.30) 48%, rgba(226, 232, 240, 0.85));
  transform-style: preserve-3d;
  /* --rx / --ry follow the cursor; the resting angle already reads as 3D */
  transform:
    rotateX(var(--rx, 5deg))
    rotateY(var(--ry, -11deg))
    translateY(var(--ty, 0px));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
  box-shadow:
    -18px 28px 48px -28px rgba(15, 23, 42, 0.45),
    -6px 10px 18px -12px rgba(15, 23, 42, 0.25);
  animation: mock-float 9s ease-in-out infinite alternate;
}

.hero-mock:hover {
  box-shadow:
    -22px 34px 60px -30px rgba(15, 23, 42, 0.5),
    -8px 14px 22px -14px rgba(15, 23, 42, 0.3);
}

@keyframes mock-float {
  from { --ty: 0px; }
  to   { --ty: -12px; }
}

@property --ty {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

.hero-mock-inner {
  transform-style: preserve-3d;
}

/* Depth of each layer above the card surface */
.mock-layer { transform-style: preserve-3d; }
.mock-layer--head   { transform: translateZ(26px); }
.mock-layer--spark  { transform: translateZ(40px); }
.mock-layer--legend { transform: translateZ(18px); }
.mock-layer--feed   { transform: translateZ(22px); }

.mock-feed-row:nth-child(1) { transform: translateZ(10px); }
.mock-feed-row:nth-child(2) { transform: translateZ(18px); }
.mock-feed-row:nth-child(3) { transform: translateZ(26px); }

.mock-tag { transform: translateZ(34px); }

.hero-mock-inner {
  border-radius: calc(1.25rem - 1px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 1.25rem 1.25rem 1.1rem;
}

.mock-tag {
  flex: none;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #f8fafc;
  padding: 0.2rem 0.55rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.mock-trend {
  display: inline-flex;
  height: 1.25rem;
  width: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #eefbf6;
  color: #0f6652;
}

.mock-trend svg { height: 0.75rem; width: 0.75rem; }

/* Sparkline instead of chunky bars */
.mock-spark {
  position: relative;
  margin-top: 1rem;
  height: 5.25rem;
}

.mock-spark svg {
  height: 100%;
  width: 100%;
  overflow: visible;
}

.mock-spark-line {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: spark-draw 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.mock-spark-area {
  opacity: 0;
  animation: spark-fill 0.9s ease 1.1s forwards;
}

@keyframes spark-draw { to { stroke-dashoffset: 0; } }
@keyframes spark-fill { to { opacity: 1; } }

.mock-spark-dot {
  position: absolute;
  right: -3px;
  top: 8%;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: #0f6652;
  box-shadow: 0 0 0 3px rgba(67, 188, 150, 0.28);
  opacity: 0;
  animation: spark-fill 0.4s ease 1.7s forwards;
}

.mock-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.625rem;
  color: #94a3b8;
}

/* Activity feed */
.mock-feed {
  margin-top: 1.1rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
}

.mock-feed-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
}

.mock-feed-row + .mock-feed-row {
  border-top: 1px dashed #f1f5f9;
}

.mock-feed-dot {
  margin-top: 0.3rem;
  height: 0.5rem;
  width: 0.5rem;
  flex: none;
  border-radius: 9999px;
}

.mock-feed-dot--done { background: #0f6652; }

.mock-feed-dot--live {
  background: #43bc96;
  box-shadow: 0 0 0 0 rgba(67, 188, 150, 0.6);
  animation: live-pulse 2.4s ease-out infinite;
}

.mock-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  font-size: 0.6875rem;
  color: #64748b;
}

.mock-live {
  height: 0.5rem;
  width: 0.5rem;
  flex: none;
  border-radius: 9999px;
  background: #43bc96;
  box-shadow: 0 0 0 0 rgba(67, 188, 150, 0.6);
  animation: live-pulse 2.4s ease-out infinite;
}

@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(67, 188, 150, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(67, 188, 150, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 188, 150, 0); }
}

/* Small card overlapping the bottom-left corner, for depth */
.mock-chip {
  position: absolute;
  right: -1.25rem;
  bottom: -1.5rem;
  transform: translateZ(60px);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0.875rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 18px 30px -20px rgba(15, 23, 42, 0.4);
  animation: chip-float 7s ease-in-out infinite alternate;
}

@keyframes chip-float {
  from { transform: translateZ(60px) translateY(0); }
  to   { transform: translateZ(60px) translateY(7px); }
}

.mock-chip-icon {
  display: inline-flex;
  height: 1.5rem;
  width: 1.5rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #eefbf6;
  color: #0f6652;
}

.mock-chip-icon svg { height: 0.85rem; width: 0.85rem; }

@media (max-width: 1023px) {
  .hero-mock {
    max-width: 26rem;
    transform: none;
  }

  .hero-stage { perspective: none; }

  .mock-layer,
  .mock-feed-row,
  .mock-tag { transform: none; }

  .mock-chip { transform: none; }

  @keyframes chip-float {
    from { transform: translateY(0); }
    to   { transform: translateY(6px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mesh,
  .hero-mock,
  .mock-chip,
  .mock-spark-line,
  .mock-spark-area,
  .mock-spark-dot,
  .mock-feed-dot--live,
  .mock-live {
    animation: none;
  }

  .mock-spark-line { stroke-dashoffset: 0; }
  .mock-spark-area,
  .mock-spark-dot { opacity: 1; }
  .hero-spotlight { display: none; }
  .rotator-word { transition: none; }
}

/* ---------------------------------------------------------------- service cards */

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdfd 100%);
  padding: 1.5rem;
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease;
}

.svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(120, 214, 182, 0.7);
  box-shadow: 0 22px 40px -26px rgba(15, 23, 42, 0.3);
}

.svc-card:focus-visible {
  outline: none;
  border-color: #128064;
  box-shadow: 0 0 0 3px rgba(18, 128, 100, 0.25);
}

/* Glow that follows the cursor inside the card (JS sets --cx/--cy). */
.svc-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(12rem 12rem at var(--cx, 50%) var(--cy, 0%), rgba(67, 188, 150, 0.16), transparent 70%);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.svc-card:hover .svc-glow {
  opacity: 1;
}

/* Oversized index in the corner. */
/* Oversized index: fills the tile like a watermark, sitting behind the content. */
.svc-num {
  position: absolute;
  z-index: 0;
  right: 0.25rem;
  bottom: -0.14em;
  font-size: 15rem;
  font-weight: 700;
  line-height: 0.72;
  letter-spacing: -0.07em;
  color: rgba(15, 23, 42, 0.05);
  transition: color 0.35s ease;
  pointer-events: none;
  user-select: none;
}

/* Content must stay above the watermark: absolute elements paint over static ones. */
.svc-head,
.svc-body,
.svc-icon,
.svc-more {
  position: relative;
  z-index: 1;
}

.svc-card:hover .svc-num {
  color: rgba(18, 128, 100, 0.14);
}

.svc-icon {
  position: relative;
  display: inline-flex;
  height: 2.875rem;
  width: 2.875rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  background: linear-gradient(140deg, #eefbf6, #d5f5e7);
  color: #0f6652;
  box-shadow: inset 0 0 0 1px rgba(18, 128, 100, 0.10);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, background 0.35s ease;
}

.svc-card:hover .svc-icon {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(140deg, #0f6652, #128064);
  color: #ffffff;
  box-shadow: 0 10px 18px -10px rgba(15, 102, 82, 0.65);
}

.svc-more {
  position: relative;
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f6652;
}

.svc-more-icon {
  display: inline-flex;
  height: 1.375rem;
  width: 1.375rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(18, 128, 100, 0.25);
  background: #eefbf6;
  transition: transform 0.35s var(--ease-out), background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.svc-card:hover .svc-more-icon {
  transform: translateX(3px);
  background: #0f6652;
  border-color: #0f6652;
  color: #ffffff;
}

/* Touch devices: no hover, so keep the resting state clean and skip the lift. */
@media (hover: none) {
  .svc-card:hover {
    transform: none;
  }
  .svc-glow {
    display: none;
  }
}

/* ---------------------------------------------------------------- bento tweaks */

.svc-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.svc-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.svc-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: 0.75rem;
}

.svc-body .svc-more {
  margin-top: auto;
  padding-top: 1.25rem;
}

/* Wide tiles run side by side from large screens up, so they never look empty. */
@media (min-width: 1024px) {
  .svc-card--wide {
    display: grid;
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
    gap: 2rem;
    /* centred, otherwise the shorter content leaves the tile looking half empty */
    align-items: center;
    align-content: center;
  }

  /* One size per tile width: big enough to fill, small enough that "06" is never clipped. */
  .svc-num--sm   { font-size: 10.5rem; }
  .svc-num--md   { font-size: 13rem; }
  .svc-num--wide { font-size: 14rem; right: 0.75rem; }

  .svc-card--wide .svc-head {
    gap: 1rem;
  }

  .svc-card--wide .svc-title {
    font-size: 1.25rem;
  }

  .svc-card--wide .svc-body {
    margin-top: 0.25rem;
  }

  .svc-card--wide .svc-body .svc-more {
    padding-top: 1.5rem;
  }
}

/* The rotating eyebrow is hidden below sm via Tailwind utilities on the element itself. */

/* ---------------------------------------------------------------- campaign playbooks (tabs) */

.pb-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.pb-tabs::-webkit-scrollbar { display: none; }

.pb-tab {
  display: flex;
  flex: 1;
  min-width: 13rem;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.875rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.9rem 1.1rem;
  text-align: left;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}

.pb-tab:hover {
  border-color: #aee9d2;
  transform: translateY(-1px);
}

.pb-tab.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #0f6652, #128064);
  box-shadow: 0 16px 28px -20px rgba(15, 102, 82, 0.8);
}

.pb-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(18, 128, 100, 0.3);
}

.pb-tab-num {
  flex: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94a3b8;
  transition: color 0.3s ease;
}

.pb-tab.is-active .pb-tab-num { color: rgba(255, 255, 255, 0.6); }

.pb-tab-label {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
  transition: color 0.3s ease;
}

.pb-tab.is-active .pb-tab-label { color: #ffffff; }

/* Panel */
.pb-panels { margin-top: 1.25rem; }

.pb-panel {
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  background:
    radial-gradient(70% 90% at 85% 0%, rgba(174, 233, 210, 0.22), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);
  padding: 1.75rem;
  animation: pb-in 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pb-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.pb-panel-num {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  background: linear-gradient(140deg, #eefbf6, #d5f5e7);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f6652;
  box-shadow: inset 0 0 0 1px rgba(18, 128, 100, 0.12);
}

.pb-chip {
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #334155;
}

/* Steps as a two-column ladder */
.pb-steps {
  display: grid;
  gap: 0.75rem;
  counter-reset: pb;
}

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

.pb-step {
  display: flex;
  gap: 0.75rem;
  border-radius: 0.875rem;
  border: 1px solid #f1f5f9;
  background: #ffffff;
  padding: 0.9rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pb-step:hover {
  border-color: #aee9d2;
  box-shadow: 0 12px 22px -18px rgba(15, 23, 42, 0.35);
}

.pb-step-num {
  display: inline-flex;
  height: 1.5rem;
  width: 1.5rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #0f6652;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #ffffff;
}

.pb-step-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #475569;
}

@media (max-width: 639px) {
  .pb-tab { min-width: 11rem; padding: 0.75rem 0.9rem; }
  .pb-panel { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pb-panel { animation: none; }
  .pb-tab:hover { transform: none; }
}

/* ---------------------------------------------------------------- language switcher */

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-weight: 600;
  color: #334155;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.lang-button:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.lang-button[aria-expanded="true"] {
  border-color: #aee9d2;
  background: #eefbf6;
  color: #0f6652;
}

.lang-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(18, 128, 100, 0.25);
}

.lang-caret { transition: transform 0.25s var(--ease-out); }
.lang-button[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 50;
  min-width: 12rem;
  max-height: 20rem;
  overflow-y: auto;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0.35rem;
  box-shadow: 0 20px 38px -22px rgba(15, 23, 42, 0.45);
  animation: lang-in 0.18s var(--ease-out);
}

@keyframes lang-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.5rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-item:hover,
.lang-item:focus-visible {
  outline: none;
  background: #f1f5f9;
  color: #0f172a;
}

.lang-item.is-active {
  background: #eefbf6;
  color: #0f6652;
  font-weight: 600;
}

/* Mobile menu: the dropdown opens upward so it is not clipped by the panel edge */
#mobile-nav .lang-menu {
  right: auto;
  left: 0;
  top: auto;
  bottom: calc(100% + 0.5rem);
}

@media (prefers-reduced-motion: reduce) {
  .lang-menu { animation: none; }
  .lang-caret { transition: none; }
}
