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

:root {
  /* Skandiam brand palette — Brand Guidelines */
  --sk-flame-pea: #de5a42;
  --sk-fuchsia-blue: #9733c4;
  --sk-porsche: #ebb264;
  --sk-cranberry: #dd487a;
  --sk-dove-gray: #717171;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  color: #f4f2f8;
  background: #0a0a0c;
  overflow-x: hidden;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 1.5vmin, 1rem);
  padding: clamp(0.5rem, 1.5vmin, 1rem) clamp(1rem, 4vw, 2rem)
    clamp(0.65rem, 2vmin, 1.25rem);
  box-sizing: border-box;
}

.hero {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.8;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(0.25rem, 1vmin, 0.75rem) 0 0;
  text-align: center;
  gap: clamp(0.65rem, 2vmin, 1.5rem);
  min-height: 0;
  max-width: 100%;
}

.content__logo {
  width: min(100%, 340px);
  /* width: min(72vw, min(240px, 26vh), 320px); */
  height: auto;
  display: block;
  animation: logo-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    logo-float 6s ease-in-out 1.2s infinite;
  opacity: 0;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
}

.content__text {
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.5vmin, 1rem);
}

.content__headline {
  margin: 0;
  font-family: "Syne", "Outfit", sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.8vmin + 0.5rem, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.content__line {
  display: block;
}

.content__line--1 {
  opacity: 0;
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.content__line--2 {
  opacity: 0;
  margin-top: 0.35rem;
  background: linear-gradient(
    90deg,
    var(--sk-flame-pea),
    var(--sk-cranberry),
    var(--sk-fuchsia-blue),
    var(--sk-flame-pea)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards,
    gradient-shift 8s linear 1.5s infinite;
}

.content__sub {
  margin: 0;
  font-weight: 300;
  font-size: clamp(0.78rem, 1.6vmin + 0.45rem, 1rem);
  line-height: 1.5;
  color: rgba(244, 242, 248, 0.82);
  opacity: 0;
  animation: fade-blur-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards;
}

.content__sub::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin: clamp(0.5rem, 1.5vmin, 0.85rem) auto 0;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--sk-flame-pea),
    var(--sk-fuchsia-blue),
    transparent
  );
  animation: rule-grow 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.8s forwards;
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradient-shift {
  to {
    background-position: 200% center;
  }
}

@keyframes fade-blur-in {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes rule-grow {
  to {
    width: min(280px, 70%);
  }
}

/* ——— Services ——— */
.services {
  position: relative;
  flex: 0 1 auto;
  width: 100%;
  /* max-width: 72rem; */
  /* padding: clamp(0.15rem, 1vmin, 0.5rem) 0 clamp(0.15rem, 1vmin, 0.35rem); */
  margin-top: 100px;
  min-height: 0;
  /* background: linear-gradient(
    180deg,
    rgba(10, 10, 12, 0.15) 0%,
    rgba(10, 10, 12, 0.82) 35%,
    rgba(10, 10, 12, 0.9) 100%
  ); */
  /* backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem; */
}

.services__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.services__header {
  text-align: center;
  margin-bottom: clamp(0.45rem, 1.5vmin, 0.85rem);
  opacity: 0;
  transform: translateY(36px);
  filter: blur(8px);
}

.services__header.is-visible {
  animation: services-head-in 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.services__title {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 3.5vmin + 0.5rem, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.services__title-text {
  display: inline-block;
  background: linear-gradient(
    105deg,
    var(--sk-porsche) 0%,
    var(--sk-flame-pea) 28%,
    var(--sk-cranberry) 58%,
    var(--sk-fuchsia-blue) 100%
  );
  background-size: 180% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.services__header.is-visible .services__title-text {
  animation: services-title-shimmer 10s ease-in-out infinite;
}

.services__title-text::after {
  content: "";
  display: block;
  height: 2px;
  margin: clamp(0.3rem, 1vmin, 0.5rem) auto 0;
  width: 0;
  max-width: 6rem;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--sk-flame-pea),
    var(--sk-cranberry),
    var(--sk-fuchsia-blue)
  );
}

.services__header.is-visible .services__title-text::after {
  animation: services-rule-pop 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

.services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(0.45rem, 1.2vmin, 0.85rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

@media (max-width: 52rem) {
  .services__list {
    grid-template-columns: 1fr;
    gap: clamp(0.65rem, 2vw, 1rem);
  }

  .page {
    min-height: auto;
    justify-content: flex-start;
    padding-top: clamp(1rem, 4vw, 1.5rem);
    padding-bottom: clamp(1.5rem, 5vw, 2.5rem);
  }
}

@media (max-height: 680px) {
  .page {
    min-height: auto;
    justify-content: flex-start;
    padding-bottom: clamp(1rem, 3vw, 1.75rem);
  }
}

.service-card {
  position: relative;
  border-radius: 1.125rem;
  padding: 1px;
  isolation: isolate;
  opacity: 0;
  transform: translateY(52px) scale(0.97);
}

.service-card.is-visible {
  animation: service-card-in 1s cubic-bezier(0.22, 1, 0.36, 1) var(--svc-delay)
    forwards;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(222, 90, 66, 0.55),
    rgba(221, 72, 122, 0.45),
    rgba(151, 51, 196, 0.55),
    rgba(235, 178, 100, 0.4),
    rgba(222, 90, 66, 0.55)
  );
  background-size: 300% 300%;
  animation: service-border-flow 8s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.service-card__glow {
  position: absolute;
  inset: -40%;
  z-index: 0;
  opacity: 0.55;
  background: radial-gradient(
      circle at 28% 35%,
      rgba(222, 90, 66, 0.45),
      transparent 42%
    ),
    radial-gradient(
      circle at 72% 65%,
      rgba(151, 51, 196, 0.4),
      transparent 45%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(221, 72, 122, 0.25),
      transparent 50%
    );
  animation: service-glow-drift 16s ease-in-out infinite;
  animation-delay: calc(var(--svc-hue) * 0.02s);
  filter: blur(28px);
  pointer-events: none;
}

.service-card__body {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: clamp(0.65rem, 1.4vmin, 1rem) clamp(0.65rem, 1.6vmin, 1rem);
  border-radius: calc(1.125rem - 1px);
  background: linear-gradient(
    165deg,
    rgba(22, 22, 28, 0.92) 0%,
    rgba(14, 14, 18, 0.96) 100%
  );
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}

.service-card:hover .service-card__body {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(222, 90, 66, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.service-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  margin-bottom: clamp(0.35rem, 1vmin, 1rem);
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(244, 242, 248, 0.95);
  border-radius: 0.65rem;
  background: linear-gradient(
    145deg,
    var(--sk-flame-pea),
    var(--sk-cranberry) 55%,
    var(--sk-fuchsia-blue)
  );
  box-shadow: 0 8px 24px rgba(151, 51, 196, 0.35);
  animation: service-badge-pulse 3.2s ease-in-out infinite;
  animation-delay: calc(var(--svc-delay) + 0.6s);
}

.service-card__name {
  margin: 0 0 clamp(0.3rem, 0.8vmin, 1rem);
  font-family: "Syne", "Outfit", sans-serif;
  font-weight: 600;
  font-size: clamp(0.88rem, 1.4vmin + 0.45rem, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #faf8fc;
}

.service-card__text {
  margin: 0;
  font-family: "Source Sans 3", "Outfit", sans-serif;
  font-weight: 400;
  font-size: clamp(0.72rem, 1.1vmin + 0.4rem, 1rem);
  line-height: 1.45;
  color: rgba(244, 242, 248, 0.78);
}

@keyframes services-head-in {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes services-title-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes services-rule-pop {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 5.5rem;
    opacity: 1;
  }
}

@keyframes service-card-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes service-border-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes service-glow-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  40% {
    transform: translate(4%, -3%) scale(1.05);
    opacity: 0.65;
  }
  70% {
    transform: translate(-3%, 4%) scale(1.02);
    opacity: 0.55;
  }
}

@keyframes service-badge-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(151, 51, 196, 0.35);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 12px 32px rgba(222, 90, 66, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .content__logo,
  .content__line--1,
  .content__line--2,
  .content__sub,
  .content__sub::after {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .content__line--2 {
    color: var(--sk-porsche);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }

  .content__sub::after {
    width: min(280px, 70%);
  }

  .services__header,
  .service-card {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .services__title-text {
    animation: none;
    background: var(--sk-flame-pea);
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #faf8fc;
  }

  .services__title-text::after {
    width: 5.5rem;
    opacity: 1;
    animation: none;
  }

  .service-card::before {
    animation: none;
    background: rgba(113, 113, 113, 0.35);
  }

  .service-card__glow {
    display: none;
  }

  .service-card__index {
    animation: none;
  }
}
