/* ============================================================
   Cygnus Professionals — INNER PAGES
   Extends style.css (same tokens: --ink, --lime, --mint, Manrope/Inter).
   Load order:  bootstrap → style.css → inner.css
   ============================================================ */

:root {
  --soft: #f7f8f9;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --danger: #c2413a;
}

html {
  scroll-padding-top: 110px;
}

main {
  animation: pageIn .6s ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ---------- Utilities ---------- */
.bg-soft {
  background: var(--soft);
}

.bg-ink {
  background: var(--ink);
}

.center {
  text-align: center;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
}

.section-head.wide {
  max-width: 760px;
}

.section-head.flush {
  margin-bottom: 0;
}

.mt-6 {
  margin-top: 4rem;
}

/* ---------- Scroll progress + back to top ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--lime), var(--mint));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 2000;
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(153, 244, 107, .4);
  background: var(--ink);
  color: var(--mint);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  box-shadow: 0 10px 24px rgba(27, 55, 58, .28);
  cursor: pointer;
}

.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--lime);
  color: var(--ink);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

/* ---------- Header additions ---------- */
.brand-link {
  display: inline-flex;
  width: 7%;
  min-width: 68px;
  flex: none;
}

.brand-link .logo-img {
  width: 100%;
  display: block;
}

.main-links .nav-link {
  position: relative;
}

.main-links .nav-link.active {
  background: var(--ink);
  color: #fff;
}

.main-links .nav-link.active:hover {
  background: var(--ink);
}

@media (max-width: 991.98px) {
  .brand-link {
    min-width: 64px;
  }
}

/* ---------- Buttons ---------- */
.btn-cta.on-dark-btn {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.btn-cta.on-dark-btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn-cta svg {
  width: 16px;
  height: 16px;
  transition: transform .25s ease;
}

.btn-cta:hover svg {
  transform: translateX(4px);
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--display);
  font-weight: 500;
  padding: .8rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 4px;
  color: #fff;
  transition: border-color .2s, color .2s, background .2s;
}

.btn-ghost-light:hover {
  border-color: var(--mint);
  color: var(--mint);
}

/* ============================================================
   Hero — inner pages reuse the HOME hero (.hero / .hero-title / .stat-band)
   ============================================================ */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.4rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--label);
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs .sep {
  opacity: .5;
}

.crumbs [aria-current] {
  color: var(--ink);
  font-weight: 600;
}

.hero-title.inner-title {
  font-size: clamp(2.2rem, 4.1vw, 3.8rem);
}

.hero-anim>* {
  opacity: 0;
  transform: translateY(18px);
  animation: rise .8s var(--ease) forwards;
}

.hero-anim>*:nth-child(1) {
  animation-delay: .05s;
}

.hero-anim>*:nth-child(2) {
  animation-delay: .12s;
}

.hero-anim>*:nth-child(3) {
  animation-delay: .2s;
}

.hero-anim>*:nth-child(4) {
  animation-delay: .28s;
}

.hero-anim>*:nth-child(5) {
  animation-delay: .36s;
}

.hero-anim>*:nth-child(6) {
  animation-delay: .44s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ribbon: rises in, then drifts gently */
.hero-img {
  display: block;
  will-change: transform;
  animation: rise 1s var(--ease) .2s both, drift 12s ease-in-out 1.2s infinite;
}

@keyframes drift {

  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  50% {
    transform: translate3d(0, -14px, 0) rotate(2deg) scale(1.03);
  }
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

@keyframes pulseMint {
  0% {
    box-shadow: 0 0 0 0 rgba(153, 244, 107, .6);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(153, 244, 107, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(153, 244, 107, 0);
  }
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulseMint 2s infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@keyframes counter {
  from {
    rotate: calc(var(--a) * -1);
  }

  to {
    rotate: calc(var(--a) * -1 - 360deg);
  }
}

@keyframes counter2 {
  from {
    rotate: calc(var(--a) * -1);
  }

  to {
    rotate: calc(var(--a) * -1 + 360deg);
  }
}

@keyframes coreGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(76, 204, 12, .4), 0 0 28px rgba(76, 204, 12, .35);
  }

  50% {
    box-shadow: 0 0 0 16px rgba(76, 204, 12, 0), 0 0 44px rgba(76, 204, 12, .55);
  }
}

/* Contact hero: "signal" animation (ripples + orbiting contact channels) */
.hero {
  overflow-x: clip;
}

.connect {
  overflow: clip;
  position: relative;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 1;
  margin: 0 auto;
  animation: rise 1s var(--ease) .2s both;
}

.connect .ripple {
  position: absolute;
  inset: 27%;
  border-radius: 50%;
  border: 2px solid var(--lime);
  opacity: 0;
  animation: ripple 4.8s ease-out infinite;
}

.connect .ripple:nth-child(2) {
  animation-delay: 1.6s;
}

.connect .ripple:nth-child(3) {
  animation-delay: 3.2s;
}

@keyframes ripple {
  0% {
    transform: scale(.7);
    opacity: .55;
  }

  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

.connect-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(27, 55, 58, .32);
  animation: spin var(--t) linear infinite;
}

.connect-ring.cr1 {
  width: 62%;
  --t: 30s;
}

.connect-ring.cr2 {
  width: 92%;
  --t: 46s;
  animation-direction: reverse;
}

.c-arm {
  position: absolute;
  inset: 0;
  rotate: var(--a);
}

.c-node {
  position: absolute;
  left: 50%;
  top: 0;
  margin: -22px 0 0 -22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--mint);
  box-shadow: 0 12px 24px rgba(27, 55, 58, .28);
  animation: counter var(--t) linear infinite;
}

.cr2 .c-node {
  animation-name: counter2;
  animation-direction: reverse;
}

.c-node svg {
  width: 20px;
  height: 20px;
}

.connect-core {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--mint);
  animation: coreGlow 3s ease-in-out infinite;
}

.connect-core svg {
  width: 42%;
  height: 42%;
  animation: floaty 3s ease-in-out infinite;
}

.connect .c-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  opacity: .0;
  animation: twinkle 3.6s ease-in-out infinite;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0;
    transform: scale(.5);
  }

  50% {
    opacity: .9;
    transform: scale(1.2);
  }
}

/* ============================================================
   Card system additions (extends .feature-card from style.css)
   ============================================================ */
.feature-card,
.step-card,
.why-card,
.flow-node,
.layer,
.office {
  position: relative;
}

.feature-card::before,
.step-card::before,
.why-card::before,
.flow-node::before,
.layer::before,
.office::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(153, 244, 107, .17), transparent 55%);
}

.feature-card:hover::before,
.step-card:hover::before,
.why-card:hover::before,
.flow-node:hover::before,
.layer:hover::before,
.office:hover::before {
  opacity: 1;
}

.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  background: var(--soft);
  color: var(--ink);
  transition: background .35s ease, color .35s ease;
}

.icon-tile svg {
  width: 26px;
  height: 26px;
}

.feature-card:hover .icon-tile {
  background: rgba(255, 255, 255, .09);
  color: var(--mint);
}

.card-link {
  margin: .1rem 0 1.3rem;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: .5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  transition: color .3s;
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform .25s ease;
}

.feature-card:hover .card-link {
  color: var(--mint);
}

.feature-card:hover .card-link svg {
  transform: translateX(6px);
}

.chip {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  padding: .38rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--slate);
  background: #fff;
  transition: all .35s ease;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.1rem;
}

.feature-card:hover .chip {
  background: transparent;
  border-color: rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .9);
}

.chip.solid {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip.lime {
  background: rgba(76, 204, 12, .14);
  border-color: rgba(76, 204, 12, .4);
  color: var(--ink);
}

.metric {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: .4rem;
  transition: color .35s ease;
}

.feature-card:hover .metric {
  color: var(--mint);
}

.metric-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 1.2rem;
  display: block;
  transition: color .35s;
}

.feature-card:hover .metric-label {
  color: rgba(255, 255, 255, .7);
}

/* check list */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  gap: .8rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--slate);
  font-size: .98rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(76, 204, 12, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 10.5l3 3 6-7' stroke='%231b373a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.on-dark .check-list li,
.check-list.on-dark li {
  color: rgba(255, 255, 255, .88);
}

/* ============================================================
   Flow diagram + console (Solutions)
   ============================================================ */
.flow {
  display: grid;
  grid-template-columns: 1fr 64px 1fr 64px 1fr 64px 1fr;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.flow-node {
  position: relative;
  padding: 1.6rem 1.4rem;
  border-radius: 16px;
  background: var(--ink-2);
  border: 1px solid rgba(153, 244, 107, .18);
  transition: transform .3s ease, border-color .3s ease;
}

.flow-node:hover {
  transform: translateY(-5px);
  border-color: var(--mint);
}

.flow-node .fn-num {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: .85rem;
  color: var(--mint);
}

.fn-ic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--mint);
  margin-bottom: 1.1rem;
}

.fn-ic svg {
  width: 26px;
  height: 26px;
}

.flow-node h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .55rem;
}

.flow-node p {
  color: rgba(255, 255, 255, .8);
  font-size: .9rem;
  margin: 0;
  line-height: 1.55;
}

.flow-link {
  position: relative;
  align-self: center;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--mint) 0 6px, transparent 6px 12px);
  background-size: 12px 2px;
  animation: dashX 1s linear infinite;
  opacity: .85;
}

.flow-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  animation: travelX 2.2s ease-in-out infinite;
}

@keyframes dashX {
  to {
    background-position: 12px 0;
  }
}

@keyframes travelX {
  0% {
    left: 0;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    left: calc(100% - 8px);
    opacity: 0;
  }
}

@keyframes dashY {
  to {
    background-position: 0 12px;
  }
}

@keyframes travelY {
  0% {
    top: 0;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    top: calc(100% - 8px);
    opacity: 0;
  }
}

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

  .flow-link {
    width: 2px;
    height: 44px;
    justify-self: center;
    background: repeating-linear-gradient(180deg, var(--mint) 0 6px, transparent 6px 12px);
    background-size: 2px 12px;
    animation-name: dashY;
  }

  .flow-link::after {
    left: 50%;
    top: 0;
    margin: 0 0 0 -4px;
    animation-name: travelY;
  }
}

.console {
  border-radius: 14px;
  overflow: hidden;
  background: #0f2426;
  border: 1px solid rgba(153, 244, 107, .22);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: .75rem;
  color: rgba(255, 255, 255, .6);
}

.console-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}

.console-bar i:first-child {
  background: var(--mint);
}

.console-bar span {
  margin-left: .4rem;
}

.console-bar .live-dot {
  margin-left: auto;
}

.console-body {
  height: 232px;
  padding: 1rem 1.1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .35rem;
  font-size: .8rem;
  line-height: 1.5;
}

.console-line {
  display: flex;
  gap: .7rem;
  color: rgba(255, 255, 255, .86);
  animation: lineIn .45s ease both;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console-line .t {
  color: rgba(255, 255, 255, .4);
  flex: none;
}

.console-line .tag {
  color: var(--mint);
  flex: none;
}

.console-line .ok {
  color: var(--lime);
}

@keyframes lineIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--display);
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
  transition: all .25s ease;
}

.marquee-item::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.marquee-item:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

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

/* ============================================================
   Tabs (Industries)
   ============================================================ */
.tab-list {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  padding: .3rem .1rem 1rem;
  margin-bottom: 1.6rem;
  scrollbar-width: thin;
}

.tab-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  cursor: pointer;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: .93rem;
  color: var(--heading);
  transition: all .25s ease;
}

.tab-btn svg {
  width: 18px;
  height: 18px;
  color: var(--label);
  transition: color .25s;
}

.tab-btn:hover {
  border-color: var(--ink);
}

.tab-btn[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 10px 22px rgba(27, 55, 58, .22);
}

.tab-btn[aria-selected="true"] svg {
  color: var(--mint);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: panelIn .55s var(--ease) both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.panel-card {
  border: 1px solid #bcbcbc;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.panel-visual {
  position: relative;
  height: 100%;
  min-height: 260px;
  background: var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.panel-visual img.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.tab-panel.is-active .panel-visual img.cover {
  transform: scale(1.08);
}

.panel-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(27, 55, 58, .75));
}

.panel-visual img.ribbon {
  position: relative;
  z-index: 1;
  width: 78%;
  max-height: 92%;
  object-fit: contain;
  animation: drift 12s ease-in-out infinite;
}

.panel-visual .pv-tag {
  position: absolute;
  z-index: 2;
  left: 1.2rem;
  bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
}

.panel-body {
  padding: 2.2rem;
}

.panel-body h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: .8rem;
}

.panel-body>p {
  color: var(--slate);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.kpi strong {
  display: block;
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.1;
}

.kpi>span {
  font-size: .8rem;
  color: var(--label);
  font-weight: 500;
}

@media (max-width: 575.98px) {
  .panel-body {
    padding: 1.5rem;
  }

  .kpi strong {
    font-size: 1.5rem;
  }
}

/* ============================================================
   Splits (Capabilities) + visuals
   ============================================================ */
.split {
  --gap: 5.5rem;
  margin-bottom: var(--gap);
}

.split:last-child {
  margin-bottom: 0;
}

.split h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.split p {
  color: var(--slate);
  font-size: 1.02rem;
}

@media (max-width: 991.98px) {
  .split {
    --gap: 3.5rem;
  }
}

.viz {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 340px;
  padding: 1.6rem;
  background: linear-gradient(160deg, #21474b, var(--ink) 60%, #12292c);
  box-shadow: 0 30px 50px -28px rgba(27, 55, 58, .6);
  color: #fff;
}

.viz::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 80% 0%, rgba(153, 244, 107, .14), transparent 70%);
  pointer-events: none;
}

.viz-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 1.2rem;
}

/* agent network svg */
.viz svg.net {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
}

.viz .edge {
  stroke: rgba(153, 244, 107, .4);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 4 6;
  animation: dashSvg 1.4s linear infinite;
}

.viz .node-c {
  fill: var(--ink);
  stroke: var(--mint);
  stroke-width: 1.6;
}

.viz .node-core {
  fill: var(--lime);
}

.viz .node-t {
  fill: #fff;
  font: 600 11px var(--display);
  text-anchor: middle;
}

.viz .pkt {
  fill: var(--mint);
  filter: drop-shadow(0 0 6px var(--mint));
}

@keyframes dashSvg {
  to {
    stroke-dashoffset: -20;
  }
}

/* llm code panel */
.code {
  position: relative;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, .9);
}

.code .ln {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
}

.is-visible .code .ln,
.code.is-visible .ln {
  animation: typeLine 1s steps(38, end) forwards;
  animation-delay: var(--d);
}

@keyframes typeLine {
  to {
    width: 100%;
  }
}

.code .k {
  color: var(--mint);
}

.code .s {
  color: #f2e27a;
}

.code .c {
  color: rgba(255, 255, 255, .45);
}

.code .n {
  color: #7fd6ff;
}

.code .cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--mint);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

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

/* chart panel */
.chart-svg {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
}

.chart-svg .grid {
  stroke: rgba(255, 255, 255, .1);
}

.chart-svg .bar {
  fill: rgba(153, 244, 107, .28);
  transform-origin: bottom;
  transform-box: fill-box;
  transform: scaleY(0);
}

.is-visible .chart-svg .bar {
  animation: growY .9s var(--ease) forwards;
  animation-delay: var(--d);
}

@keyframes growY {
  to {
    transform: scaleY(1);
  }
}

.chart-svg .line {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
}

.is-visible .chart-svg .line {
  animation: drawLine 2s var(--ease) .4s forwards;
}

.chart-svg .fc {
  stroke-dasharray: 5 7;
  stroke: rgba(255, 255, 255, .7);
  opacity: 0;
}

.is-visible .chart-svg .fc {
  animation: fadeIn .8s ease 2.2s forwards;
}

.chart-svg .pt {
  fill: var(--ink);
  stroke: var(--mint);
  stroke-width: 2;
  opacity: 0;
}

.is-visible .chart-svg .pt {
  animation: fadeIn .4s ease 2s forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.chart-legend {
  position: relative;
  display: flex;
  gap: 1.2rem;
  font-size: .75rem;
  color: rgba(255, 255, 255, .75);
  margin-top: .8rem;
}

.chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: .4rem;
  background: var(--mint);
}

.chart-legend i.b {
  background: rgba(153, 244, 107, .35);
}

/* automation pipeline */
.pipe {
  position: relative;
  display: grid;
  gap: .8rem;
}

.pipe-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  opacity: 0;
  transform: translateX(-16px);
}

.is-visible .pipe-row {
  animation: rowIn .6s var(--ease) forwards;
  animation-delay: var(--d);
}

@keyframes rowIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.pipe-row .p-ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--mint);
  flex: none;
}

.pipe-row .p-ic svg {
  width: 18px;
  height: 18px;
}

.pipe-row b {
  display: block;
  font-size: .9rem;
  font-family: var(--display);
  font-weight: 600;
}

.pipe-row small {
  color: rgba(255, 255, 255, .6);
  font-size: .74rem;
}

.pipe-row .ok {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  transform: scale(0);
  flex: none;
}

.pipe-row .ok svg {
  width: 13px;
  height: 13px;
}

.is-visible .pipe-row .ok {
  animation: pop .4s var(--ease) forwards;
  animation-delay: calc(var(--d) + .5s);
}

@keyframes pop {
  to {
    transform: scale(1);
  }
}

/* tech stack layers */
.stack {
  display: grid;
  gap: .75rem;
}

.layer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.15rem 1.4rem;
  border-radius: 12px;
  background: var(--ink-2);
  border: 1px solid rgba(153, 244, 107, .16);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}

.layer:hover {
  transform: translateX(10px);
  border-color: var(--mint);
  background: #2b5254;
}

.layer .l-num {
  font-family: var(--display);
  font-weight: 700;
  color: var(--mint);
  font-size: .9rem;
  width: 28px;
  flex: none;
}

.layer h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .15rem;
}

.layer p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: .86rem;
}

.layer .l-tags {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: flex-end;
  max-width: 46%;
}

.layer .l-tags span {
  font-size: .68rem;
  font-weight: 600;
  padding: .28rem .55rem;
  border-radius: 999px;
  color: var(--mint);
  border: 1px solid rgba(153, 244, 107, .35);
}

@media (max-width: 767.98px) {
  .layer {
    flex-wrap: wrap;
  }

  .layer .l-tags {
    margin-left: 0;
    max-width: 100%;
    justify-content: flex-start;
    flex-basis: 100%;
  }
}

/* ============================================================
   Insights
   ============================================================ */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.2rem;
}

.filter-chips button {
  cursor: pointer;
  padding: .55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: .88rem;
  color: var(--heading);
  transition: all .25s ease;
}

.filter-chips button:hover {
  border-color: var(--ink);
}

.filter-chips button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.filter-chips .count {
  opacity: .55;
  margin-left: .3rem;
  font-weight: 500;
}

[data-cat].is-hidden {
  display: none;
}

[data-cat].pop {
  animation: panelIn .5s var(--ease) both;
}

.no-results {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--slate);
}

.no-results.show {
  display: block;
}

.featured-post {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  margin-bottom: 4rem;
  transition: transform .35s ease, box-shadow .35s ease;
}

.featured-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px rgba(27, 55, 58, .25);
}

.featured-copy {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-copy .kicker {
  color: var(--mint);
}

.featured-copy h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.featured-copy p {
  color: rgba(255, 255, 255, .82);
  margin-bottom: 1.6rem;
}

.featured-art {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  background: radial-gradient(70% 70% at 60% 40%, #2f6b5e, var(--ink));
  overflow: hidden;
}

.featured-art img {
  position: absolute;
  top: 7%;
  left: 50%;
  translate: -50% 0;
  height: 86%;
  width: auto;
  max-width: 92%;
  object-fit: contain;
  animation: drift 12s ease-in-out infinite;
}

.featured-art canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  font-size: .8rem;
  color: var(--label);
  margin-bottom: .9rem;
  transition: color .35s;
}

.feature-card:hover .post-meta {
  color: rgba(255, 255, 255, .7);
}

.featured-post .post-meta {
  color: rgba(255, 255, 255, .7);
}

.post-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
}

.thumb-art {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.thumb-art::before,
.thumb-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  transition: transform .8s var(--ease);
}

.thumb-art::before {
  width: 180px;
  height: 180px;
  right: -40px;
  top: -60px;
  background: rgba(153, 244, 107, .28);
}

.thumb-art::after {
  width: 120px;
  height: 120px;
  left: 12%;
  bottom: -50px;
  border: 2px solid rgba(255, 255, 255, .35);
}

.feature-card:hover .thumb-art::before {
  transform: scale(1.35) translate(-14px, 10px);
}

.feature-card:hover .thumb-art::after {
  transform: scale(1.4) translate(20px, -10px);
}

.thumb-art .ta-ic {
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  width: 40px;
  height: 40px;
  color: #fff;
  opacity: .95;
  z-index: 2;
}

.ta-1 {
  background: linear-gradient(135deg, var(--ink), #2f6b5e);
}

.ta-2 {
  background: linear-gradient(135deg, #3f8a5b, var(--lime));
}

.ta-3 {
  background: linear-gradient(135deg, #12292c, #25484a 55%, #4a8f6d);
}

.ta-4 {
  background: linear-gradient(135deg, #2f6b5e, #99f46b);
}

.ta-5 {
  background: linear-gradient(135deg, #1b373a, #4ccc0c 140%);
}

.author {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  transition: border-color .35s;
}

.feature-card:hover .author {
  border-top-color: rgba(255, 255, 255, .3);
}

.author .a-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: .78rem;
  background: rgba(76, 204, 12, .2);
  color: var(--ink);
}

.feature-card:hover .author .a-av {
  background: var(--mint);
}

.author strong {
  display: block;
  font-size: .85rem;
  line-height: 1.2;
}

.author span {
  color: var(--label);
  font-size: .76rem;
}

.feature-card:hover .author span {
  color: rgba(255, 255, 255, .7);
}

@media (max-width: 991.98px) {
  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-copy {
    padding: 2rem 1.6rem;
  }

  .featured-art {
    min-height: 220px;
    order: -1;
  }
}

.newsletter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
}

.newsletter h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 700;
  margin-bottom: .8rem;
}

.newsletter p {
  color: rgba(255, 255, 255, .85);
  margin: 0;
  max-width: 480px;
}

.news-form {
  display: flex;
  gap: .6rem;
  flex: 1 1 380px;
  max-width: 520px;
}

.news-form input {
  flex: 1;
  min-width: 0;
  padding: .9rem 1.1rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  outline: none;
  transition: border-color .2s, background .2s;
}

.news-form input::placeholder {
  color: rgba(255, 255, 255, .55);
}

.news-form input:focus {
  border-color: var(--mint);
  background: rgba(255, 255, 255, .12);
}

.news-form button {
  cursor: pointer;
}

.news-note {
  flex-basis: 100%;
  margin-top: -1.2rem !important;
  font-size: .85rem;
  color: var(--mint) !important;
  min-height: 1.3em;
}

@media (max-width: 575.98px) {
  .news-form {
    flex-direction: column;
  }
}

/* ============================================================
   About
   ============================================================ */
.info-card {
  position: relative;
  padding: 1.8rem 1.8rem 1.8rem 2.2rem;
  border-radius: var(--radius);
  border: 1px solid #bcbcbc;
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}

.info-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 4px;
  border-radius: 4px;
  background: var(--lime);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20, 40, 45, .12);
}

.info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .6rem;
}

.info-card p {
  margin: 0;
  color: var(--slate);
}

.person {
  height: 100%;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}

.person:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(20, 40, 45, .13);
  border-color: var(--mint);
}

.person .p-av {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  background: linear-gradient(135deg, var(--mint), var(--lime));
  margin-bottom: 1.2rem;
}

.person .p-av::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed var(--lime);
  opacity: 0;
  transform: scale(.9);
  transition: all .4s var(--ease);
}

.person:hover .p-av::after {
  opacity: 1;
  transform: scale(1);
  animation: spin 12s linear infinite;
}

.person:nth-child(even) .p-av,
.col-lg-3:nth-child(even) .person .p-av {
  background: linear-gradient(135deg, #2f6b5e, var(--ink));
  color: var(--mint);
}

.person h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .2rem;
}

.person .role {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: .9rem;
}

.person p {
  margin: 0 0 1.1rem;
  color: var(--slate);
  font-size: .92rem;
}

.person .in {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: all .2s;
}

.person .in:hover {
  background: var(--ink);
  color: var(--mint);
  border-color: var(--ink);
}

.person .in svg {
  width: 15px;
  height: 15px;
}

.office {
  position: relative;
  height: 100%;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid rgba(153, 244, 107, .18);
  transition: transform .3s, border-color .3s;
}

.office:hover {
  transform: translateY(-5px);
  border-color: var(--mint);
}

.office .o-pin {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint);
  margin-bottom: 1.2rem;
  animation: pulseMint 2.4s infinite;
}

.office h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.office .o-tag {
  display: block;
  color: var(--mint);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}

.office p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  line-height: 1.6;
}

/* ============================================================
   Careers roles + accordions
   ============================================================ */
.role,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .3s, box-shadow .3s;
}

.role+.role,
.faq-item+.faq-item {
  margin-top: .9rem;
}

.role:hover,
.faq-item:hover,
.role.is-open,
.faq-item.is-open {
  border-color: var(--ink);
}

.role.is-open,
.faq-item.is-open {
  box-shadow: 0 16px 34px rgba(20, 40, 45, .1);
}

.role-head,
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--heading);
}

.role-title {
  flex: 1 1 auto;
  min-width: 0;
}

.role-title h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 .35rem;
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .6rem;
  align-items: center;
  font-size: .82rem;
  color: var(--label);
}

.role-meta .chip {
  padding: .3rem .6rem;
}

.plus {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: all .3s ease;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--ink);
  transition: transform .3s ease, background .3s;
}

.plus::after {
  transform: rotate(90deg);
}

.is-open>.role-head .plus,
.is-open>.faq-q .plus {
  background: var(--ink);
  border-color: var(--ink);
}

.is-open>.role-head .plus::before,
.is-open>.faq-q .plus::before {
  background: var(--mint);
}

.is-open>.role-head .plus::after,
.is-open>.faq-q .plus::after {
  transform: rotate(0deg);
  background: var(--mint);
}

.faq-q span.q-text {
  flex: 1;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
}

.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}

.is-open>.acc-body {
  grid-template-rows: 1fr;
}

.acc-body>div {
  overflow: hidden;
}

.acc-inner {
  padding: 0 1.5rem 1.6rem;
  color: var(--slate);
  font-size: .96rem;
}

.acc-inner p {
  margin-bottom: .9rem;
}

.acc-inner h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 1.1rem 0 .6rem;
  font-family: var(--sans);
}

.role .btn-cta {
  margin-top: .4rem;
  padding: .65rem 1.2rem;
  font-size: .9rem;
}

@media (max-width: 575.98px) {

  .role-head,
  .faq-q {
    padding: 1.05rem 1.1rem;
  }

  .acc-inner {
    padding: 0 1.1rem 1.3rem;
  }
}

/* ============================================================
   Contact
   ============================================================ */
.form-card {
  padding: 2.4rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -36px rgba(27, 55, 58, .35);
  position: relative;
  overflow: hidden;
}

.form-card h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.form-card .sub {
  color: var(--slate);
  margin-bottom: 1.8rem;
}

.field {
  margin-bottom: 1.15rem;
  position: relative;
}

.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .45rem;
  color: var(--heading);
}

.field label em {
  color: var(--danger);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 8px;
  border: 1px solid #cfd4da;
  background: #fff;
  color: var(--heading);
  font: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5l4 4 4-4' stroke='%231b373a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 1rem center no-repeat;
  padding-right: 2.6rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(76, 204, 12, .16);
}

.field .err {
  display: none;
  font-size: .78rem;
  color: var(--danger);
  margin-top: .35rem;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(194, 65, 58, .1);
}

.field.has-error .err {
  display: block;
}

.check-field {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--slate);
}

.check-field input {
  width: 18px;
  height: 18px;
  margin-top: .2rem;
  accent-color: var(--ink);
  flex: none;
}

.check-field label {
  font-weight: 400;
  margin: 0;
}

.btn-cta[disabled] {
  opacity: .75;
  cursor: progress;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: rot .7s linear infinite;
  display: none;
}

.is-loading .spinner {
  display: inline-block;
}

@keyframes rot {
  to {
    transform: rotate(360deg);
  }
}

.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}

.form-card.is-sent form {
  display: none;
}

.form-card.is-sent .form-head {
  display: none;
}

.form-card.is-sent .form-success {
  display: block;
  animation: panelIn .6s var(--ease) both;
}

.success-mark {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.4rem;
}

.success-mark circle {
  fill: none;
  stroke: var(--lime);
  stroke-width: 3;
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  animation: drawLine .7s ease forwards;
}

.success-mark path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawLine .5s ease .6s forwards;
}

.form-success h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .6rem;
}

.form-success p {
  color: var(--slate);
  max-width: 420px;
  margin: 0 auto 1.4rem;
}

@media (max-width: 575.98px) {
  .form-card {
    padding: 1.6rem 1.25rem;
  }
}

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.contact-card+.contact-card {
  margin-top: 1rem;
}

.contact-card:hover {
  transform: translateX(6px);
  border-color: var(--mint);
  box-shadow: 0 14px 30px rgba(20, 40, 45, .1);
}

.contact-card .icon-tile {
  margin: 0;
  flex: none;
  width: 46px;
  height: 46px;
  background: var(--ink);
  color: var(--mint);
}

.contact-card .icon-tile svg {
  width: 22px;
  height: 22px;
}

.contact-card small {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: .15rem;
}

.contact-card strong,
.contact-card a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--heading);
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-underline-offset: 4px;
}

.next-steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  counter-reset: ns;
  display: grid;
  gap: 1.1rem;
}

.next-steps li {
  position: relative;
  padding-left: 3rem;
  color: var(--slate);
  font-size: .95rem;
  counter-increment: ns;
}

.next-steps li::before {
  content: counter(ns);
  position: absolute;
  left: 0;
  top: -.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: .85rem;
  background: var(--ink);
  color: var(--mint);
}

.next-steps li strong {
  display: block;
  color: var(--heading);
  font-family: var(--display);
}

.next-steps h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2rem 0 -.6rem;
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
[data-reveal] {
  --rx: 0px;
  --ry: 30px;
  --rs: 1;
}

[data-reveal="left"] {
  --rx: -36px;
  --ry: 0px;
}

[data-reveal="right"] {
  --rx: 36px;
  --ry: 0px;
}

[data-reveal="zoom"] {
  --rx: 0px;
  --ry: 0px;
  --rs: .92;
}

[data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translate(var(--rx), var(--ry)) scale(var(--rs));
}

[data-reveal].is-visible {
  animation: reveal .85s var(--ease) var(--d, 0ms) backwards;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translate(var(--rx), var(--ry)) scale(var(--rs));
  }
}

/* CTA banner on inner pages: keep stacking with dark sections tidy */
.cta-banner .cta-copy p {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .tab-list {
    flex-wrap: wrap;
    overflow: visible;
  }
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-card .feature-thumb {
  flex: none;
}

.post-card .author {
  margin-top: auto;
}

.post-card .post-meta {
  gap: .35rem .55rem;
}

/* ============================================================
   Motion shared with the HOME page
   ============================================================ */
/* process steps: hover lift + glow */
.step-card {
  transition: transform .35s var(--ease), box-shadow .35s ease;
  box-shadow: inset 0 0 0 1px rgba(153, 244, 107, .14);
}

.step-card:hover {
  transform: translateY(-7px);
  box-shadow: inset 0 0 0 1px var(--mint), 0 22px 40px rgba(0, 0, 0, .28);
}

.step-avatar {
  transition: box-shadow .35s ease, background .35s ease;
}

.step-card:hover .step-avatar {
  box-shadow: 0 0 0 7px rgba(153, 244, 107, .14);
}

.step-icon {
  transition: transform .4s var(--ease);
}

.step-card:hover .step-icon {
  transform: scale(1.12) rotate(-5deg);
}

.step-num {
  transition: letter-spacing .35s ease;
}

.step-card:hover .step-num {
  letter-spacing: .12em;
}

/* animated connector: flowing dashes + travelling dot */
.step-connector {
  position: relative;
}

.step-connector .connector-line {
  border-top: 0;
  height: 2px;
  opacity: .9;
  background: repeating-linear-gradient(90deg, var(--mint) 0 6px, transparent 6px 12px);
  background-size: 12px 2px;
  animation: dashX 1s linear infinite;
}

.step-connector::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  animation: travelX 2.2s ease-in-out infinite;
}

@keyframes dashX {
  to {
    background-position: 12px 0;
  }
}

@keyframes travelX {
  0% {
    left: 0;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    left: calc(100% - 8px);
    opacity: 0;
  }
}

/* why cards */
.why-icon {
  transition: transform .35s var(--ease), color .35s ease;
}

.why-card:hover .why-icon {
  transform: translateY(-4px) scale(1.08);
  color: var(--mint);
}

/* stats */
.stat dt {
  transition: transform .3s var(--ease), color .3s;
}

.stat:hover dt {
  transform: translateX(4px);
  color: var(--mint);
}

/* buttons: subtle arrow-free lift */
.btn-link-cta {
  transition: border-color .2s, color .2s, transform .15s;
}

.btn-link-cta:hover {
  transform: translateY(-1px);
}
/* ---------- Floating Admin button (bottom right) ---------- */
.admin-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}
.admin-fab .af-label {
  position: absolute;
  right: calc(100% + .8rem);
  top: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: .6rem 1.1rem;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(27, 55, 58, .25);
  opacity: 0;
  transform: translate(12px, -50%);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.admin-fab .af-btn {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: radial-gradient(circle at 32% 28%, var(--mint), var(--lime) 65%, #2f9e05);
  box-shadow: 0 10px 24px rgba(76, 204, 12, .45), inset 0 -4px 8px rgba(27, 55, 58, .18);
  animation: afFloat 3s ease-in-out infinite;
  transition: transform .25s ease;
}
.admin-fab .af-btn::before,
.admin-fab .af-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(76, 204, 12, .55);
  animation: afPulse 2.4s ease-out infinite;
  pointer-events: none;
}
.admin-fab .af-btn::after { animation-delay: 1.2s; }
.admin-fab .af-btn svg { width: 26px; height: 26px; position: relative; }
.admin-fab:hover .af-btn { transform: scale(1.08); }
.admin-fab:hover .af-label,
.admin-fab:focus-visible .af-label { opacity: 1; transform: translate(0, -50%); }
@keyframes afPulse {
  0%   { transform: scale(.9); opacity: .9; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes afFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -5px; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-fab .af-btn,
  .admin-fab .af-btn::before, .admin-fab .af-btn::after { animation: none; }
}
/* keep back-to-top clear of the admin button */
.to-top { bottom: 9rem; }
