/* Sri Krishna Engineering — landing page styles (v3)
   Palette sampled from the logo: indigo on white. */
:root {
  --indigo: #2a3584;
  --indigo-deep: #1b2358;
  --ink: #0b1033;
  --mist: #eef0fa;
  --line: #d6daef;
  --paper: #fff;
  --muted: #4f557b;
  --soft: #aab3ee;
  --on-ink: rgba(255, 255, 255, .74);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --bs-body-font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: var(--ink);
  --pad-y: clamp(5rem, 10vw, 9rem);
  --cut: clamp(28px, 4.5vw, 72px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--indigo) var(--mist)
}

html.sk-smooth {
  scroll-behavior: auto
}

body {
  font-family: var(--bs-body-font-family);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased
}

img,
svg {
  display: block;
  max-width: 100%
}

a {
  color: inherit;
  text-decoration: none
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 4px;
  border-radius: 2px
}

.on-ink :focus-visible,
.section-commit :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.mobile-menu :focus-visible {
  outline-color: #fff
}

::selection {
  background: var(--indigo);
  color: #fff
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px
}

::-webkit-scrollbar-track {
  background: var(--mist);
  border-left: 1px solid var(--line)
}

::-webkit-scrollbar-thumb {
  background: var(--indigo);
  border-radius: 20px;
  border: 3px solid var(--mist)
}

::-webkit-scrollbar-thumb:hover {
  background: var(--indigo-deep)
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  background: var(--indigo);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 2px;
  transition: top .25s
}

.skip-link:focus {
  top: 1rem
}

/* ---------- Type ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--bs-body-font-family);
  margin: 0;
  color: inherit
}

.display {
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.04;
  font-size: clamp(2.3rem, 5.4vw, 5rem)
}

.h-section {
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.06;
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  max-width: 17ch
}

.h-section.wide {
  max-width: 22ch
}

.lead-text {
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  color: var(--muted);
  max-width: 52ch
}

.on-ink .lead-text,
.section-commit .lead-text {
  color: var(--on-ink)
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-weight: 400;
  font-size: 1rem;
  color: var(--indigo);
  margin-bottom: 1.3rem
}

.tag::before {
  content: "";
  width: 2.6rem;
  height: 1px;
  background: currentColor
}

.on-ink .tag,
.section-commit .tag {
  color: var(--soft)
}

.section {
  padding: var(--pad-y) 0;
  position: relative;
  overflow: hidden;
  overflow: clip
}

.section>.container {
  position: relative;
  z-index: 2
}

.bg-mist {
  background: var(--mist)
}

.on-ink {
  background: var(--ink);
  color: #fff
}

.cut-top {
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(var(--cut) * -1);
  padding-top: calc(var(--pad-y) + var(--cut))
}

/* decorative illustrations (transparent SVGs) */
.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  width: min(48vw, 640px);
  height: auto;
  opacity: .1;
  will-change: transform
}

.deco-tr {
  right: -6vw;
  top: 2rem
}

.deco-tl {
  left: -8vw;
  top: 4rem
}

.deco-bl {
  left: -12vw;
  bottom: -3rem;
  width: min(40vw, 520px)
}

.deco-br {
  right: -6vw;
  bottom: -1rem
}

.on-ink .deco {
  filter: brightness(0) invert(1);
  opacity: .07
}

.glow {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%
}

.glow-a {
  width: 46vw;
  height: 46vw;
  left: -14vw;
  top: 8%;
  background: radial-gradient(circle, rgba(42, 53, 132, .6) 0%, rgba(42, 53, 132, 0) 68%)
}

/* ---------- Progress + nav ---------- */
.progress-bar-top {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  background: var(--indigo);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 1500;
  pointer-events: none
}

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1400;
  padding: 1.2rem 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s, transform .55s var(--ease);
  will-change: transform
}

.site-nav.nav-hidden {
  transform: translateY(-110%);
  box-shadow: none
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, .97);
  padding: .55rem 0;
  box-shadow: 0 1px 0 var(--line)
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--indigo);
  transition: color .4s
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transition: width .4s var(--ease), height .4s var(--ease);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .14)
}

.scrolled .brand img {
  width: 42px;
  height: 42px;
  box-shadow: none
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1
}

.brand-text strong {
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: .01em
}

.brand-text span {
  font-weight: 200;
  font-size: .6rem;
  letter-spacing: .42em;
  margin-top: .35rem;
  text-transform: uppercase
}

.nav-links {
  display: none;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0
}

.nav-links a {
  position: relative;
  font-size: .95rem;
  font-weight: 400;
  padding: .3rem 0;
  transition: color .4s
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease)
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left
}

.nav-cta {
  display: none
}

.menu-btn {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
  color: var(--indigo)
}

.menu-btn span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease)
}

.menu-btn span:nth-child(1) {
  top: 18px
}

.menu-btn span:nth-child(2) {
  top: 28px
}

/* transparent nav over the dark hero */
.site-nav:not(.scrolled) .brand,
.site-nav:not(.scrolled) .nav-links a,
.site-nav:not(.scrolled) .menu-btn {
  color: #fff
}

.site-nav:not(.scrolled) .nav-cta {
  --bg: #fff;
  --fg: var(--indigo-deep);
  --bd: #fff
}

.menu-open .menu-btn {
  color: #fff !important
}

.menu-open .menu-btn span:nth-child(1) {
  top: 23px;
  transform: rotate(45deg)
}

.menu-open .menu-btn span:nth-child(2) {
  top: 23px;
  transform: rotate(-45deg)
}

.menu-open .brand {
  color: #fff !important
}

.menu-open .site-nav {
  background: transparent;
  box-shadow: none;
  transform: none !important
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 1.5rem 2rem;
  clip-path: circle(0 at calc(100% - 2.4rem) 2.4rem);
  visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s
}

.menu-open .mobile-menu {
  clip-path: circle(150% at calc(100% - 2.4rem) 2.4rem);
  visibility: visible;
  transition: clip-path .8s var(--ease), visibility 0s
}

.mobile-menu ul {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0
}

.mobile-menu li a {
  display: block;
  font-size: clamp(2rem, 9vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -.02em;
  padding: .25rem 0
}

.mobile-menu .meta {
  color: var(--on-ink);
  font-size: .95rem
}

@media(min-width:992px) {
  .nav-links {
    display: flex
  }

  .nav-cta {
    display: inline-flex
  }

  .menu-btn,
  .mobile-menu {
    display: none
  }
}

/* ---------- Buttons ---------- */
.btn-sk {
  --bg: var(--indigo);
  --fg: #fff;
  --bd: var(--indigo);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  overflow: hidden;
  padding: 1rem 1.9rem;
  border: 1px solid var(--bd);
  border-radius: 100px;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1 var(--bs-body-font-family);
  cursor: pointer;
  isolation: isolate;
  transition: color .5s var(--ease), border-color .5s, background .4s
}

.btn-sk::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  border-radius: 50% 50% 0 0/100% 100% 0 0;
  transition: transform .6s var(--ease), border-radius .6s var(--ease);
  z-index: -1
}

.btn-sk:hover::before,
.btn-sk:focus-visible::before {
  transform: none;
  border-radius: 0
}

.btn-sk:hover,
.btn-sk:focus-visible {
  color: #fff;
  border-color: var(--ink)
}

.btn-sk.ghost {
  --bg: transparent;
  --fg: var(--indigo)
}

.btn-sk.ghost::before {
  background: var(--indigo)
}

.btn-sk.ghost:hover,
.btn-sk.ghost:focus-visible {
  border-color: var(--indigo)
}

.btn-sk.light {
  --bg: #fff;
  --fg: var(--indigo-deep);
  --bd: #fff
}

.btn-sk.light::before {
  background: var(--indigo)
}

.btn-sk.light:hover,
.btn-sk.light:focus-visible {
  border-color: var(--indigo)
}

.btn-sk.light-ghost {
  --bg: transparent;
  --fg: #fff;
  --bd: rgba(255, 255, 255, .55)
}

.btn-sk.light-ghost::before {
  background: #fff
}

.btn-sk.light-ghost:hover,
.btn-sk.light-ghost:focus-visible {
  color: var(--indigo-deep);
  border-color: #fff
}

.btn-sk svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform .5s var(--ease)
}

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

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 9rem 0 0;
  position: relative;
  overflow: hidden;
  overflow: clip;
  background: var(--ink);
  color: #fff
}

.hero-bg {
  position: absolute;
  inset: -6% 0 0;
  z-index: 0
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11, 16, 51, .96) 0%, rgba(20, 28, 82, .88) 38%, rgba(42, 53, 132, .5) 72%, rgba(42, 53, 132, .28) 100%), linear-gradient(0deg, rgba(11, 16, 51, .85) 0%, rgba(11, 16, 51, 0) 40%)
}

.hero-gear {
  position: absolute;
  z-index: 1;
  right: -24vw;
  top: 50%;
  width: min(110vw, 1050px);
  aspect-ratio: 1;
  margin-top: calc(min(110vw, 1050px)/-2);
  pointer-events: none;
  color: #fff;
  will-change: transform
}

.hero-gear svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linejoin: round;
  opacity: .22
}

.hero-gear .g2 {
  opacity: .5;
  stroke-dasharray: 3 9;
  transform-origin: center;
  transform-box: fill-box;
  animation: spin 120s linear infinite
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(2rem, 5vw, 4rem)
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: .2em;
  margin-bottom: -.2em
}

.line>span {
  display: block;
  transform: translateY(112%);
  animation: rise 1.2s var(--ease) forwards;
  animation-delay: calc(var(--i)*.13s + .15s)
}

.line.accent>span {
  color: var(--soft)
}

@keyframes rise {
  to {
    transform: none
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 1.1s var(--ease) forwards;
  animation-delay: var(--d, .8s)
}

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

.hero-sub {
  max-width: 48ch;
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  color: rgba(255, 255, 255, .8);
  margin: 1.8rem 0 2.1rem
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem
}

.hero-card {
  display: none
}

@media(min-width:992px) {
  .hero-card {
    display: block;
    position: absolute;
    z-index: 3;
    right: max(1.5rem, calc((100vw - 1320px)/2 + 12px));
    bottom: 6.5rem;
    width: 330px;
    padding: 1.5rem;
    background: rgba(11, 16, 51, .5);
    border: 1px solid rgba(255, 255, 255, .22)
  }

  .hero-card p {
    margin: 0 0 1.1rem;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.5
  }

  .hero-card a {
    display: inline-flex;
    gap: .6rem;
    align-items: center;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, .5);
    padding-bottom: .2rem
  }

  .hero-card a svg {
    width: 1.1em;
    height: 1.1em
  }
}

.hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-top: 1.4rem;
  padding-bottom: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, .18)
}

.hero-foot i {
  display: block;
  height: 1px;
  width: clamp(2.5rem, 8vw, 6rem);
  background: #fff;
  transform-origin: left;
  animation: grow 1.4s var(--ease) 1.2s both
}

@keyframes grow {
  from {
    transform: scaleX(0)
  }
}

.hero-foot span {
  font-weight: 400;
  letter-spacing: .02em;
  color: #fff
}

/* ---------- Marquee / gallery ---------- */
.marquee {
  background: var(--indigo);
  color: #fff;
  overflow: hidden;
  padding: 1.15rem 0;
  white-space: nowrap;
  position: relative;
  z-index: 3
}

.marquee-track {
  display: inline-flex;
  animation: slide 38s linear infinite;
  will-change: transform
}

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

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300
}

.marquee-track svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: .6;
  flex: none
}

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

.gallery {
  background: var(--ink);
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.2rem) 0;
  white-space: nowrap
}

.gallery-track {
  display: inline-flex;
  animation: slide 90s linear infinite;
  will-change: transform
}

.gallery:hover .gallery-track {
  animation-play-state: paused
}

.gallery-track>div {
  display: flex;
  gap: 1rem;
  padding-right: 1rem
}

.gallery img {
  width: clamp(220px, 26vw, 360px);
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  flex: none;
  opacity: .9;
  transition: opacity .4s, transform .8s var(--ease)
}

.gallery img:hover {
  opacity: 1;
  transform: translateY(-6px)
}

/* ---------- Media frames ---------- */
.media {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--mist);
  aspect-ratio: 4/3
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease)
}

.media:hover img {
  transform: scale(1.05)
}

.media .ph {
  filter: saturate(.92) contrast(1.02)
}

/* ---------- About ---------- */
.about-img {
  aspect-ratio: 4/5;
  overflow: visible;
  background: none
}

.about-img::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(1.4rem, 1.4rem);
  border: 1px solid var(--indigo);
  z-index: 0
}

.about-img>img {
  position: relative;
  z-index: 1
}

.about-quote {
  position: absolute;
  z-index: 2;
  left: -1.4rem;
  bottom: 2.4rem;
  max-width: 15ch;
  padding: 1.4rem 1.6rem;
  background: var(--indigo);
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  box-shadow: 0 24px 40px -22px rgba(11, 16, 51, .6)
}

.about p {
  max-width: 56ch;
  color: var(--muted)
}

.about p+p {
  margin-top: 1.2rem
}

.about .about-lead {
  color: var(--ink);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.5;
  margin-top: 1.8rem
}

@media(max-width:991.98px) {
  .about-quote {
    left: 1rem;
    bottom: 1rem
  }

  .about-img::before {
    display: none
  }
}

/* ---------- Services showcase ---------- */
.svc-wrap {
  margin-top: clamp(3rem, 6vw, 5rem);
  align-items: flex-start
}

.svc-list {
  border-bottom: 1px solid var(--line)
}

.svc {
  border-top: 1px solid var(--line);
  position: relative
}

.svc::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--indigo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease)
}

.svc.open::after {
  transform: scaleX(1)
}

.svc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2vw, 1.7rem) 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  font: 300 clamp(1.6rem, 3.2vw, 2.7rem)/1.1 var(--bs-body-font-family);
  letter-spacing: -.025em;
  transition: color .4s, padding .6s var(--ease)
}

.svc-btn:hover,
.svc.open .svc-btn {
  color: var(--indigo);
  padding-left: clamp(.4rem, 1.2vw, 1.2rem)
}

.svc.open .svc-btn {
  font-weight: 600
}

.plus {
  position: relative;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform .6s var(--ease), background .4s, color .4s
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: .9rem;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%)
}

.plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform .6s var(--ease)
}

.svc.open .plus {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
  transform: rotate(180deg)
}

.svc.open .plus::after {
  transform: translate(-50%, -50%) rotate(0)
}

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

.svc.open .svc-body {
  grid-template-rows: 1fr
}

.svc-body>div {
  overflow: hidden
}

.svc-grid {
  display: grid;
  gap: 1.2rem;
  padding: 0 0 1.8rem clamp(.4rem, 1.2vw, 1.2rem)
}

.svc-grid p {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.12rem
}

.svc-m {
  aspect-ratio: 16/10
}

.svc-stage {
  display: none
}

@media(min-width:992px) {
  .svc-m {
    display: none
  }

  .svc-stage {
    display: block;
    position: sticky;
    top: 6.5rem;
    aspect-ratio: 4/5;
    max-height: 78vh;
    width: 100%
  }

  .svc-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(1.2rem, 1.2rem);
    border: 1px solid var(--indigo)
  }

  .stage-item {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transition: opacity .01s .9s, clip-path .9s var(--ease)
  }

  .stage-item.active {
    opacity: 1;
    clip-path: inset(0);
    transition: opacity .01s, clip-path .9s var(--ease);
    z-index: 2
  }

  .stage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transition: transform 1.6s var(--ease);
    filter: saturate(.92)
  }

  .stage-item.active img {
    transform: scale(1)
  }

  .stage-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(11, 16, 51, .78) 0%, rgba(11, 16, 51, 0) 45%)
  }

  .stage-cap {
    position: absolute;
    z-index: 3;
    left: 1.6rem;
    bottom: 1.4rem;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -.02em
  }
}

/* ---------- Workforce ---------- */
.wf-grid {
  margin-top: clamp(3rem, 6vw, 5rem)
}

.wf-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease), border-color .5s
}

.wf-card:hover {
  transform: translateY(-8px);
  border-color: var(--indigo);
  box-shadow: 0 30px 50px -30px rgba(42, 53, 132, .5)
}

.wf-m {
  aspect-ratio: 5/4
}

.wf-m::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 16, 51, .82) 0%, rgba(11, 16, 51, 0) 62%)
}

.wf-abbr {
  position: absolute;
  z-index: 2;
  left: 1.4rem;
  bottom: .6rem;
  font-size: clamp(3.4rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
  transition: color .6s var(--ease)
}

.wf-card:hover .wf-abbr {
  color: #fff
}

.wf-body {
  padding: 1.5rem 1.6rem 1.2rem
}

.wf-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 1rem
}

.wf-body ul {
  list-style: none;
  margin: 0;
  padding: 0
}

.wf-body li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted)
}

.wf-body li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo);
  flex: none
}

.wf-note {
  margin-top: 3rem;
  max-width: 62ch;
  font-size: 1.2rem;
  color: var(--ink)
}

/* ---------- Industries (tiles) ---------- */
.bento {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem
}

@media(min-width:768px) {
  .bento {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(min-width:1100px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.2rem
  }

  .t1 {
    grid-column: span 7
  }

  .t2 {
    grid-column: span 5
  }

  .t3,
  .t4,
  .t5 {
    grid-column: span 4
  }
}

.tile {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  color: #fff;
  background: var(--ink);
  isolation: isolate
}

.tile>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.4s var(--ease);
  filter: saturate(.9)
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(11, 16, 51, .92) 0%, rgba(11, 16, 51, .35) 55%, rgba(11, 16, 51, .1) 100%);
  transition: background .6s
}

.tile:hover>img {
  transform: scale(1.07)
}

.tile:hover::before {
  background: linear-gradient(0deg, rgba(27, 35, 88, .95) 0%, rgba(27, 35, 88, .62) 70%, rgba(27, 35, 88, .35) 100%)
}

.tile-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1.7rem
}

.tile h3 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15
}

.tile p {
  margin: .7rem 0 0;
  max-width: 38ch;
  color: rgba(255, 255, 255, .85);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .7s var(--ease), opacity .6s, margin .6s
}

.tile:hover p,
.tile:focus-within p {
  max-height: 8rem;
  opacity: 1
}

@media(hover:none) {
  .tile p {
    max-height: 8rem;
    opacity: 1
  }
}

.tile-go {
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background .4s, color .4s, transform .6s var(--ease)
}

.tile-go svg {
  width: 1.1rem;
  height: 1.1rem;
  transform: rotate(-45deg);
  transition: transform .6s var(--ease)
}

.tile:hover .tile-go {
  background: #fff;
  color: var(--indigo)
}

.tile:hover .tile-go svg {
  transform: rotate(0)
}

/* ---------- Why us ---------- */
.sticky-col {
  position: relative
}

@media(min-width:992px) {
  .sticky-col {
    position: sticky;
    top: 6.5rem
  }
}

.why-img {
  aspect-ratio: 16/10;
  margin-top: 2.4rem;
  background: var(--indigo-deep)
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem
}

@media(min-width:768px) {
  .why-list {
    grid-template-columns: repeat(2, 1fr)
  }

  .why-list li:last-child {
    grid-column: span 2
  }
}

.why-list li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  transition: background .5s, border-color .5s, transform .7s var(--ease)
}

.why-list li:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(170, 179, 238, .6);
  transform: translateY(-5px)
}

.why-ico {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--indigo);
  display: grid;
  place-items: center;
  color: #fff
}

.why-ico svg {
  width: 1.2rem;
  height: 1.2rem
}

.why-list h3 {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: .35rem
}

.why-list p {
  margin: 0;
  color: var(--on-ink);
  font-size: 1rem
}

/* ---------- Clients ---------- */
.clients-intro {
  margin: clamp(2.5rem, 5vw, 4rem) 0 1.2rem
}

.client-card {
  height: 100%;
  border: 1px solid var(--line);
  padding: 1.5rem 1.5rem 1.3rem;
  background: #fff;
  transition: border-color .5s, transform .7s var(--ease), box-shadow .7s var(--ease)
}

.client-card:hover {
  border-color: var(--indigo);
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -26px rgba(42, 53, 132, .55)
}

.client-logo {
  aspect-ratio: 2/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mist);
  margin-bottom: 1.1rem
}

.client-logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  opacity: 1;
  transition: opacity .4s, transform .8s var(--ease)
}

.client-card:hover .client-logo img {
  opacity: 1;
  transform: scale(1.05)
}

.client-card span {
  font-size: 1.05rem;
  color: var(--muted)
}

.clients-note {
  margin-top: 2.5rem;
  max-width: 60ch;
  color: var(--muted)
}

/* ---------- Commitment ---------- */
.section-commit {
  background: var(--indigo);
  color: #fff
}

.commit-bg {
  position: absolute;
  inset: 0;
  z-index: 0
}

.commit-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .32;
  mix-blend-mode: luminosity
}

.commit-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--indigo) 0%, rgba(42, 53, 132, .78) 40%, var(--indigo-deep) 100%)
}

.commit-gear {
  position: absolute;
  left: -18vw;
  bottom: -28vw;
  width: min(90vw, 820px);
  aspect-ratio: 1;
  color: #fff;
  pointer-events: none;
  z-index: 1;
  will-change: transform
}

.commit-gear svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  opacity: .16
}

.section-commit p {
  color: rgba(255, 255, 255, .84);
  max-width: 56ch
}

.section-commit p+p {
  margin-top: 1.3rem
}

.tagline {
  font-size: clamp(2.2rem, 7vw, 6.2rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin-top: clamp(3rem, 7vw, 6rem)
}

.tagline .pipe {
  font-weight: 200;
  opacity: .55;
  margin: 0 .15em
}

.tagline .tl {
  display: inline-block
}

/* ---------- Contact ---------- */
.contact-details {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none
}

.contact-details li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line)
}

.contact-details li:last-child {
  border-bottom: 1px solid var(--line)
}

.contact-details .k {
  font-weight: 400;
  color: var(--indigo)
}

.contact-details a {
  border-bottom: 1px solid transparent;
  transition: border-color .3s, color .3s;
  word-break: break-word
}

.contact-details a:hover {
  color: var(--indigo);
  border-color: var(--indigo)
}

.contact-details .v {
  display: flex;
  flex-direction: column;
  gap: .15rem
}

.form-wrap {
  background: #fff;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line);
  box-shadow: 0 40px 70px -45px rgba(42, 53, 132, .55);
  position: relative
}

.form-wrap::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 4px;
  background: var(--indigo)
}

.field {
  margin-bottom: 1.6rem
}

.field label {
  display: block;
  font-size: .9rem;
  font-weight: 400;
  color: var(--indigo);
  margin-bottom: .35rem
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #9aa2d2;
  padding: .6rem 0;
  font: 300 1.1rem var(--bs-body-font-family);
  color: var(--ink);
  border-radius: 0;
  transition: border-color .3s
}

.field textarea {
  resize: vertical;
  min-height: 7rem
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--indigo);
  box-shadow: 0 1px 0 var(--indigo)
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: .6rem
}

.form-hint {
  font-size: .9rem;
  color: var(--muted);
  margin: 1.2rem 0 0
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink)
}

.site-footer .brand {
  color: #fff
}

.foot-gear {
  position: absolute;
  right: -12vw;
  bottom: -18vw;
  width: min(70vw, 640px);
  aspect-ratio: 1;
  color: #fff;
  pointer-events: none
}

.foot-gear svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  opacity: .07
}

.site-footer .container {
  position: relative;
  z-index: 1
}

.foot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14)
}

.foot-cta h2 {
  font-size: clamp(1.8rem, 4.4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1.05
}

.foot-main {
  padding: clamp(3rem, 5vw, 4.5rem) 0 3rem
}

.foot-about {
  margin: 1.4rem 0 1rem;
  max-width: 36ch;
  font-size: .98rem
}

.foot-tag {
  color: #fff;
  font-weight: 400;
  margin: 0
}

.foot-h {
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .02em;
  margin-bottom: 1.2rem
}

.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .65rem
}

.foot-list a,
.foot-contact a {
  position: relative;
  transition: color .3s
}

.foot-list a:hover,
.foot-contact a:hover {
  color: #fff
}

.foot-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease)
}

.foot-list a:hover::after {
  transform: scaleX(1);
  transform-origin: left
}

.foot-contact {
  font-style: normal;
  display: grid;
  gap: .9rem;
  margin: 0
}

.foot-contact p {
  margin: 0;
  font-size: .98rem;
  word-break: break-word
}

.foot-contact span {
  display: block;
  font-size: .82rem;
  color: var(--soft);
  margin-bottom: .1rem
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .9rem
}

.to-top {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .5)
}

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--rd, 0s)
}

.js [data-reveal].in {
  opacity: 1;
  transform: none
}

.js .media[data-reveal] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.3s var(--ease);
  transition-delay: var(--rd, 0s)
}

.js .media[data-reveal].in {
  clip-path: inset(0)
}

.js .about-img[data-reveal] {
  clip-path: none;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease)
}

.js .about-img[data-reveal].in {
  opacity: 1;
  transform: none
}

.js .tile[data-reveal] {
  clip-path: none
}

/* ---------- Responsive + motion ---------- */
@media(max-width:575.98px) {
  .contact-details li {
    grid-template-columns: 1fr;
    gap: .2rem
  }

  .hero {
    padding-top: 8rem
  }

  .hero-gear {
    right: -55vw
  }

  .deco {
    width: 80vw
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important
  }

  .line>span,
  .fade-in {
    transform: none !important;
    opacity: 1 !important
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    clip-path: none
  }

  .marquee-track,
  .gallery-track {
    animation: none
  }
}

/* Form: honeypot + status */
.field-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden
}

.form-hint.ok {
  color: #1b7a3d;
  font-weight: 400
}

.form-hint.err {
  color: #b3261e;
  font-weight: 400
}

.btn-sk[disabled] {
  opacity: .7;
  cursor: progress
}

/* Contact: map below the form + visible result message */
.map-wrap {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 40px 70px -45px rgba(42, 53, 132, .55);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 32vw, 380px);
  border: 0;
}

.map-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.2rem;
  font-weight: 400;
  color: var(--indigo);
  border-top: 1px solid var(--line);
  transition: background .4s, color .4s;
}

.map-link svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform .5s var(--ease);
}

.map-link:hover {
  background: var(--indigo);
  color: #fff;
}

.map-link:hover svg {
  transform: translateX(4px);
}

.form-hint.ok,
.form-hint.err {
  padding: .75rem 1rem;
  border-left: 3px solid currentColor;
}

.form-hint.ok {
  background: rgba(27, 122, 61, .08);
}

.form-hint.err {
  background: rgba(179, 38, 30, .07);
}
