:root {
  --color-base: #fdfbf7;
  --color-surface: #ede8df;
  --color-dark: #0a0a0a;
  --color-dark-2: #222222;
  --color-accent: #a8873a;
  --color-accent-light: #cead65;
  --color-text: #0a0a0a;
  --color-text-muted: #888880;
  --color-border: #e0d9ce;
  --bg: var(--color-base);
  --surface-dark: var(--color-dark);
  --surface-mid: var(--color-dark-2);
  --accent: var(--color-accent);
  --highlight: var(--color-accent-light);
  --text: var(--color-text);
  --text-soft: var(--color-text-muted);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background: radial-gradient(
      1000px 620px at 12% -10%,
      rgba(255, 255, 255, 0.18),
      transparent 66%
    ),
    radial-gradient(
      860px 560px at 88% 8%,
      rgba(255, 255, 255, 0.14),
      transparent 72%
    ),
    linear-gradient(180deg, #050505 0%, #0a0a0a 45%, #15120b 100%);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

#galaxy-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.post-hero-flow-ref {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms ease;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 95%);
}

.post-hero-flow-ref svg {
  width: 100%;
  height: 100%;
}

.flow-group path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2.6;
}

.flow-group--one path {
  stroke: rgba(255, 255, 255, 0.68);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.22));
  stroke-dasharray: 18 10;
  animation: flow-ref-move 13s linear infinite;
}

.flow-group--one path:nth-child(2) {
  stroke-width: 3.6;
  animation-duration: 17s;
  opacity: 0.92;
}

.flow-group--one path:nth-child(3) {
  stroke-width: 2.1;
  opacity: 0.85;
  animation-duration: 21s;
}

.flow-group--two path {
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 2.2;
  stroke-dasharray: 14 12;
  animation: flow-ref-move 16s linear infinite reverse;
}

.flow-circuit-lines path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 7 12;
  animation: flow-circuit-run 9s linear infinite;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

.ambient {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  z-index: -2;
}

.ambient--top {
  background: color-mix(in srgb, var(--highlight) 24%, transparent);
  top: -11rem;
  right: -9rem;
}

.ambient--bottom {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  bottom: -13rem;
  left: -10rem;
}

.glass {
  border: 1px solid rgba(168, 135, 58, 0.32);
  background: linear-gradient(
    150deg,
    rgba(10, 10, 10, 0.78),
    rgba(34, 34, 34, 0.72)
  );
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  border-radius: var(--radius);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 20;
  border-radius: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.brand {
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  position: relative;
  z-index: 22;
}

.brand-logo {
  width: auto;
  height: 78px;
  transform: translateY(3px);
  border-radius: 0;
  box-shadow: none;
  filter: brightness(1.08) saturate(1.05);
  display: block;
}

.site-nav {
  display: none;
  gap: 1rem;
  align-items: center;
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: color 220ms ease, transform 220ms ease, background-color 220ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0.18rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms ease;
}

.site-nav a:hover {
  color: #ffffff;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav a:last-child {
  color: #ffffff;
  padding: 0.46rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
}

.site-nav a:last-child::after {
  display: none;
}

.site-nav a:last-child:hover {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Desktop: on scroll keep only home icon in nav. */
@media (min-width: 760px) {
  .site-nav {
    transition: gap 220ms ease;
  }

  .brand {
    transition: opacity 220ms ease, transform 220ms ease, width 220ms ease;
  }

  body.nav-home-only .site-nav {
    gap: 0;
  }

  body.nav-home-only .brand {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    width: 0;
    overflow: hidden;
  }

  body.nav-home-only .site-nav a:not(:first-child) {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
    pointer-events: none;
    max-width: 0;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    border-width: 0;
    overflow: hidden;
  }

  body.nav-home-only .site-nav a:first-child {
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.14);
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: transparent;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 4.5rem;
  display: grid;
  gap: 1rem;
  align-items: start;
  justify-items: center;
}

.hero-copy {
  width: min(420px, 100%);
  padding: 0.4rem 0;
  margin-top: 0.7rem;
}

.hero-logo {
  width: clamp(72px, 8vw, 104px);
  margin: 0 auto 0.9rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--highlight) 30%, transparent);
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 20%, transparent);
}

.hero-eyebrow {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.8rem;
  color: var(--text-soft);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.08;
}

.hero-role {
  margin: 0.15rem auto 0;
  color: var(--text-soft);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
}


.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  width: 28px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--highlight) 45%, transparent);
  border-radius: 999px;
}

.hero-scroll::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--highlight);
  left: 50%;
  transform: translateX(-50%);
  top: 8px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  min-height: 2.85rem;
  padding: 0 1.15rem;
  font-weight: 600;
  transition: all 300ms ease;
}

.btn-outline {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--color-accent-light);
  background: rgba(168, 135, 58, 0.08);
  box-shadow: 0 0 24px rgba(168, 135, 58, 0.22);
}

.btn-solid {
  background: var(--color-dark);
  color: var(--color-base);
  border: 1px solid rgba(168, 135, 58, 0.32);
}

.btn-solid:hover {
  background: var(--color-dark-2);
}

.section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
  min-height: 90vh;
  display: grid;
  align-content: center;
  background: transparent;
}

.section-head {
  margin-bottom: 1.4rem;
}

/* Workflow morph section (photo reference style) */
.workflow-morph {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 120px 0;
  background: transparent;
  overflow: hidden;
}

.workflow-morph__container {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 2;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  padding: 2rem 1.2rem 1.3rem;
}

.workflow-morph__divider {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  margin-bottom: 14px;
}

.workflow-morph__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.workflow-morph__headline {
  flex: 0 1 34%;
}

.workflow-morph__preview {
  flex: 1 1 auto;
  align-self: stretch;
  min-height: 260px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--highlight) 26%, transparent);
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-dark) 55%, #000 45%);
}

.workflow-morph__preview-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: saturate(0.95) contrast(1.08) brightness(0.9);
  transition: opacity 260ms ease, transform 340ms ease;
}

.workflow-morph__preview.is-switching .workflow-morph__preview-img {
  opacity: 0.2;
}

.workflow-morph__tag {
  margin: 0 0 0.8rem;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--highlight) 70%, #ffffff 30%);
}

.workflow-morph__word {
  margin: 0;
  min-height: 60px;
  line-height: 1;
  font-size: clamp(2.2rem, 5.2vw, 3.3rem);
  font-weight: 800;
  color: #ffffff;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.workflow-morph__word span {
  display: inline-block;
  transition: opacity 0.15s, transform 0.15s;
}

.workflow-morph__word .wf-word-token {
  white-space: nowrap;
}

.workflow-morph__sub {
  margin: 0.8rem 0 0;
  max-width: 40ch;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(206, 173, 101, 0.95);
  transition: opacity 0.3s;
}

.workflow-morph__steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 186px;
}

.workflow-step {
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid rgba(168, 135, 58, 0.24);
  background: rgba(12, 12, 12, 0.62);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.workflow-step:hover {
  background: color-mix(in srgb, var(--highlight) 10%, transparent);
  border-color: color-mix(in srgb, var(--highlight) 34%, transparent);
}

.workflow-step.active {
  background: color-mix(in srgb, var(--highlight) 16%, transparent);
  border-color: color-mix(in srgb, var(--highlight) 52%, transparent);
}

.workflow-step__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  transition: background 0.2s;
  flex-shrink: 0;
}

.workflow-step.active .workflow-step__dot {
  background: var(--highlight);
  box-shadow: 0 0 10px color-mix(in srgb, var(--highlight) 55%, transparent);
}

.workflow-step__text {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

.workflow-step.active .workflow-step__text {
  color: #ffffff;
}

.workflow-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.workflow-photo-card {
  position: relative;
  height: 152px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  background: color-mix(in srgb, #000000 26%, var(--surface-dark) 74%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--highlight) 6%, transparent);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.workflow-photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(
      120deg,
      color-mix(in srgb, var(--highlight) 14%, transparent) 0%,
      transparent 28%
    ),
    repeating-linear-gradient(
      90deg,
      color-mix(in srgb, var(--text) 8%, transparent) 0px,
      color-mix(in srgb, var(--text) 8%, transparent) 1px,
      transparent 1px,
      transparent 22px
    );
  opacity: 0.22;
  transition: opacity 0.3s ease;
}

.workflow-photo-card::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-top: 1px solid color-mix(in srgb, var(--highlight) 48%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--highlight) 48%, transparent);
  border-radius: 0 8px 0 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.workflow-photo-card:hover {
  border-color: color-mix(in srgb, var(--highlight) 35%, transparent);
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--highlight) 16%, transparent), 0 10px 22px rgba(0, 0, 0, 0.24);
}

.workflow-photo-card.active {
  border-color: color-mix(in srgb, var(--highlight) 56%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--highlight) 24%, transparent), 0 12px 28px rgba(0, 0, 0, 0.28);
}

.workflow-photo-card:hover::before,
.workflow-photo-card.active::before {
  opacity: 0.34;
}

.workflow-photo-card:hover::after,
.workflow-photo-card.active::after {
  opacity: 0.95;
  transform: scale(1.04);
}

.workflow-photo-card__slider,
.workflow-photo-card__img {
  position: absolute;
  inset: 0;
}

.workflow-photo-card__img {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateX(60px) scale(1.08);
  transition: opacity 0.5s cubic-bezier(0.77, 0, 0.18, 1), transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}

.workflow-photo-card.active .workflow-photo-card__img {
  opacity: 1;
  transform: translateX(0) scale(1.08);
}

.workflow-photo-card:not(.active) .workflow-photo-card__img.was-active {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.4s, transform 0.4s;
}

.workflow-photo-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.14) 60%, transparent 100%);
}

.workflow-photo-card.active .workflow-photo-card__overlay {
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--surface-mid) 85%, #000 15%) 0%,
    color-mix(in srgb, var(--surface-mid) 28%, transparent) 60%,
    transparent 100%
  );
}

.workflow-photo-card__body {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  padding: 10px;
  z-index: 4;
  text-align: center;
}

.workflow-photo-card__watermark {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.workflow-photo-card__watermark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.2;
  filter: grayscale(1) brightness(1.65) contrast(1.05);
  transform: scale(1.28);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.workflow-photo-card:hover .workflow-photo-card__watermark img,
.workflow-photo-card.active .workflow-photo-card__watermark img {
  opacity: 0.28;
  transform: scale(1.34);
}

.workflow-photo-card__icon {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 0.95rem;
  line-height: 1;
  color: color-mix(in srgb, var(--text) 88%, transparent);
  background: color-mix(in srgb, var(--surface-dark) 44%, transparent);
  border: 1px solid color-mix(in srgb, var(--highlight) 28%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 7%, transparent);
  z-index: 4;
  opacity: 0.9;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: none;
}

.workflow-photo-card__num {
  margin: 0 0 0.25rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: rgba(206, 173, 101, 0.95);
  transition: color 0.3s;
}

.workflow-photo-card.active .workflow-photo-card__num {
  color: rgba(206, 173, 101, 0.95);
}

.workflow-photo-card__title {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 700;
  color: #ffffff;
}

.workflow-photo-card__desc {
  display: none;
}

.workflow-photo-card.active .workflow-photo-card__desc {
  display: none;
}

.workflow-photo-card:hover .workflow-photo-card__icon,
.workflow-photo-card.active .workflow-photo-card__icon {
  transform: translateY(-1px) scale(1.04);
  border-color: color-mix(in srgb, var(--highlight) 58%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--highlight) 24%, transparent);
}

.workflow-morph__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.workflow-morph__orb--teal {
  width: 420px;
  height: 420px;
  top: -150px;
  left: -90px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
}

.workflow-morph__orb--blue {
  width: 300px;
  height: 300px;
  right: -36px;
  bottom: -64px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
}

.eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-soft);
  font-size: 0.78rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.8vw, 2.8rem);
  line-height: 1.2;
}

p {
  color: var(--text-soft);
}

.services-grid {
  display: grid;
  gap: 0.9rem;
}

#services {
  min-height: auto;
  background: transparent;
}

#about {
  background: transparent;
}

#contact {
  background: transparent;
}

.services-carousel {
  width: 100%;
  display: block;
}

.services-track {
  width: 100%;
  height: auto;
  overflow: visible;
}

.services-track-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  gap: 1rem;
}

.services-track .service-card {
  position: relative;
  width: 100%;
  margin: 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateY(0);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, filter 260ms ease;
  box-sizing: border-box;
  isolation: isolate;
  animation: service-float-orbit 5.6s ease-in-out infinite;
  border: 1px solid rgba(168, 135, 58, 0.32);
  background: linear-gradient(
    160deg,
    rgba(10, 10, 10, 0.92),
    rgba(22, 20, 16, 0.88)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(0, 0, 0, 0.42);
}

.services-track .service-card.is-active {
  border-color: rgba(206, 173, 101, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 44px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(168, 135, 58, 0.22);
}

.services-track .service-card.is-reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(4px);
}

.service-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  left: var(--mx, 50%);
  top: var(--my, 40%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 240ms ease;
  background: radial-gradient(circle, rgba(168, 135, 58, 0.2), rgba(168, 135, 58, 0) 68%);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: linear-gradient(
    115deg,
    rgba(168, 135, 58, 0) 30%,
    rgba(168, 135, 58, 0.35) 48%,
    rgba(168, 135, 58, 0) 66%
  );
  transform: translateX(-130%);
}

.service-card:hover::before,
.service-card.is-active::before {
  opacity: 1;
}

.service-card:hover::after,
.service-card.is-active::after {
  opacity: 1;
  animation: service-shine-sweep 1.05s ease;
}

.service-index {
  display: inline-flex;
  width: fit-content;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  color: #f9faff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(8, 10, 16, 0.42);
  backdrop-filter: blur(5px);
}

.carousel-btn {
  display: none;
}

.carousel-dots {
  display: none;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(223, 255, 233, 0.26);
}

.carousel-dots .dot.is-active {
  background: var(--highlight);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 45%, transparent);
}

.service-card {
  min-height: 0;
  padding: 0;
  position: relative;
}

.service-card > *:not(.service-image) {
  position: static;
  z-index: 1;
}

.service-card:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  border-color: rgba(206, 173, 101, 0.72);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 26px 48px rgba(0, 0, 0, 0.56),
    0 0 30px rgba(168, 135, 58, 0.26);
}

.service-card:nth-child(2) {
  animation-delay: 0.6s;
}

.service-card:nth-child(3) {
  animation-delay: 1.2s;
}

.service-card:nth-child(4) {
  animation-delay: 1.8s;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #f7f2e6;
  text-shadow: none;
}

.service-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(245, 237, 222, 0.84);
  max-width: none;
  text-shadow: none;
}

.service-image {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  margin-top: 0.2rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  z-index: 1;
  transform: scale(1.01);
  filter: saturate(0.92) contrast(1.04);
  border-radius: 10px;
  border: 1px solid rgba(168, 135, 58, 0.3);
  transition: transform 380ms ease, filter 320ms ease;
}

.service-card:hover .service-image,
.service-card.is-active .service-image {
  transform: scale(1.055);
  filter: saturate(1.03) contrast(1.08);
}

.service-card:hover,
.service-card:focus-within {
  animation-play-state: paused;
}

.services-track-inner.is-paused .service-card {
  animation-play-state: paused;
}

.about {
  display: grid;
  gap: 1rem;
  position: relative;
  background: transparent;
}

.about-text {
  position: relative;
  padding: 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 8, 0.58);
  overflow: hidden;
  perspective: 1400px;
  transform-style: preserve-3d;
}

/* Previous overlay effect disabled */
.about-text::before,
.about-text::after {
  display: none;
}

.about-text > * {
  position: relative;
  z-index: 2;
}

.about-book-layout {
  position: relative;
  margin: 0.5rem auto 1rem;
  width: min(980px, 100%);
}

.about-book-layout__shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -18px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.08) 72%, transparent 100%);
  filter: blur(6px);
  z-index: 0;
}

.about-book-layout__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  perspective: 1600px;
  transform-style: preserve-3d;
  z-index: 2;
}

.about-book-layout__spine {
  position: absolute;
  left: 50%;
  top: 4%;
  bottom: 4%;
  width: 18px;
  transform: translateX(-50%);
  border-radius: 9px;
  background: linear-gradient(180deg, #141414 0%, #232323 100%);
  box-shadow: inset 0 0 0 1px rgba(206, 173, 101, 0.22);
  z-index: 3;
}

.about-page {
  min-height: 300px;
  padding: 1.2rem 1.1rem;
  background: #ffffff;
  border: 1px solid rgba(15, 15, 15, 0.14);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.34);
  position: relative;
}

.about-page--left {
  border-radius: 16px 6px 6px 16px;
  transform-origin: right center;
  transform: perspective(1600px) rotateY(84deg) translateX(10px);
  transition: transform 820ms cubic-bezier(0.22, 0.75, 0.25, 1);
}

.about-page--right {
  border-radius: 6px 16px 16px 6px;
  transform-origin: left center;
  transform: perspective(1600px) rotateY(-84deg) translateX(-10px);
  transition: transform 820ms cubic-bezier(0.22, 0.75, 0.25, 1);
}

.about-text.is-open .about-page--left {
  transform: rotateY(18deg);
}

.about-text.is-open .about-page--right {
  transform: rotateY(-18deg);
}

.about-book-layout.is-flipped .about-page--left {
  transform: rotateY(52deg);
}

.about-book-layout.is-flipped .about-page--right {
  transform: rotateY(-52deg);
}

.about-page__profile {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(20, 20, 20, 0.18);
}

.about-page__persona {
  margin: 0.75rem 0 0;
  padding: 0;
}

.about-page__persona figcaption {
  margin-top: 0.45rem;
  color: #2a2a2a;
  font-size: 0.84rem;
  line-height: 1.45;
}

.about-page--right h2 {
  margin: 0 0 0.7rem;
  color: #101010;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.about-page--right p {
  margin: 0;
  color: #111111;
  font-size: 1rem;
  line-height: 1.6;
}

.about-page--left p {
  color: #111111;
}

.about-page__title-script {
  margin: 0 0 0.7rem;
  color: #000000;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  line-height: 1.05;
}

.about-page .about-tech-title {
  margin: 0 0 0.65rem;
  color: #000000;
  font-weight: 700;
}

.about-page .about-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0;
}

.about-page .about-tech-item {
  margin: 0;
  display: flex;
  align-items: center;
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: #1a1a1a;
  animation: none;
  box-shadow: none;
  font-size: 0.82rem;
  gap: 0.35rem;
}

.about-page .about-tech-item img {
  width: 18px;
  height: 18px;
  transform: none;
  filter: none;
}

/* Keep tech logos stable in the book section on hover. */
.about-page .about-tech-item:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.94);
  color: #111111;
  box-shadow: none;
  z-index: auto;
}

.about-page .about-tech-item:hover img {
  transform: none;
  filter: none;
}

.about-book-layout__flip-btn {
  margin-top: 1rem;
  border: 1px solid rgba(20, 20, 20, 0.22);
  background: linear-gradient(130deg, #f7f4ec 0%, #eee6d6 100%);
  color: #111;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.about-book-layout__flip-btn:hover {
  background: linear-gradient(130deg, #ffffff 0%, #f0ece2 100%);
}

#about .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

#about .about-typewriter--title {
  color: #ffffff;
}

#about .about-typewriter {
  color: rgba(245, 245, 245, 0.9);
}

.about::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 135, 58, 0.16), transparent 70%);
  right: 2%;
  top: 10%;
  filter: blur(16px);
  pointer-events: none;
  z-index: -1;
}

.about-satisfaction {
  margin-top: 1.1rem;
  padding: 1.1rem;
  max-width: none;
  width: 100%;
  border: 1px solid var(--color-border);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.about-satisfaction-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.55rem;
}

.about-satisfaction-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.about-satisfaction-value {
  color: var(--color-accent);
  font-size: 1.1rem;
  font-weight: 700;
}

.about-satisfaction-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-dark) 12%, transparent);
  overflow: hidden;
  position: relative;
  cursor: default;
}

.about-satisfaction-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  box-shadow: 0 0 12px rgba(168, 135, 58, 0.34);
  transition: width 180ms ease;
}

.about-satisfaction-track::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f2eadb;
  box-shadow: 0 0 0 4px rgba(168, 135, 58, 0.22), 0 0 14px rgba(168, 135, 58, 0.45);
  left: calc(var(--satisfaction-progress, 100) * 1% - 9px);
  transition: left 180ms ease;
}

.about-satisfaction-note {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.about-tech {
  margin-top: 0.9rem;
  padding: 0;
  max-width: none;
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.about-tech-title {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: rgba(206, 173, 101, 0.95);
}

.about-tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  align-items: flex-start;
  overflow: visible;
  padding: 0.35rem 0.15rem;
}

.about-tech-item {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  width: auto;
  padding: 0.46rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--highlight) 20%, transparent);
  background: color-mix(in srgb, var(--surface-dark) 42%, transparent);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.98rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 999px;
  position: relative;
  z-index: 1;
  margin-top: -0.15rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: transform 220ms ease, color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
  will-change: transform;
  animation: tech-drift var(--float-duration, 5.8s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

.about-tech-item img {
  width: 34px;
  height: 34px;
  display: block;
  opacity: 0.96;
  transition: transform 220ms ease, filter 220ms ease;
}

.about-tech-item:hover {
  transform: translateY(-4px) scale(1.05);
  color: #ffffff;
  background: color-mix(in srgb, var(--highlight) 14%, transparent);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.26);
  z-index: 5;
}

.about-tech-item:hover img {
  transform: scale(1.14);
  filter: drop-shadow(0 0 10px rgba(168, 135, 58, 0.45));
}

.about-tech-item:nth-child(3n + 1) {
  --drift-x: 10px;
  --drift-y: -8px;
  --drift-r: 1.2deg;
  --float-duration: 6.5s;
  --float-delay: -0.8s;
}

.about-tech-item:nth-child(3n + 2) {
  --drift-x: -12px;
  --drift-y: 7px;
  --drift-r: -1.3deg;
  --float-duration: 5.9s;
  --float-delay: -2.2s;
  margin-left: -0.4rem;
}

.about-tech-item:nth-child(3n) {
  --drift-x: 8px;
  --drift-y: 9px;
  --drift-r: 0.8deg;
  --float-duration: 6.9s;
  --float-delay: -1.4s;
  margin-left: -0.25rem;
}

.about-typewriter {
  position: relative;
  min-height: 5.4em;
}

.about-typewriter--title {
  min-height: 1.3em;
}

.about-typewriter::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 6px;
  background: color-mix(in srgb, var(--highlight) 76%, #fff 24%);
  vertical-align: -0.08em;
  animation: typing-caret 0.7s steps(1) infinite;
}

.about-typewriter.is-done::after {
  opacity: 0.5;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0.9rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  width: 2px;
  height: 100%;
  background: color-mix(in srgb, var(--text) 12%, transparent);
}

.timeline-progress {
  position: absolute;
  left: 18px;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(var(--accent), var(--highlight));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 40%, transparent);
}

.timeline-step {
  position: relative;
  margin-left: 2rem;
  padding: 1rem;
}

.dot {
  position: absolute;
  left: -2rem;
  top: 1.2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 55%, transparent);
}

.timeline-step h3 {
  margin: 0 0 0.2rem;
}

#process {
  min-height: 85vh;
}

.automations-partner-section {
  min-height: auto;
  padding-top: 5.4rem;
  padding-bottom: 5.6rem;
}

.automations-partner {
  position: relative;
  padding: 2rem 1.3rem;
  border: 1px solid rgba(206, 173, 101, 0.35);
  background: linear-gradient(
    150deg,
    rgba(10, 10, 10, 0.88),
    rgba(24, 22, 17, 0.84)
  );
  overflow: hidden;
}

.automations-partner::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  top: -190px;
  right: -130px;
  background: radial-gradient(circle, rgba(206, 173, 101, 0.24), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.automations-partner__head {
  position: relative;
  z-index: 1;
  max-width: 78ch;
}

.automations-partner__lead {
  margin: 0.95rem 0 0;
  color: rgba(245, 237, 222, 0.86);
  font-size: 1rem;
}

.automations-partner__lead a {
  color: var(--highlight);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--highlight) 65%, transparent);
}

.automations-partner__lead a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.52);
}

.automations-partner__grid {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.automations-feature {
  position: relative;
  border: 1px solid rgba(168, 135, 58, 0.28);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(8, 8, 8, 0.5);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(850px) rotateX(var(--ax, 0deg)) rotateY(var(--ay, 0deg)) translateY(0);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.automations-feature::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    120deg,
    rgba(206, 173, 101, 0) 28%,
    rgba(206, 173, 101, 0.28) 50%,
    rgba(206, 173, 101, 0) 72%
  );
  transform: translateX(-130%);
}

.automations-feature:hover {
  transform: perspective(850px) rotateX(var(--ax, 0deg)) rotateY(var(--ay, 0deg)) translateY(-5px);
  border-color: rgba(206, 173, 101, 0.55);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
  filter: brightness(1.04);
}

.automations-feature:hover::after {
  opacity: 1;
  animation: service-shine-sweep 1.05s ease;
}

.automations-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(206, 173, 101, 0.6);
  color: #f7f2e6;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.72rem;
  background: rgba(206, 173, 101, 0.12);
  box-shadow: 0 0 0 rgba(206, 173, 101, 0);
  animation: automations-icon-pulse 2.9s ease-in-out infinite;
}

.automations-feature h3 {
  margin: 0 0 0.45rem;
  color: #ffffff;
  font-size: 1.03rem;
  line-height: 1.3;
}

.automations-feature p {
  margin: 0;
  color: rgba(245, 237, 222, 0.78);
  font-size: 0.94rem;
}

.automations-partner__flow {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.automations-step {
  position: relative;
  border-radius: 10px;
  border: 1px dashed rgba(206, 173, 101, 0.34);
  background: rgba(6, 6, 6, 0.44);
  padding: 0.9rem;
  transform-style: preserve-3d;
  transform: perspective(850px) rotateX(var(--sx, 0deg)) rotateY(var(--sy, 0deg)) translateY(0);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  overflow: hidden;
  animation: automations-step-breathe 4.8s ease-in-out infinite;
}

.automations-step::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(206, 173, 101, 0) 0%,
    rgba(206, 173, 101, 0.88) 50%,
    rgba(206, 173, 101, 0) 100%
  );
  transform: translateX(-100%);
  opacity: 0.8;
}

.automations-step:hover {
  transform: perspective(850px) rotateX(var(--sx, 0deg)) rotateY(var(--sy, 0deg)) translateY(-4px);
  border-color: rgba(206, 173, 101, 0.58);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.26);
  animation-play-state: paused;
}

.automations-step:hover::before {
  animation: automations-step-scan 1.25s ease;
}

.automations-step:nth-child(2) {
  animation-delay: -1.3s;
}

.automations-step:nth-child(3) {
  animation-delay: -2.6s;
}

.automations-step__kicker {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.68rem;
  color: rgba(206, 173, 101, 0.92);
  transition: letter-spacing 220ms ease, color 220ms ease, transform 220ms ease;
}

.automations-step:hover .automations-step__kicker {
  letter-spacing: 0.14em;
  color: rgba(246, 229, 186, 0.98);
  transform: translateX(2px);
}

.automations-step h4 {
  margin: 0 0 0.24rem;
  color: #f8f6f2;
  font-size: 0.97rem;
}

.automations-step p {
  margin: 0;
  color: rgba(245, 237, 222, 0.72);
  font-size: 0.88rem;
  line-height: 1.5;
}

.it-infra-section {
  min-height: auto;
  padding-top: 5.1rem;
  padding-bottom: 5.6rem;
}

.it-infra-panel {
  position: relative;
  padding: 2rem 1.25rem;
  border: 1px solid rgba(206, 173, 101, 0.3);
  background: linear-gradient(
    155deg,
    rgba(9, 9, 9, 0.9),
    rgba(17, 18, 24, 0.86)
  );
  overflow: hidden;
}

.it-infra-panel::before {
  content: "";
  position: absolute;
  inset: auto -140px -160px auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 113, 206, 0.26), transparent 70%);
  pointer-events: none;
}

.it-infra-head {
  position: relative;
  z-index: 1;
  max-width: 72ch;
}

.it-infra-head p {
  margin: 0.8rem 0 0;
  color: rgba(238, 236, 231, 0.82);
}

.it-infra-layout {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.it-infra-hero-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(206, 173, 101, 0.36);
  min-height: 430px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

.it-infra-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 500ms ease, filter 350ms ease;
  filter: saturate(0.94) contrast(1.05);
}

.it-infra-hero-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.02) contrast(1.08);
}

.it-infra-hero-card__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem;
  background: linear-gradient(
    to top,
    rgba(5, 5, 8, 0.9) 0%,
    rgba(5, 5, 8, 0.66) 50%,
    rgba(5, 5, 8, 0.05) 100%
  );
}

.it-infra-hero-card__kicker {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: rgba(206, 173, 101, 0.95);
}

.it-infra-hero-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

.it-infra-hero-card p {
  margin: 0.45rem 0 0;
  color: rgba(242, 239, 232, 0.84);
}

.it-infra-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.it-infra-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(206, 173, 101, 0.3);
  background: rgba(5, 5, 7, 0.5);
  transition: transform 260ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.it-infra-card:hover {
  transform: translateY(-4px);
  border-color: rgba(206, 173, 101, 0.56);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.3);
}

.it-infra-card img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.it-infra-card__body {
  padding: 0.85rem;
}

.it-infra-card__body h4 {
  margin: 0 0 0.3rem;
  color: #ffffff;
  font-size: 1.02rem;
}

.it-infra-card__body p {
  margin: 0;
  color: rgba(242, 239, 232, 0.76);
  font-size: 0.92rem;
}

.automations-brand {
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.automations-brand__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.62rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(206, 173, 101, 0.42);
  background: rgba(8, 8, 8, 0.52);
}

.automations-brand__chip img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.automations-brand__label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(206, 173, 101, 0.92);
}

.automations-brand__name {
  margin: 0.1rem 0 0;
  color: rgba(245, 237, 222, 0.9);
  font-size: 0.86rem;
}

.automations-shots {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  position: relative;
  z-index: 1;
}

.automations-shot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(206, 173, 101, 0.38);
  background: rgba(0, 0, 0, 0.42);
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
  animation: automations-shot-float 6.8s ease-in-out infinite;
  transition: transform 280ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.automations-shot:nth-child(2) {
  animation-delay: -2.1s;
}

.automations-shot:nth-child(3) {
  animation-delay: -4.2s;
}

.automations-shot:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(206, 173, 101, 0.62);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.38);
}

.automations-shot img,
.automations-shot video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  background: radial-gradient(circle at 50% 20%, rgba(20, 20, 20, 0.55), rgba(6, 6, 6, 0.92));
  transform: scale(1.01);
  transition: transform 420ms ease, filter 320ms ease;
}

.automations-shot video {
  outline: none;
}

.automations-shot:hover img,
.automations-shot:hover video {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.06);
}

.process-showcase {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
}

.process-tile {
  position: relative;
  padding: 1.15rem;
  display: grid;
  gap: 0.65rem;
  align-content: start;
  border: 1px solid color-mix(in srgb, var(--highlight) 30%, transparent);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 280ms ease, border-color 260ms ease, box-shadow 260ms ease, filter 260ms ease;
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--surface-mid) 42%, transparent),
    color-mix(in srgb, var(--surface-dark) 88%, transparent)
  );
}

.process-tile::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -15%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 135, 58, 0.2), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: transform 420ms ease, opacity 320ms ease;
}

.process-tile:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--highlight) 58%, transparent);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  filter: brightness(1.06);
}

.process-tile:hover::before {
  transform: translate3d(20px, 10px, 0) scale(1.1);
  opacity: 0.85;
}

.process-tile.is-active {
  border-color: color-mix(in srgb, var(--highlight) 62%, transparent);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.38);
}

.process-tile-kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--highlight) 80%, #fff 20%);
}

.process-tile h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
}

.process-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.process-tile h3 {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.process-tile img {
  margin-top: 0.2rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--highlight) 24%, transparent);
  transform: scale(1.01);
  transition: transform 460ms ease, filter 380ms ease;
  will-change: transform;
}

.process-tile:hover img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.portfolio-grid {
  display: grid;
  gap: 1rem;
}

.planet-section {
  position: relative;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.portfolio-card img {
  width: 100%;
  height: clamp(200px, 30vw, 280px);
  object-fit: cover;
  transition: transform 520ms ease;
}

.portfolio-overlay {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--bg) 80%, transparent),
    transparent
  );
  padding: 1rem;
  transform: translateY(24px);
  opacity: 0;
  transition: all 420ms ease;
}

.portfolio-link {
  display: inline-flex;
  margin-top: 0.55rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--highlight) 60%, transparent);
  width: fit-content;
}

.portfolio-card:hover img {
  transform: scale(1.06);
}

.portfolio-card:hover .portfolio-overlay {
  transform: translateY(0);
  opacity: 1;
}

.contact-card {
  position: relative;
  padding: 1.8rem;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(168, 135, 58, 0.28);
}

.contact-card-title {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
}

.contact-card::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--highlight) 20%, transparent);
  filter: blur(46px);
  top: -80px;
  right: 18%;
  z-index: -1;
}

.contact-form__status {
  grid-column: 1 / -1;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.contact-form__status[data-variant="success"] {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.contact-form__status[data-variant="error"] {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.contact-field--hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.contact-field {
  display: grid;
  gap: 0.35rem;
}

.contact-field span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(168, 135, 58, 0.28);
  background: rgba(10, 10, 10, 0.58);
  color: #ffffff;
  padding: 0.72rem 0.8rem;
  font: inherit;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(168, 135, 58, 0.15);
}

.contact-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-field--full {
  grid-column: 1 / -1;
}

.contact-submit {
  width: fit-content;
}

.contact-consent__row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.contact-consent__row input[type="checkbox"] {
  width: 1rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0;
  margin: 0.22rem 0 0;
  border-radius: 4px;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}

.contact-consent__row a {
  color: var(--color-accent);
  text-decoration: none;
}

.contact-consent__row a:hover {
  color: var(--color-accent-light);
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--color-dark);
}

.site-footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.3fr 1fr;
  padding: 2rem 0 1.4rem;
}

.footer-brand {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
}

.footer-brand-logo {
  height: 84px;
  width: auto;
  filter: brightness(1.08) saturate(1.05);
  display: block;
}

.footer-caption {
  margin: 0.45rem 0 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  line-height: 1.45;
}

.footer-title {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: grid;
  gap: 0.36rem;
}

.footer-service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.footer-links a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-links span {
  color: rgba(255, 255, 255, 0.5);
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-icon {
  display: inline-flex;
  width: 1rem;
  justify-content: center;
  opacity: 0.9;
}

.footer-links a:hover {
  color: var(--color-accent-light);
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-bottom p {
  margin: 0;
  padding: 0.8rem 0 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.84rem;
}

.site-footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom-links {
  display: inline-flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.82rem;
}

.footer-bottom-links a:hover {
  color: var(--color-accent-light);
}

.cookie-reset-link {
  border: 1px solid rgba(168, 135, 58, 0.45);
  background: rgba(168, 135, 58, 0.12);
  color: var(--color-accent);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.cookie-reset-link:hover {
  color: var(--color-accent-light);
  border-color: rgba(206, 173, 101, 0.65);
}

.cookie-banner-wrap {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2000;
  display: flex;
  justify-content: center;
}

.cookie-banner {
  width: min(760px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(168, 135, 58, 0.4);
  background: linear-gradient(150deg, rgba(10, 10, 10, 0.95), rgba(28, 24, 18, 0.96));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  padding: 1rem 1rem 0.9rem;
}

.cookie-banner__title {
  margin: 0;
  color: #ffffff;
  font-weight: 700;
}

.cookie-banner__text {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.cookie-btn {
  border-radius: 999px;
  min-height: 2.4rem;
  padding: 0 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.cookie-btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #0f0f0f;
}

.cookie-btn--primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
}

.cookie-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}

.cookie-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cookie-banner__link {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--color-accent);
  font-size: 0.86rem;
  text-decoration: none;
}

.cookie-banner__link:hover {
  color: var(--color-accent-light);
}

/* Used by JS for reveal effects. */
.reveal-hidden {
  opacity: 0;
}

/* Clip mask for text reveal animation. */
.mask-reveal {
  clip-path: inset(100% 0 0 0);
}

@media (min-width: 760px) {
  .site-nav {
    display: flex;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 759px) {
  .about-book-layout__inner {
    grid-template-columns: 1fr;
  }

  .about-book-layout__spine {
    display: none;
  }

  .about-page--left,
  .about-page--right,
  .about-text.is-open .about-page--left,
  .about-text.is-open .about-page--right,
  .about-book-layout.is-flipped .about-page--left,
  .about-book-layout.is-flipped .about-page--right {
    transform: none;
  }

  .about-page .about-tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-page--left {
    border-radius: 16px 16px 6px 6px;
  }

  .about-page--right {
    border-radius: 6px 6px 16px 16px;
  }

  .container {
    width: calc(100% - 1rem);
  }

  .section {
    padding: 4.2rem 0;
    min-height: auto;
  }

  .site-header {
    top: 0;
    width: 100%;
  }

  .header-row {
    min-height: 4.4rem;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  .brand-logo {
    height: 62px;
    transform: translateY(2px);
  }

  .hero {
    min-height: 84vh;
  }

  #process {
    min-height: auto;
  }

  .hero-content {
    text-align: center;
    justify-items: center;
  }

  .hero-logo {
    margin-inline: auto;
  }

  .workflow-morph {
    padding: 88px 0;
  }

  .workflow-morph__top {
    flex-direction: column;
    gap: 18px;
  }

  .workflow-morph__word {
    font-size: clamp(1.95rem, 9vw, 2.35rem);
    line-height: 1.06;
  }

  .workflow-photo-card__title {
    font-size: 1rem;
    line-height: 1.2;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .workflow-morph__preview {
    width: 100%;
    min-height: 210px;
    position: relative;
    flex-basis: auto;
  }

  .workflow-morph__preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: inherit;
    background-size: cover;
    background-position: center;
    opacity: 1 !important;
    transform: none !important;
  }

  .workflow-morph__steps {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Mobile: evita card "vuote" mostrando l'immagine su tutte le card workflow. */
  .workflow-photo-card__img {
    opacity: 1 !important;
    transform: none !important;
  }

  .workflow-photo-card__img.was-active {
    opacity: 1 !important;
    transform: none !important;
  }

  .services-carousel {
    display: block;
  }

  .carousel-btn {
    display: none;
  }

  .services-track {
    height: auto;
    display: block;
  }

  .services-track-inner {
    grid-template-columns: 1fr;
  }

  .services-track .service-card {
    position: relative;
    inset: auto;
    width: 100%;
    margin: 0;
    min-height: 250px;
    opacity: 1 !important;
    transform: none !important;
    z-index: auto !important;
  }

  .service-card::before {
    display: none;
  }

  .service-card::after {
    display: none;
  }

  .services-track .service-card {
    animation: none;
  }

  .carousel-dots {
    display: none;
  }

  .hero-role {
    margin-inline: auto;
  }

  .hero-summary {
    margin-inline: auto;
  }

  .process-showcase {
    grid-template-columns: 1fr;
  }

  .automations-partner {
    padding: 1.1rem 0.95rem;
  }

  .automations-partner__grid,
  .automations-shots,
  .automations-partner__flow,
  .it-infra-layout {
    grid-template-columns: 1fr;
  }

  .automations-feature,
  .automations-shot,
  .automations-step {
    padding: 0.88rem;
  }

  .it-infra-panel {
    padding: 1.1rem 0.95rem;
  }

  .it-infra-hero-card {
    min-height: 300px;
  }

  .it-infra-card {
    grid-template-columns: 1fr;
  }

  .it-infra-card img {
    min-height: 170px;
  }

  .automations-shot {
    padding: 0;
  }

  .automations-feature,
  .automations-step {
    transform: none !important;
    animation: none;
  }

  .automations-feature::after {
    display: none;
  }

  .process-tile {
    padding: 0.9rem;
    gap: 0.5rem;
  }

  .process-tile h3 {
    font-size: 1.25rem;
  }

  .process-tile img {
    aspect-ratio: 16 / 10;
  }

  .about::before {
    display: none;
  }

  .about-typewriter {
    min-height: auto;
  }

  .about-typewriter--title {
    min-height: auto;
  }

  .about-satisfaction {
    padding: 0.9rem;
  }

  .about-satisfaction-note {
    display: none;
  }

  .about-tech-grid {
    gap: 0.45rem;
    padding: 0.2rem 0;
  }

  .about-tech-item {
    font-size: 0.86rem;
    gap: 0.45rem;
    padding: 0.34rem 0.5rem;
    white-space: nowrap;
    margin-left: 0;
    margin-top: 0;
  }

  .about-tech-item img {
    width: 24px;
    height: 24px;
  }

  .contact-card {
    padding: 1.05rem;
  }

  .contact-card-title {
    font-size: 1.02rem;
  }

  .contact-field input,
  .contact-field select,
  .contact-field textarea {
    padding: 0.64rem 0.68rem;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.4rem 0 1rem;
  }

  .footer-brand-logo {
    height: 60px;
  }

  .footer-caption {
    font-size: 0.82rem;
  }

  .site-footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .site-footer-bottom p {
    padding: 0.6rem 0 0.3rem;
  }

  .footer-bottom-links {
    gap: 0.7rem;
  }

  .cookie-banner-wrap {
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.55rem;
  }

  .cookie-banner {
    padding: 0.85rem;
  }

  .cookie-banner__text {
    font-size: 0.88rem;
  }

}

@media (max-width: 479px) {
  .workflow-morph__steps,
  .workflow-cards {
    grid-template-columns: 1fr;
  }
}

@keyframes scroll-dot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 22px);
  }
}

@keyframes flow-ref-move {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -900;
  }
}

@keyframes flow-circuit-run {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -160;
  }
}

@keyframes typing-caret {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

@keyframes tech-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(var(--drift-x, 8px), var(--drift-y, -8px), 0) rotate(var(--drift-r, 1deg));
  }
}

@keyframes service-float-orbit {
  0%,
  100% {
    transform: perspective(900px) translate3d(0, 0, 0) rotateZ(0deg);
  }
  25% {
    transform: perspective(900px) translate3d(18px, -22px, 0) rotateZ(1.1deg);
  }
  50% {
    transform: perspective(900px) translate3d(0, -36px, 0) rotateZ(0deg);
  }
  75% {
    transform: perspective(900px) translate3d(-18px, -22px, 0) rotateZ(-1.1deg);
  }
}

@keyframes service-shine-sweep {
  from {
    transform: translateX(-130%);
  }
  to {
    transform: translateX(130%);
  }
}

@keyframes automations-shot-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes automations-icon-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(206, 173, 101, 0);
  }
  50% {
    box-shadow: 0 0 14px rgba(206, 173, 101, 0.32);
  }
}

@keyframes automations-step-breathe {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(206, 173, 101, 0);
  }
  50% {
    box-shadow: 0 0 18px rgba(206, 173, 101, 0.14);
  }
}

@keyframes automations-step-scan {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}


@keyframes flow-ref-move {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -900;
  }
}

@keyframes flow-circuit-run {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -160;
  }
}

@keyframes typing-caret {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}


