/*
 * File: assets/css/home.css
 * Version: 1.5.0
 * Client: ForVera Studio (ForVera Media LLC)
 * Developer: Christian / ForVera Studio
 * Website: https://forverastudio.com
 * Support: help@forverastudio.com
 */

.section.section--depth-a,
.section.section--depth-b {
  position: relative;
  isolation: isolate;
}

.section.section--depth-a::before,
.section.section--depth-b::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  top: -25%;
  height: 120%;
  z-index: 0;
  pointer-events: none;
}

.section.section--depth-a .section-inner,
.section.section--depth-b .section-inner {
  position: relative;
  z-index: 1;
}

.section.section--depth-a::before {
  background: radial-gradient(ellipse 70% 55% at 50% 28%, rgba(107, 163, 214, 0.07) 0%, transparent 62%);
  opacity: 0.95;
}

.section.section--depth-b::before {
  background: radial-gradient(ellipse 65% 50% at 40% 72%, rgba(142, 197, 240, 0.05) 0%, transparent 58%);
  opacity: 0.9;
}

.section--services,
.section--process {
  overflow: hidden;
}

.section-network-bg {
  position: absolute;
  left: -5%;
  right: -5%;
  top: -8%;
  bottom: -12%;
  z-index: 0;
  pointer-events: none;
  background: url("/assets/img/bg-network.svg") center 38% / min(1040px, 96vw) no-repeat;
  opacity: 0.2;
}

@media (prefers-reduced-motion: no-preference) {
  .section-network-bg.section-motion-bg {
    animation: sectionNetworkFloat 85s ease-in-out infinite alternate;
  }
}

@keyframes sectionNetworkFloat {
  0% {
    background-position: 48% 34%;
    opacity: 0.17;
  }
  100% {
    background-position: 52% 42%;
    opacity: 0.24;
  }
}

.section-inner--center {
  text-align: center;
}

.section-inner--center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.section--process .section-process-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    repeating-linear-gradient(
      105deg,
      transparent,
      transparent 14px,
      rgba(107, 163, 214, 0.045) 14px,
      rgba(107, 163, 214, 0.045) 15px
    ),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(107, 163, 214, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(142, 197, 240, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .section--process .section-process-texture {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .section--process .section-process-texture.section-motion-bg {
    animation: sectionProcessSheen 65s ease-in-out infinite alternate;
  }
}

@keyframes sectionProcessSheen {
  0% {
    opacity: 0.48;
  }
  100% {
    opacity: 0.66;
  }
}

.section--work,
.section--about,
.section--contact {
  overflow: hidden;
}

.section-motion-bg--work,
.section-motion-bg--about,
.section-motion-bg--contact {
  position: absolute;
  inset: -6%;
  z-index: 0;
  pointer-events: none;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 120% 120%;
}

@media (max-width: 768px) {
  .section-motion-bg--work,
  .section-motion-bg--about,
  .section-motion-bg--contact {
    background-attachment: scroll;
  }
}

.section-motion-bg--work {
  background-image:
    radial-gradient(ellipse 50% 42% at 88% 12%, rgba(107, 163, 214, 0.12) 0%, transparent 52%),
    radial-gradient(ellipse 45% 38% at 6% 78%, rgba(142, 197, 240, 0.07) 0%, transparent 48%),
    repeating-linear-gradient(
      124deg,
      transparent,
      transparent 13px,
      rgba(107, 163, 214, 0.032) 13px,
      rgba(107, 163, 214, 0.032) 14px
    );
  opacity: 0.88;
}

.section-motion-bg--about {
  background-image:
    radial-gradient(ellipse 60% 50% at 20% 25%, rgba(107, 163, 214, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 85% 70%, rgba(142, 197, 240, 0.06) 0%, transparent 52%),
    repeating-linear-gradient(
      -35deg,
      transparent,
      transparent 22px,
      rgba(107, 163, 214, 0.025) 22px,
      rgba(107, 163, 214, 0.025) 23px
    );
  opacity: 0.82;
}

.section-motion-bg--contact {
  background-image:
    radial-gradient(ellipse 55% 48% at 50% 0%, rgba(107, 163, 214, 0.1) 0%, transparent 58%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 19px,
      rgba(107, 163, 214, 0.028) 19px,
      rgba(107, 163, 214, 0.028) 20px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 19px,
      rgba(142, 197, 240, 0.022) 19px,
      rgba(142, 197, 240, 0.022) 20px
    );
  opacity: 0.78;
}

@media (prefers-reduced-motion: no-preference) {
  .section-motion-bg--work {
    animation: sectionMotionDriftA 78s ease-in-out infinite alternate;
  }

  .section-motion-bg--about {
    animation: sectionMotionDriftB 92s ease-in-out infinite alternate;
  }

  .section-motion-bg--contact {
    animation: sectionMotionDriftC 68s ease-in-out infinite alternate;
  }
}

@keyframes sectionMotionDriftA {
  from {
    transform: translate3d(-1.2%, 0.4%, 0) scale(1);
    background-position: 0% 0%, 100% 100%, 0 0;
  }
  to {
    transform: translate3d(1.4%, -0.6%, 0) scale(1.025);
    background-position: 8% 6%, 92% 88%, 12px 8px;
  }
}

@keyframes sectionMotionDriftB {
  from {
    transform: translate3d(0.8%, -0.5%, 0) scale(1.01);
    opacity: 0.78;
  }
  to {
    transform: translate3d(-1%, 0.7%, 0) scale(1.03);
    opacity: 0.88;
  }
}

@keyframes sectionMotionDriftC {
  from {
    transform: translate3d(-0.8%, 0.3%, 0);
  }
  to {
    transform: translate3d(1%, -0.4%, 0);
  }
}

.cta-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.section-motion-bg--cta {
  position: absolute;
  inset: -15%;
  z-index: 0;
  pointer-events: none;
  background-attachment: fixed;
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(107, 163, 214, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 30% 80%, rgba(142, 197, 240, 0.05) 0%, transparent 45%);
  opacity: 0.65;
}

@media (max-width: 768px) {
  .section-motion-bg--cta {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .section-motion-bg--cta {
    animation: sectionMotionCta 55s ease-in-out infinite alternate;
  }
}

@keyframes sectionMotionCta {
  from {
    transform: translate3d(-1%, 1%, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, -1%, 0) scale(1.04);
  }
}

.services-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.3rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: background-color 0.22s, border-color 0.22s;
  text-align: left;
}

.service-card:hover {
  background: var(--surface2);
}

.service-num {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--accent);
  font: 500 0.68rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  transition: border-color 0.22s;
}

.service-card:hover .service-num {
  border-color: var(--accent-border);
}

.service-title {
  margin: 0;
  font-family: var(--font-head);
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}

.service-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-link {
  margin-top: auto;
  color: var(--accent);
  font: 500 0.66rem/1 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.process-list {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.process-step {
  opacity: 0;
  transform: translateY(18px);
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.ps-num {
  margin: 0;
  color: var(--accent);
  font: 500 1.6rem/1 var(--font-mono);
  letter-spacing: 0.05em;
}

.ps-title {
  margin: 0;
  font: 700 1.12rem/1.2 var(--font-head);
  letter-spacing: -0.01em;
}

.ps-desc {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  max-width: 760px;
}

.ps-quick {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--accent-bright);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(107, 163, 214, 0.45);
  text-underline-offset: 0.15em;
}

.ps-quick:hover,
.ps-quick:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent-border);
  outline: none;
}

.proof-strip {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.proof-item {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1rem 0.85rem;
  text-align: center;
}

.proof-value {
  display: block;
  font: 800 1.4rem/1 var(--font-head);
  letter-spacing: -0.02em;
}

.proof-label {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font: 400 0.68rem/1.3 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.proof-label--twoline {
  display: block;
  max-width: 9rem;
  margin-left: auto;
  margin-right: auto;
}

.work-list {
  margin-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.work-item {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.4rem;
}

.wi-tag {
  margin: 0;
  color: var(--accent);
  font: 500 0.65rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.wi-name {
  margin: 0.5rem 0 0;
  font: 700 1.24rem/1.15 var(--font-head);
  letter-spacing: -0.02em;
}

.wi-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
  font: inherit;
  letter-spacing: inherit;
  transition: color 0.2s;
}

.wi-link:hover,
.wi-link:focus-visible {
  color: var(--accent-bright);
  outline: none;
}

.wi-link-icon {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.95;
}

.wi-desc {
  margin: 0.65rem 0 0;
  max-width: 680px;
  color: var(--text-muted);
}

.wi-outcome {
  margin: 0;
  align-self: center;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.about-qa {
  margin-top: 1.5rem;
  max-width: 760px;
}

.about-lead {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.about-lead:last-of-type {
  margin-bottom: 1.75rem;
}

.about-qa__block {
  margin: 0;
  padding: 1.35rem 0;
  border-top: 1px solid var(--border);
}

.about-qa__block:first-of-type {
  padding-top: 1.65rem;
}

.about-qa__q {
  margin: 0 0 0.65rem;
  font: 700 1.05rem/1.3 var(--font-head);
  letter-spacing: -0.02em;
  color: var(--text);
}

.about-qa__a {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.about-qa__a strong {
  color: var(--text-muted);
  font-weight: 600;
}

.about-signature {
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.about-signature img {
  display: block;
  width: 220px;
  max-width: 55%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.58;
  transition: opacity 220ms ease;
}

.about-signature:hover img {
  opacity: 0.78;
}

@media (max-width: 520px) {
  .about-signature {
    justify-content: center;
  }

  .about-signature img {
    width: 180px;
    max-width: 70%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-signature img {
    transition: none;
  }
}

.contact-section .section-sub {
  margin-bottom: 0.25rem;
}

.contact-grid {
  margin-top: 1.75rem;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  max-width: 920px;
}

.contact-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: rgba(50, 56, 66, 0.45);
  padding: 1.1rem 1.15rem;
}

.contact-label {
  margin: 0;
  font: 500 0.65rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.contact-value {
  margin: 0.45rem 0 0;
  font-size: 1.05rem;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-value a {
  color: var(--text);
  transition: color 0.2s;
}

.contact-value a:hover,
.contact-value a:focus-visible {
  color: var(--accent-bright);
  outline: none;
}

.contact-value-btn {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: 700 1.05rem/1.2 var(--font-head);
  letter-spacing: -0.02em;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.contact-value-btn:hover,
.contact-value-btn:focus-visible {
  color: var(--accent-bright);
  outline: none;
}

.cta-section::before {
  content: "";
  width: 440px;
  height: 180px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(107, 163, 214, 0.28) 0%, rgba(107, 163, 214, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 740px;
  margin: 0 auto;
}

.cta-sub {
  margin: 0.8rem auto 1.4rem;
  color: var(--text-muted);
  max-width: 470px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-tag,
  .hero-headline,
  .hero-sub,
  .hero-actions,
  .hero-scroll {
    opacity: 0;
    transform: translateY(16px);
    animation: heroRise 0.65s ease forwards;
  }

  .hero-headline {
    animation-delay: 0.12s;
  }

  .hero-sub {
    animation-delay: 0.24s;
  }

  .hero-actions {
    animation-delay: 0.36s;
  }

  .hero-scroll {
    animation-delay: 0.48s;
  }

  @keyframes heroRise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 900px) {
  .hero {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 640px;
  }

  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .work-item {
    grid-template-columns: 1fr 250px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 5rem 1.25rem 3rem;
    min-height: 85vh;
  }

  .hero-sub {
    max-width: 100%;
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
  }

  .hero-scroll {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .ps-num {
    font-size: 1.4rem;
  }

  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .work-item {
    grid-template-columns: 1fr;
  }

  .wi-outcome {
    text-align: left;
    max-width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }

  .cta-section .btn-primary {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .proof-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
