/* ===========================================================================
   Iris Aerial — motion & character layer
   Loaded after styles.css + pages.css. Everything here is additive: it adds
   movement, colour and hierarchy without reflowing the document structure.
   =========================================================================== */

/* The responsive team photo collage is styled with the hero rules below. */
#team .team-stage.team-happening::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(36rem 30rem at 12% 8%, rgba(90, 169, 255, 0.2), transparent 72%),
    radial-gradient(34rem 28rem at 88% 32%, rgba(255, 194, 77, 0.24), transparent 72%),
    radial-gradient(34rem 28rem at 50% 100%, rgba(63, 195, 155, 0.18), transparent 72%);
  background-size: 150% 150%;
  animation: team-color-wave 18s ease-in-out infinite alternate;
  content: "";
  pointer-events: none;
}
:root {
  /* The company blue is sky blue, not cobalt. These override styles.css.
     Contrast on white: --cyan 4.7:1, --cyan2 6.9:1 — both clear AA for text. */
  --cyan: #0a7ab0;
  --cyan2: #065e86;
  --accent: #8fd8f5;
  --navy2: #0e4f74;
  /* The neutrals carry a trace of the same sky, so pale sections sit in the
     palette rather than looking like untinted grey left over from the cobalt. */
  --mist: #eff6fa;
  --line: #d7e4ee;
  --sky-tint: #e8f6fd;
  --sky-line: #bfe4f5;
  --sky-bright: #42b9e8;

  /* Akshaa accents reused on the home teaser */
  --ak-glow: #a0e66d;
  --ak-deep: #0a1b14;

  /* Akshaa Urban — civic daylight */
  --ub-ink: #0d2a3f;
  --ub-tint: #eef6fb;
  --ub-line: #cfe2ee;
  --ub-accent: #0f7ea8;
  --ub-accent-soft: #d4edf7;

  /* Akshaa Defence — operations room, in Akshaa green */
  --df-ink: #09180f;
  --df-surface: #13271c;
  --df-line: #2f4a37;
  --df-accent: #a0e66d;
  --df-muted: #b4c9b9;

  /* Akshaa pista close-out */
  --ak-pista: #dcebc5;
  --ak-pista-light: #edf4e2;
  --ak-pista-ink: #203b28;
  --ak-pista-muted: #435e42;

  /* Team page — warmth */
  --joy-1: #ff7a4d;
  --joy-2: #ffc24d;
  --joy-3: #3fc39b;
  --joy-4: #5aa9ff;
  --joy-5: #ff6b9d;

  /* Inlined at each use: a var() easing breaks comma-separated shorthands. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------------------------------------------------------------------------
   2. Scroll reveal — images and blocks arrive instead of simply existing
   --------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].in-view {
  opacity: 1;
  transform: none;
}
[data-reveal="zoom"] {
  transform: scale(0.94);
}
[data-reveal="left"] {
  transform: translateX(-30px);
}
[data-reveal="right"] {
  transform: translateX(30px);
}

/* Images settle in with a slow push — 2.5s, matching the gallery cadence */
[data-reveal] img,
.reveal-media img {
  transition: transform 2.5s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal]:not(.in-view) img {
  transform: scale(1.1);
}
[data-reveal].in-view img {
  transform: scale(1);
}
.image-open:hover img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Text choreography: words rise out of a mask, copy fades up behind them. */
.text-split .tw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.text-split .tw-i {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--w, 0) * 55ms);
}
.text-split.text-in .tw-i {
  transform: none;
}
[data-text-fade] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
[data-text-fade].text-in {
  opacity: 1;
  transform: none;
}
/* Lift on interaction, same curve as everything else. */
.home-tech-card,
.solution-family,
.job-card,
.tech-method {
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-tech-card:hover,
.solution-family:hover,
.job-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(14, 79, 116, 0.16);
}

/* Pages fade in on route change. */
.page:not([hidden]) {
  animation: page-in 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .page:not([hidden]) {
    animation: none;
  }
}

/* ---------------------------------------------------------------------------
   3. Clientele marquee — right to left, halts on hover or focus
   --------------------------------------------------------------------------- */

.client-band {
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-tint) 0%, #d6edf9 100%);
  border-block: 1px solid var(--sky-line);
}
.client-band .marquee {
  background: #fff;
  border: 1px solid var(--sky-line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(14, 79, 116, 0.12);
}
.client-band .shell {
  grid-template-columns: 120px minmax(0, 1fr);
}
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 18px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 72px,
    #000 calc(100% - 72px),
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 72px,
    #000 calc(100% - 72px),
    transparent
  );
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-left var(--marquee-duration, 42s) linear infinite;
}
.client-band .client-set {
  display: flex;
  grid-template-columns: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
}
.client-band .client-logo {
  flex: 0 0 auto;
  width: var(--client-cell-width);
  height: var(--client-cell-height);
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes marquee-left {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--marquee-shift, 50%)), 0, 0);
  }
}@media (max-width: 760px) {
  .client-band .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Team page: centered celebration and a flashing photo deck. */
  #team .team-stage {
    background:
      radial-gradient(36rem 30rem at 12% 8%, rgba(90, 169, 255, 0.2), transparent 72%),
      radial-gradient(34rem 28rem at 88% 32%, rgba(255, 194, 77, 0.24), transparent 72%),
      radial-gradient(34rem 28rem at 50% 100%, rgba(63, 195, 155, 0.18), transparent 72%),
      linear-gradient(135deg, #fff8ef 0%, #fff2f5 50%, #f0faff 100%);
    background-size: 150% 150%;
    animation: team-color-wave 18s ease-in-out infinite alternate;
  }
  @keyframes team-color-wave {
    from { background-position: 0% 20%; }
    to { background-position: 100% 80%; }
  }
  #team .team-stage-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  #team .team-stage-copy {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
    text-align: center;
  }
  #team .team-stage-intro {
    max-width: 820px;
    margin-inline: auto;
  }
  #team .team-stage-copy h1 {
    color: #173c58;
  }
  #team .team-stage-copy h1 .squiggle {
    margin-inline: auto;
    color: #ff7659;
  }
  #team .team-stage-copy p {
    max-width: 58ch;
    margin: 16px auto 0;
    padding: 0;
    border: 0;
    color: #435a6d;
  }
  #team .team-photo-deck {
    position: relative;
    width: min(100%, 900px);
    height: clamp(300px, 42vw, 470px);
    margin: 0 auto;
    isolation: isolate;
    perspective: 1200px;
  }
  #team .team-deck-card {
    position: absolute;
    inset: 0;
    width: min(76%, 660px);
    height: 100%;
    margin: auto;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 28px 68px rgba(31, 61, 86, 0.2);
    opacity: 0;
    visibility: hidden;
    transform-origin: 50% 85%;
    animation: team-card-flash 24s ease-in-out infinite;
    will-change: transform, opacity;
  }
  #team .team-deck-card:nth-child(2) { animation-delay: -4s; }
  #team .team-deck-card:nth-child(3) { animation-delay: -8s; }
  #team .team-deck-card:nth-child(4) { animation-delay: -12s; }
  #team .team-deck-card:nth-child(5) { animation-delay: -16s; }
  #team .team-deck-card:nth-child(6) { animation-delay: -20s; }
  #team .team-deck-card .image-open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #f7eee7;
  }
  #team .team-deck-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  #team .team-deck-card:nth-child(2n) { background: #fff0e8; }
  #team .team-deck-card:nth-child(3n) { background: #e6f8f1; }
  @keyframes team-card-flash {
    0% {
      visibility: visible;
      opacity: 0;
      transform: translate(-50%, -50%) rotate(-9deg) scale(0.88);
    }
    2% {
      opacity: 1;
      transform: translate(-50%, -50%) rotate(0) scale(1);
    }
    14% {
      visibility: visible;
      opacity: 1;
      transform: translate(-50%, -50%) rotate(0) scale(1);
    }
    17% {
      opacity: 0;
      transform: translate(calc(-50% - 12%), calc(-50% - 8%)) rotate(10deg) scale(0.92);
    }
    18%, 100% {
      visibility: hidden;
      opacity: 0;
    }
  }
  #team .people-section .section-head {
    grid-template-columns: minmax(0, 1fr);
  }
  #team .people-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  #team .people-grid .person-row {
    grid-column: span 3;
  }
  #team .people-grid .person-row:nth-child(-n + 2) {
    grid-column: span 6;
  }
  #team .people-grid .person-row:nth-child(-n + 2) .person-portrait img,
  #team .people-grid .person-row:nth-child(-n + 2) .person-portrait .image-open {
    height: 360px;
  }
  #team .people-grid .person-row:last-child {
    grid-column: span 3;
  }
  @media (max-width: 1100px) {
    #team .people-grid {
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    #team .people-grid .person-row {
      grid-column: span 2;
    }
    #team .people-grid .person-row:nth-child(-n + 2) {
      grid-column: span 3;
    }
    #team .people-grid .person-row:last-child {
      grid-column: span 2;
    }
  }
  @media (max-width: 760px) {
    #team .team-stage-grid {
      gap: 22px;
    }
    #team .team-photo-deck {
      height: clamp(260px, 72vw, 360px);
    }
    #team .team-deck-card {
      width: 88%;
      padding: 7px;
      border-radius: 20px;
    }
    #team .team-deck-card .image-open {
      border-radius: 13px;
    }
    #team .people-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #team .people-grid .person-row,
    #team .people-grid .person-row:nth-child(-n + 2),
    #team .people-grid .person-row:last-child {
      grid-column: auto;
    }
    #team .people-grid .person-row:nth-child(-n + 2) .person-portrait img,
    #team .people-grid .person-row:nth-child(-n + 2) .person-portrait .image-open {
      height: 220px;
    }
  }
  @media (max-width: 460px) {
    #team .team-photo-deck {
      height: 270px;
    }
    #team .team-deck-card {
      width: 92%;
    }
    #team .people-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    #team .team-stage {
      animation: none;
    }
    #team .team-deck-card {
      animation: none;
      visibility: visible;
      opacity: 0.28;
    }
    #team .team-deck-card:nth-child(1) { transform: translate(-50%, -50%) rotate(-10deg) scale(0.88); }
    #team .team-deck-card:nth-child(2) { transform: translate(-50%, -50%) rotate(-6deg) scale(0.92); }
    #team .team-deck-card:nth-child(3) { transform: translate(-50%, -50%) rotate(-2deg) scale(0.96); }
    #team .team-deck-card:nth-child(4) { transform: translate(-50%, -50%) rotate(2deg) scale(0.98); }
    #team .team-deck-card:nth-child(5) { transform: translate(-50%, -50%) rotate(6deg) scale(1); }
    #team .team-deck-card:nth-child(6) { opacity: 1; transform: translate(-50%, -50%); }
  }

}

/* ---------------------------------------------------------------------------
   4. Hero gallery — cross-fade with a slow drift, ~2.5s per image
   --------------------------------------------------------------------------- */

/* The gallery scales its frames, so both boxes have to clip. Without this the
   drifting image spills past the hero and sits over the service rail below. */
.hero,
.project-atlas {
  overflow: hidden;
}
.atlas-frame {
  visibility: visible;
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.atlas-frame[aria-hidden="true"] {
  pointer-events: none;
}
.atlas-frame.active {
  opacity: 1;
}
.atlas-frame img {
  transform: scale(1.06);
}
.atlas-frame.active img {
  animation: atlas-drift 4.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes atlas-drift {
  from {
    transform: scale(1.055) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-1.2%, -0.8%, 0);
  }
}

/* Thin progress hairline so the 2.5s cadence is legible, not mysterious */
.atlas-progress {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: #ffffff1f;
}
.atlas-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
}
.atlas-progress.running span {
  animation: atlas-sweep var(--atlas-delay, 2.5s) linear infinite;
}
@keyframes atlas-sweep {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Hero copy entrance */
.hero-copy h1,
.hero-copy > p,
.hero-actions {
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-copy > p {
  animation-delay: 0.12s;
}
.hero-actions {
  animation-delay: 0.22s;
}
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

/* ---------------------------------------------------------------------------
   5. Home "Akshaa" teaser — carries the Akshaa green, not the Iris blue
   --------------------------------------------------------------------------- */

.change-section {
  position: relative;
  overflow: hidden;
  background: var(--ak-ink);
  color: var(--white);
  --muted: var(--ak-muted);
  --ink: var(--white);
}
.change-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      62% 90% at 82% 18%,
      rgba(160, 230, 109, 0.16),
      transparent 70%
    ),
    radial-gradient(
      50% 70% at 8% 92%,
      rgba(40, 88, 61, 0.55),
      transparent 72%
    );
}
.change-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--ak-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ak-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(
    72% 72% at 50% 40%,
    #000,
    transparent 78%
  );
  mask-image: radial-gradient(72% 72% at 50% 40%, #000, transparent 78%);
}
.change-section > .shell {
  position: relative;
  z-index: 1;
}
.ak-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--ak-line);
  border-radius: 999px;
  background: rgba(10, 27, 20, 0.6);
  font: 600 13px/1 var(--font-technical);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ak-lime);
}
.ak-intro-headline,
.ak-kicker.ak-intro-headline {
  display: inline-block;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin-bottom: clamp(36px, 4vw, 54px);
  font-family: var(--font-display);
  font-size: clamp(44px, 5.6vw, 84px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: none;
  white-space: nowrap;
  color: var(--white);
  text-decoration: none;
  text-shadow: none;
}
.ak-intro-headline::before,
.ak-kicker.ak-intro-headline::before {
  display: none !important;
}
.ak-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ak-lime);
  box-shadow: 0 0 0 0 rgba(160, 230, 109, 0.7);
  animation: live-pulse 2.2s ease-out infinite;
}
@keyframes live-pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(160, 230, 109, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(160, 230, 109, 0);
  }
}
.change-copy h2 {
  font-family: var(--font-technical);
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 14ch;
  color: var(--ak-lime);
}
.change-copy h2 em {
  font-style: normal;
  color: var(--ak-lime);
}
.change-copy > p {
  color: var(--ak-muted);
  font-size: 19px;
  max-width: 480px;
}
.change-readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--ak-line);
  font: 500 12.5px/1.35 var(--font-technical);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ak-muted);
}
.change-readout b {
  display: block;
  margin-bottom: 8px;
  font: 600 19px/1 var(--font-technical);
  letter-spacing: -0.01em;
  color: var(--ak-lime);
}
.change-section .button.primary {
  background: var(--ak-lime);
  border-color: var(--ak-lime);
  color: var(--ak-ink);
}
.change-section .button.primary:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ak-ink);
}
@media (min-width: 761px) {
  .change-section .change-story {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 60px;
  }
}
.change-section .detection-triptych {
  gap: 16px;
}
.change-section .detection-triptych .image-open {
  background: rgba(22, 46, 36, 0.85);
  border: 1px solid var(--ak-line);
  transition:
    border-color 0.4s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.change-section .detection-triptych .image-open:hover {
  border-color: var(--ak-lime);
  transform: translateY(-6px);
}
.change-section .akshaa-grid-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.change-section .akshaa-grid-gallery .image-open {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(22, 46, 36, 0.85);
  border: 1px solid var(--ak-line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition:
    border-color 0.4s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}
.change-section .akshaa-grid-gallery .image-open:hover {
  border-color: var(--ak-lime);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.change-section .akshaa-grid-gallery .image-open img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.change-section .akshaa-grid-gallery .image-open:hover img {
  transform: scale(1.06);
}
.change-section .change-frame figcaption {
  color: var(--ak-muted);
  font-family: var(--font-technical);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.change-section .image-open::after {
  background: var(--ak-lime);
  color: var(--ak-ink);
}

/* Team snapshots keep their resting angle on hover. */
#team .team-moment .image-open {
  cursor: zoom-in;
}

/* ---------------------------------------------------------------------------
   6. Akshaa page — the green stops at the opening view
   Hero + subnav stay Akshaa green. Everything below splits into two clearly
   different worlds: Urban (daylight) and Defence (operations room).
   --------------------------------------------------------------------------- */

#akshaa {
  --paper: var(--white);
  --mist: #f3f7f9;
  --ink: #14243b;
  --muted: #58677c;
  --line: #dce3ed;
  --cyan: var(--ub-accent);
  --cyan2: #0c6a8e;
  color: var(--ink);
  background: var(--white);
}
#akshaa :focus-visible {
  outline-color: var(--ub-accent);
}

/* --- Opening view: still Akshaa green --- */
.ak-hero {
  position: relative;
  overflow: hidden;
  background: var(--ak-ink);
  color: var(--white);
}
.ak-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      58% 86% at 76% 14%,
      rgba(160, 230, 109, 0.2),
      transparent 68%
    ),
    radial-gradient(
      54% 74% at 6% 96%,
      rgba(40, 88, 61, 0.6),
      transparent 70%
    );
}
.ak-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(var(--ak-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ak-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(
    70% 70% at 40% 45%,
    #000,
    transparent 80%
  );
  mask-image: radial-gradient(70% 70% at 40% 45%, #000, transparent 80%);
}
.ak-hero > .shell {
  position: relative;
  z-index: 1;
}
.ak-hero h1,
.ak-hero p,
.ak-hero .ak-tagline {
  color: inherit;
}
.ak-hero-copy h1 {
  color: var(--ak-lime);
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ak-hero-copy > p {
  color: var(--ak-muted);
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.ak-hero-actions {
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.ak-brand-lockup {
  animation: hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ak-hero .ak-lens-main > .image-open {
  border: 0;
  background: transparent;
}
.ak-hero .ak-lens-main figcaption {
  color: var(--ak-muted);
  font-family: var(--font-technical);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ak-hero .image-open::after {
  background: var(--ak-lime);
  color: var(--ak-ink);
}
.ak-hero .ak-primary {
  background: var(--ak-lime);
  color: var(--ak-ink);
  border-color: var(--ak-lime);
}
.ak-hero .ak-secondary {
  border-color: var(--ak-line);
  color: var(--white);
}

/* --- Dividing band: states plainly that these are two different products --- */
.ak-split {
  border-bottom: 1px solid var(--ub-line);
  background: var(--white);
  padding-block: 56px;
}
.ak-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--ub-line);
  border-radius: 12px;
  overflow: hidden;
}
.ak-split-card {
  position: relative;
  padding: 34px 32px;
  transition:
    background-color 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ak-split-card + .ak-split-card {
  border-left: 1px solid var(--ub-line);
}
.ak-split-card.urban {
  background:
    radial-gradient(ellipse at 14% 0%, rgba(160, 230, 109, 0.28), transparent 48%),
    linear-gradient(145deg, #f4faed, #e3f1d7 78%);
  color: #263c2d;
}
.ak-split-card.defence {
  background: linear-gradient(145deg, #28583d, #173d2c 78%);
  color: #f0f6e9;
}
.ak-split-card h3 {
  margin: 14px 0 10px;
  font-family: var(--font-technical);
  font-size: 26px;
  letter-spacing: -0.03em;
}
.ak-split-card.urban h3 {
  color: #28583d;
}
.ak-split-card.defence h3 {
  color: #f3f7df;
}
.ak-split-card p {
  margin: 0 0 18px;
  font-size: 16.5px;
}
.ak-split-card.urban p {
  color: #425a48;
}
.ak-split-card.defence p {
  color: #dce9cc;
}
.ak-split-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font: 600 12px/1 var(--font-technical);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ak-split-card.defence .ak-split-tag {
  background: rgba(12, 35, 24, 0.42);
  color: #d9edb6;
  border-radius: 2px;
}
#akshaa .image-open {
  border: 2px solid #000;
}
.ak-split-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15.5px;
}
.ak-split-list li {
  position: relative;
  padding-left: 22px;
}
.ak-split-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
}
.ak-split-card.urban .ak-split-list li::before {
  border-radius: 50%;
  background: #79b94f;
}
.ak-split-card.defence .ak-split-list li::before {
  background: #70583a;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.ak-split-card.urban .ak-split-list {
  color: #425a48;
}
.ak-split-card.defence .ak-split-list {
  color: #e0ebd8;
}

#akshaa .image-open:hover img {
  transform: scale(1.03);
}

/* --- Akshaa Infra: bright mapping studio --------------------------------- */
.ak-infra {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 92% 14%, rgba(159, 219, 115, 0.28), transparent 38%),
    linear-gradient(145deg, #f4faed, #e8f3df 62%, #f7faef);
}
.ak-infra::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(45, 94, 50, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 94, 50, 0.14) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(110deg, #000, transparent 82%);
}
.ak-infra > .shell {
  position: relative;
  z-index: 1;
}
.ak-infra .ak-section-head > p {
  color: #4b6353;
}
.ak-infra .image-open::after {
  background: #2e6339;
  color: #f3f9e9;
}
.ak-infra .ak-infra-image .image-open {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.ak-infra .ak-infra-image .image-open:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(35, 80, 43, 0.18);
}

/* --- Akshaa Defence: operations room -------------------------------------- */

.ak-defence {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--df-surface), var(--df-ink) 60%);
  color: #e8f3ea;
  --muted: var(--df-muted);
  --line: var(--df-line);
}
.ak-defence::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.025) 0 1px,
    transparent 1px 4px
  );
}
.ak-defence::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    60% 60% at 78% 10%,
    rgba(160, 230, 109, 0.14),
    transparent 70%
  );
}
.ak-defence > .shell {
  position: relative;
  z-index: 1;
}
.ak-defence h2,
.ak-defence h3 {
  color: var(--white);
}
.ak-defence .ak-area-tag {
  color: var(--df-accent);
}
.ak-defence .ak-area-tag::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--df-accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: live-pulse 2.6s ease-out infinite;
}
.ak-defence .ak-section-head > p {
  color: var(--df-muted);
}
.ak-defence p {
  color: var(--df-muted);
}
.ak-defence .defence-image .image-open {
  position: relative;
  border-radius: 2px;
  border: 1px solid var(--df-line);
  background: var(--df-surface);
  padding: 8px;
  transition: border-color 0.4s ease;
}
.ak-defence .defence-image .image-open:hover {
  border-color: var(--df-accent);
}
.ak-defence .defence-image figcaption,
.ak-defence .defence-answer {
  font-family: var(--font-technical);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 12.5px;
}
.ak-defence .defence-image figcaption {
  color: var(--df-accent);
}
.ak-defence .temporal-pair > .image-open::before {
  background: var(--df-accent);
  color: var(--df-ink);
  font-family: var(--font-technical);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}
.ak-defence .source-contact-sheet .image-open {
  border: 1px solid var(--df-line);
  border-radius: 2px;
  background: var(--df-surface);
}
.ak-defence .defence-answer {
  border-top-color: var(--df-line);
}
.ak-defence .defence-answer span {
  padding: 5px 10px;
  border: 1px solid var(--df-line);
  border-radius: 2px;
  color: var(--df-muted);
}
.ak-defence .defence-phases {
  gap: 0;
  border-top: 1px solid var(--df-line);
}
.ak-defence .defence-phase {
  position: relative;
  border-top: 0;
  border-right: 1px solid var(--df-line);
  padding: 28px 28px 10px;
  transition: background-color 0.4s ease;
}
.ak-defence .defence-phase:first-child {
  padding-left: 0;
}
.ak-defence .defence-phase:last-child {
  border-right: 0;
}
.ak-defence .defence-phase:hover {
  background: rgba(160, 230, 109, 0.06);
}
.ak-defence .defence-phase h3 {
  font-family: var(--font-technical);
  font-size: 22px;
}
.ak-defence .defence-phase::before {
  content: counter(df-step, decimal-leading-zero);
  counter-increment: df-step;
  display: block;
  margin-bottom: 12px;
  font: 700 13px/1 var(--font-technical);
  letter-spacing: 0.14em;
  color: var(--df-accent);
}
.ak-defence .defence-phases {
  counter-reset: df-step;
}
.ak-defence .image-open::after {
  background: var(--df-accent);
  color: var(--df-ink);
}
.ak-defence .reserved-photo {
  background: var(--df-surface);
  border-color: var(--df-line);
  color: var(--df-muted);
}

/* --- Pista close-out: "Discuss Akshaa with our team" ---------------------- */
.ak-contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(118deg, var(--ak-pista-light), var(--ak-pista));
  color: var(--ak-pista-ink);
}
.ak-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 90% 20%, var(--ak-pista-light), transparent 65%);
}
.ak-contact > .shell {
  position: relative;
  z-index: 1;
  align-items: center;
}
.ak-contact h2 {
  color: var(--ak-pista-ink);
  font-size: clamp(30px, 3vw, 42px);
  max-width: 18ch;
}
.ak-contact .ak-contact-copy p {
  margin: 12px 0 0;
  max-width: 46ch;
  color: var(--ak-pista-muted);
  font-size: 17px;
}
.ak-contact .button.ak-primary {
  background: var(--ak-pista-ink);
  border-color: var(--ak-pista-ink);
  color: var(--ak-pista-light);
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ak-contact .button.ak-primary:hover {
  background: var(--ak-pista-muted);
  border-color: var(--ak-pista-muted);
}
.ak-contact :focus-visible { outline-color: var(--ak-pista-ink); }

/* ---------------------------------------------------------------------------
   7. Team — the page should feel like the people on it
   --------------------------------------------------------------------------- */

.team-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 100% at 88% 0%, #ffe9d6, transparent 62%),
    radial-gradient(52% 92% at 4% 24%, #e3f4ff, transparent 64%),
    linear-gradient(180deg, #fffaf4, #f4f8fb);
}
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  opacity: 0.55;
  animation: confetti-float 9s ease-in-out infinite;
}
.confetti i:nth-child(odd) {
  border-radius: 50%;
}
@keyframes confetti-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-22px) rotate(140deg);
  }
}
.team-stage > .shell {
  position: relative;
  z-index: 1;
}
.team-stage-copy h1 {
  position: relative;
  color: #11314d;
  font-size: clamp(42px, 5vw, 66px);
}
.team-stage-copy h1 .squiggle {
  display: block;
  width: 190px;
  max-width: 100%;
  margin-top: 10px;
  color: var(--joy-1);
}
.team-stage-copy h1 .squiggle path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw-squiggle 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
@keyframes draw-squiggle {
  to {
    stroke-dashoffset: 0;
  }
}
.team-cheer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.team-cheer span {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid #e3e9f0;
  box-shadow: 0 6px 18px rgba(17, 49, 77, 0.07);
  font: 600 14.5px/1 var(--font-body);
  color: #2b4257;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.team-cheer span:nth-child(1) {
  border-color: #ffd2bd;
}
.team-cheer span:nth-child(2) {
  border-color: #ffe6b0;
}
.team-cheer span:nth-child(3) {
  border-color: #bdf0de;
}
.team-cheer span:nth-child(4) {
  border-color: #c7e2ff;
}
.team-cheer span:hover {
  transform: translateY(-4px) rotate(-2deg);
}
.team-hero-photo {
  position: relative;
}
.team-hero-photo .image-open {
  border-radius: 14px;
  border: 10px solid var(--white);
  box-shadow: 0 24px 60px rgba(17, 49, 77, 0.16);
  transform: rotate(-1.2deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.team-hero-photo .image-open:hover {
  transform: rotate(0deg) scale(1.01);
}
.team-hero-photo figcaption {
  font-size: 15px;
  color: #5b6b7d;
}

.team-moments {
  background: var(--white);
}
.moments-grid {
  gap: 34px 28px;
}
.team-moment .image-open {
  border-radius: 14px;
  border: 8px solid var(--white);
  box-shadow: 0 16px 38px rgba(17, 49, 77, 0.12);
  transition: box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-moment:nth-child(3n + 1) .image-open {
  transform: rotate(-1.6deg);
}
.team-moment:nth-child(3n + 2) .image-open {
  transform: rotate(1.4deg);
}
.team-moment:nth-child(3n) .image-open {
  transform: rotate(-0.7deg);
}
.team-moment .image-open:hover {
  box-shadow: 0 28px 56px rgba(17, 49, 77, 0.2);
}
.team-moment figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  color: #40546a;
  font-size: 15.5px;
}
.team-moment figcaption span {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font: 700 11.5px/1 var(--font-technical);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a4420;
  background: #ffeadd;
}
.team-moment:nth-child(2) figcaption span {
  color: #1d6a53;
  background: #d9f5ec;
}
.team-moment:nth-child(3) figcaption span {
  color: #1c4f84;
  background: #dcecfc;
}
.team-moment:nth-child(4) figcaption span {
  color: #7a3570;
  background: #f7e3f4;
}
.team-moment figcaption strong {
  font-weight: 600;
}
.team-moment .reserved-photo {
  border-radius: 14px;
  border: 2px dashed #d9e2ec;
  background: #f7fafc;
}

.people-section {
  background: linear-gradient(180deg, #f5f9fc, #eef4f9);
}
.people-grid {
  gap: 34px 26px;
}
.person-row {
  position: relative;
  padding-bottom: 18px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(17, 49, 77, 0.07);
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.person-row::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: var(--person-accent, var(--joy-4));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.person-row:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 52px rgba(17, 49, 77, 0.16);
}
.person-row:hover::before,
.person-row:focus-within::before {
  transform: scaleX(1);
}
.person-portrait {
  border-radius: 0;
  background: #e9eff5;
}
.person-portrait img {
  filter: saturate(0.82);
  transition:
    filter 0.5s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.person-row:hover .person-portrait img {
  filter: saturate(1.08);
  transform: scale(1.04);
}
.person-copy {
  padding: 18px 20px 0;
}
.person-copy h3 {
  color: #11314d;
}
.member-role {
  display: inline-block;
  margin-top: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--person-tint, #eef4fb);
  color: #3c5468;
  font-size: 14.5px;
}

/* ---------------------------------------------------------------------------
   8. Careers — give people a reason to press the button
   --------------------------------------------------------------------------- */

#careers .page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #06202f, #0b3d58 55%, #0a6490);
  color: var(--white);
  border-bottom: 0;
  padding-block: 84px 92px;
}
#careers .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      50% 70% at 78% 24%,
      rgba(66, 210, 231, 0.26),
      transparent 68%
    ),
    radial-gradient(
      40% 60% at 10% 92%,
      rgba(10, 122, 176, 0.45),
      transparent 70%
    );
}
#careers .page-hero > .shell {
  position: relative;
  z-index: 1;
}
#careers .page-hero h1 {
  color: var(--white);
  font-size: clamp(42px, 5vw, 64px);
  max-width: 12ch;
}
#careers .page-hero-grid > div > p {
  color: #c7dcf2;
  font-size: 20px;
}
.careers-starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.careers-starfield i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.5;
  animation: twinkle 3.4s ease-in-out infinite;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.18;
    transform: scale(0.7);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.25);
  }
}
.careers-aircraft {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  min-height: 400px;
  margin: 0;
}
.careers-aircraft img {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(3, 16, 32, 0.28));
}
.careers-aircraft::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 10%;
  bottom: 14%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(66, 185, 232, 0.22),
    transparent 65%
  );
  filter: blur(18px);
  opacity: 0.65;
}
.careers-aircraft figcaption {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  font-size: 14.5px;
  color: #a9c6e4;
}

.careers-pitch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.careers-pitch span {
  padding: 9px 16px;
  border: 1px solid rgba(168, 204, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font: 600 14.5px/1 var(--font-body);
  color: #dcebfb;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.3s ease;
}
.careers-pitch span:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.16);
}

.job-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  transition:
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}
.job-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--sky-bright));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.job-card:hover,
.job-card:focus-within {
  transform: none;
  border-color: #c3d6ee;
  box-shadow: 0 22px 48px rgba(10, 41, 59, 0.12);
}
.job-card:hover::before,
.job-card:focus-within::before {
  transform: scaleY(1);
}
.job-card .apply-button {
  position: relative;
  overflow: hidden;
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--white);
  font-weight: 700;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s ease;
}
.job-card .apply-button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
}
.job-card:hover .apply-button::after {
  animation: shimmer 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes shimmer {
  to {
    transform: translateX(130%) skewX(-18deg);
  }
}
.job-card .apply-button:hover {
  background: var(--cyan2);
  border-color: var(--cyan2);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(10, 122, 176, 0.34);
}
.job-description summary span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mist);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.job-description summary:hover span {
  background: var(--cyan);
  color: var(--white);
}
.career-intro > a {
  display: inline-block;
  position: relative;
  color: var(--cyan);
  font-weight: 600;
}
.career-intro > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.career-intro > a:hover::after {
  transform: scaleX(1);
}

/* ---------------------------------------------------------------------------
   9. Responsive adjustments for the new blocks
   --------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .ak-split-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ak-split-card + .ak-split-card {
    border-left: 0;
    border-top: 1px solid var(--ub-line);
  }
  .ak-defence .defence-phase {
    border-right: 0;
    border-bottom: 1px solid var(--df-line);
    padding-inline: 0;
  }
  .ak-contact > .shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .careers-aircraft {
    min-height: 300px;
  }
  .careers-aircraft img {
    width: min(100%, 320px);
  }
}
@media (max-width: 760px) {
  .change-copy h2 {
    max-width: none;
  }
  .change-readout {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 18px 16px;
    overflow-wrap: anywhere;
  }
  .change-readout b {
    font-size: 17px;
  }
  .ak-kicker {
    letter-spacing: 0.06em;
  }
  .ak-intro-headline,
  .ak-kicker.ak-intro-headline {
    font-size: clamp(28px, 6.8vw, 44px);
    white-space: nowrap;
    color: var(--white);
    text-decoration: none;
    text-shadow: none;
    margin-bottom: 24px;
  }
  /* The zoom affordance is half the width of these tiles at phone sizes. */
  .change-section .detection-triptych .image-open::after,
  .source-contact-sheet .image-open::after {
    width: 24px;
    height: 24px;
    bottom: 7px;
    right: 7px;
    font-size: 14px;
  }
  .team-stage-copy h1 .squiggle {
    width: 140px;
  }
  .ak-defence .defence-collage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }
  .ak-defence .defence-image.primary {
    grid-row: auto;
  }
  .person-copy {
    padding: 14px 14px 0;
  }
  .careers-aircraft img {
    width: min(78%, 260px);
  }
  .careers-pitch span,
  .team-cheer span {
    font-size: 13.5px;
    padding: 7px 13px;
  }
}

/* ---------------------------------------------------------------------------
   10. Reduced motion — keep the colour, drop the movement
   --------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .confetti,
  .careers-starfield,
  .atlas-progress {
    display: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  /* The clientele rail is a slow ambient ticker and always keeps flowing. */
  .client-band .client-logo {
    filter: none;
    opacity: 1;
  }
  [data-reveal] img {
    transform: none !important;
  }
  .team-hero-photo .image-open,
  .team-moment .image-open {
    transform: none !important;
  }
}

@media (forced-colors: active) {
  .confetti,
  .careers-starfield {
    display: none;
  }
  .change-section,
  .ak-defence,
  .ak-contact,
  #careers .page-hero {
    background: Canvas;
    color: CanvasText;
  }
  .ak-split-card,
  .job-card,
  .person-row {
    border: 1px solid CanvasText;
  }
}

/* ---------------------------------------------------------------------------
   11. Home — "Why enterprises trust us" strip
   A dense band rather than a full section: the heading sits beside the points
   instead of above them, and the vertical rhythm is deliberately tighter than
   the surrounding sections.
   --------------------------------------------------------------------------- */

.trust-strip {
  position: relative;
  overflow: hidden;
  padding: 52px var(--gutter);
  background: linear-gradient(118deg, #06202f, #0a5478 58%, #0a7ab0);
  color: var(--white);
  border-block: 1px solid #0a7ab0;
}
.trust-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      44% 110% at 92% 6%,
      rgba(143, 216, 245, 0.26),
      transparent 68%
    ),
    radial-gradient(
      36% 90% at 2% 100%,
      rgba(6, 32, 47, 0.75),
      transparent 70%
    );
}
.trust-strip-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.trust-strip-lead h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  color: var(--white);
}
.trust-strip-lead p {
  margin: 0;
  font-size: 15.5px;
  color: #bfe4f5;
}
.trust-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust-points li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 6px;
}
.trust-icon {
  grid-row: 1 / 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(143, 216, 245, 0.16);
  border: 1px solid rgba(143, 216, 245, 0.34);
  color: #9fe3fb;
  transition:
    background-color 0.35s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.trust-icon svg {
  width: 20px;
  height: 20px;
}
.trust-points li:hover .trust-icon {
  background: rgba(143, 216, 245, 0.3);
  transform: translateY(-3px) rotate(-5deg);
}
.trust-points h3 {
  grid-column: 2;
  align-self: center;
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  color: var(--white);
}
.trust-points p {
  grid-column: 2;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #cfe7f5;
}

@media (max-width: 1100px) {
  .trust-strip-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .trust-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .trust-strip {
    padding: 40px var(--gutter);
  }
  .trust-points {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .trust-strip-lead h2 {
    font-size: 26px;
  }
}

/* ---------------------------------------------------------------------------
   13. Solutions — sectors alternate copy/image, left then right
   --------------------------------------------------------------------------- */

.solution-families {
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.solution-family,
.solution-family:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  border: 1px solid var(--sky-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  transition:
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}
.solution-family:hover {
  border-color: var(--sky-bright);
  box-shadow: 0 22px 48px rgba(10, 61, 88, 0.1);
}
/* Copy first on odd rows, image first on even ones. The DOM order stays
   image-then-copy, so the reading order is unchanged on narrow screens. */
.solution-family .service-copy {
  order: 1;
}
.solution-family .service-media {
  order: 2;
}
.solution-family:nth-child(even) .service-copy {
  order: 2;
}
.solution-family:nth-child(even) .service-media {
  order: 1;
}
.solution-family .service-copy {
  padding: 46px 44px;
}
.solution-family .service-media .image-open,
.solution-family:first-child .service-media .image-open {
  height: 100%;
  min-height: 400px;
  border-radius: 0;
}
.solution-family.road img,
.solution-family.city img,
.solution-family.water img {
  object-fit: cover;
  padding: 0;
}
.solution-family h2 {
  font-size: 36px;
}
.solution-family:nth-child(even) {
  background: linear-gradient(140deg, var(--sky-tint), var(--white) 62%);
}
.solution-family .solution-spec {
  border-top-color: var(--sky-line);
}

/* ---------------------------------------------------------------------------
   14. Solutions — the survey road
   --------------------------------------------------------------------------- */

.chain-intro p {
  max-width: 54ch;
  margin: 12px 0 0;
  padding-bottom: 0;
  color: var(--muted);
  font-size: 17.5px;
}
.chain-road {
  /* The viewBox is 1200x640 with preserveAspectRatio="none", so y maps 1:1
     onto these pixel values and x simply stretches. --road-high / --road-low
     are the two heights the path alternates between; the cards hang off them.
     Their separation has to exceed two card heights or the "above" and
     "below" cards land in the same band and the alternation disappears. */
  --road-h: 660px;
  --road-high: 140px;
  --road-low: 560px;
  --stop-gap: 26px;
  position: relative;
  height: var(--road-h);
  /* The path's own top edge leaves 140px of headroom inside the box; pull the
     box up so the section does not open with a band of nothing. */
  margin-top: -36px;
}
.road-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.road-surface {
  fill: none;
  stroke: #0e3a52;
  stroke-width: 26;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.road-centre {
  fill: none;
  stroke: var(--sky-bright);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 16 18;
  vector-effect: non-scaling-stroke;
  animation: road-flow 2.4s linear infinite;
}
@keyframes road-flow {
  to {
    stroke-dashoffset: -34;
  }
}
.chain-stops {
  position: relative;
  z-index: 1;
  height: var(--road-h);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.chain-stop {
  position: relative;
}
/* 200/260 and 60/260 of the viewBox — the two heights the road alternates
   between. preserveAspectRatio="none" makes the mapping exact. */
.stop-pin {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 5px solid var(--cyan);
  box-shadow: 0 0 0 5px rgba(66, 185, 232, 0.25);
  translate: -50% -50%;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease;
}
.chain-stop.up .stop-pin {
  top: var(--road-low);
}
.chain-stop.down .stop-pin {
  top: var(--road-high);
}
.chain-stop.finish .stop-pin {
  border-color: var(--success);
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(33, 99, 78, 0.22);
}
.chain-stop:hover .stop-pin {
  transform: scale(1.22);
}
.stop-card {
  position: absolute;
  left: 50%;
  width: min(100%, 212px);
  translate: -50% 0;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--sky-line);
  box-shadow: 0 12px 28px rgba(10, 61, 88, 0.1);
  text-align: center;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.chain-stop.up .stop-card {
  bottom: calc(var(--road-h) - var(--road-low) + var(--stop-gap));
}
.chain-stop.down .stop-card {
  top: calc(var(--road-high) + var(--stop-gap));
}
.chain-stop:hover .stop-card {
  transform: translate(-50%, -5px);
  box-shadow: 0 22px 44px rgba(10, 61, 88, 0.18);
}
/* A short leader so each card reads as attached to its pin. */
.stop-card::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: var(--stop-gap);
  background: var(--sky-line);
  translate: -50% 0;
}
.chain-stop.up .stop-card::after {
  top: 100%;
}
.chain-stop.down .stop-card::after {
  bottom: 100%;
}
.stop-no {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--white);
  font: 700 15px/1 var(--font-technical);
  letter-spacing: 0.04em;
}
.chain-stop.finish .stop-no {
  background: var(--success);
}
.stop-card strong {
  display: block;
  margin-bottom: 7px;
  font: 600 21px/1.2 var(--font-display);
  color: #0b2f45;
}
.stop-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .solution-family,
  .solution-family:first-child {
    grid-template-columns: minmax(0, 1fr);
  }
  .solution-family .service-copy,
  .solution-family:nth-child(even) .service-copy {
    order: 2;
    padding: 32px 28px;
  }
  .solution-family .service-media,
  .solution-family:nth-child(even) .service-media {
    order: 1;
  }
  .solution-family .service-media .image-open,
  .solution-family:first-child .service-media .image-open {
    min-height: 0;
    height: 300px;
  }
  .solution-family h2 {
    font-size: 30px;
  }
  /* Below this width the winding road has nowhere to wind: stack the stops
     against a straight vertical run instead. */
  .road-line {
    display: none;
  }
  .chain-road,
  .chain-stops {
    height: auto;
    min-height: 0;
  }
  .chain-stops {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-left: 34px;
    border-left: 4px dashed var(--sky-line);
  }
  .chain-stop,
  .chain-stop.up,
  .chain-stop.down {
    padding-block: 14px;
  }
  /* These must out-specify .chain-stop.up/.down .stop-pin above, or the pins
     stay parked at the desktop road heights. */
  .chain-stop.up .stop-pin,
  .chain-stop.down .stop-pin {
    top: 51px;
    left: -36px;
  }
  .chain-stop .stop-card,
  .chain-stop.up .stop-card,
  .chain-stop.down .stop-card {
    position: static;
    width: 100%;
    translate: none;
    text-align: left;
  }
  .chain-stop:hover .stop-card {
    transform: none;
  }
  .stop-card::after {
    display: none;
  }
}

/* Keep the Technology hero image gently moving while its route is visible. */
#technology:not([hidden]) .page-hero::before {
  animation: technology-hero-drift 24s ease-in-out infinite alternate;
}
@keyframes technology-hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1%, 1%, 0); }
}
.defence-detection-stack {
  display: grid;
  gap: 24px;
  align-content: start;
  min-width: 0;
}
@media (prefers-reduced-motion: reduce) {
  #technology:not([hidden]) .page-hero::before {
    animation: none;
    transform: scale(1.04);
  }
}

/* Team memories open with a playful photo-print bounce. */
@keyframes team-photo-pop {
  0% { opacity: 0; transform: translateY(30px) scale(0.86) rotate(-3deg); }
  65% { opacity: 1; transform: translateY(-4px) scale(1.015) rotate(0.8deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@keyframes team-backdrop-in {
  from { background-color: #061a2700; }
  to { background-color: #061a27e6; }
}
.image-viewer.team-photo-viewer[open] {
  animation: team-photo-pop 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.image-viewer.team-photo-viewer[open]::backdrop {
  animation: team-backdrop-in 300ms ease-out both;
}
@media (prefers-reduced-motion: reduce) {
  .image-viewer.team-photo-viewer[open],
  .image-viewer.team-photo-viewer[open]::backdrop { animation: none; }
}

/* Team page: brighten the first impression and give the memories room to shine. */
#team .team-stage {
  padding-block: 54px 64px;
  background:
    radial-gradient(34rem 28rem at 88% 42%, rgba(255, 194, 77, 0.23), transparent 72%),
    radial-gradient(32rem 26rem at 10% 16%, rgba(90, 169, 255, 0.19), transparent 70%),
    linear-gradient(135deg, #fffaf2 0%, #fff4ee 52%, #f1fbff 100%);
}
#team .team-stage-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}
#team .team-stage-copy {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.team-eyebrow,
.moments-heading > span {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid #ffd3bd;
  border-radius: 999px;
  background: #fff;
  color: #a94d2d;
  font: 700 12px/1 var(--font-technical);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
#team .team-stage-copy h1 {
  color: #12344f;
  font-size: clamp(58px, 6.2vw, 84px);
  line-height: 0.98;
}
#team .team-stage-copy h1 .squiggle {
  width: 210px;
  margin-top: 18px;
  color: #ff7659;
}
#team .team-stage-copy p {
  max-width: 38ch;
  padding-left: 20px;
  border-left: 4px solid #ffbd4a;
  color: #435a6d;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
}
#team .team-cheer {
  gap: 11px;
  margin-top: 22px;
}
#team .team-cheer span {
  padding: 10px 15px;
  border: 0;
  box-shadow: 0 8px 20px rgba(17, 49, 77, 0.08);
}
#team .team-cheer span:nth-child(1) { background: #fff0e8; }
#team .team-cheer span:nth-child(2) { background: #fff6df; }
#team .team-cheer span:nth-child(3) { background: #e6f8f1; }
#team .team-cheer span:nth-child(4) { background: #eaf3ff; }
#team .team-hero-photo img {
  height: clamp(360px, 39vw, 480px);
  object-position: center 30%;
}
#team .team-hero-photo .image-open {
  border: 12px solid #fff;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(69, 92, 126, 0.2);
  transform: rotate(1.2deg);
}
#team .team-hero-photo .image-open:hover {
  transform: rotate(0) translateY(-5px);
}
#team .team-hero-photo figcaption {
  position: absolute;
  right: 24px;
  bottom: 20px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: #fff;
  color: #24435a;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(17, 49, 77, 0.12);
}
#team .team-moments {
  padding-block: 76px 88px;
  background:
    radial-gradient(ellipse at 50% 0%, #fff9eb 0%, transparent 60%),
    #fff;
}
#team .moments-heading {
  max-width: 740px;
  margin: 0 auto 40px;
  text-align: center;
}
#team .moments-heading > span {
  margin-bottom: 16px;
  border-color: #c8e8ff;
  background: #eff8ff;
  color: #176390;
}
#team .moments-heading h2 {
  margin: 0;
  color: #14344c;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}
#team .moments-heading h2 em {
  color: #f06a55;
  font-family: var(--font-display);
  font-weight: 400;
}
#team .moments-heading p {
  margin: 12px 0 0;
  color: #64788a;
  font-size: 17px;
}
#team .moments-grid {
  gap: 34px 30px;
}
#team .team-moment .image-open {
  border-width: 9px;
  box-shadow: 0 18px 36px rgba(36, 67, 90, 0.13);
}
#team .team-moment:nth-child(4n + 1) .image-open { border-color: #fff0e8; }
#team .team-moment:nth-child(4n + 2) .image-open { border-color: #fff6df; }
#team .team-moment:nth-child(4n + 3) .image-open { border-color: #e6f8f1; }
#team .team-moment:nth-child(4n) .image-open { border-color: #eaf3ff; }
#team .team-moment figcaption {
  justify-content: center;
  margin-top: 15px;
  color: #37536a;
}
#team .team-moment figcaption strong {
  padding: 6px 13px;
  border-radius: 999px;
  background: #f2f7fb;
  font-size: 14px;
}
#team .team-moment:nth-child(4n + 1) figcaption strong { background: #fff0e8; }
#team .team-moment:nth-child(4n + 2) figcaption strong { background: #fff6df; }
#team .team-moment:nth-child(4n + 3) figcaption strong { background: #e6f8f1; }
#team .team-moment:nth-child(4n) figcaption strong { background: #eaf3ff; }
#team .team-moment:last-child {
  grid-column: 2;
}
#team .people-section {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 194, 77, 0.14), transparent 45%),
    linear-gradient(180deg, #f3f9ff 0%, #fff8f3 100%);
}
#team .people-section .section-head {
  align-items: end;
  margin-bottom: 44px;
}
#team .people-section .kicker {
  color: #ad5735;
}
#team .people-section .heading {
  color: #14344c;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}
#team .people-section .section-head > p {
  max-width: 390px;
  color: #64788a;
  line-height: 1.55;
}
#team .people-grid {
  gap: 28px 24px;
  align-items: stretch;
}
#team .person-row,
#team .person-row:nth-child(-n + 3) {
  grid-column: span 3;
  overflow: hidden;
  padding: 0 0 20px;
  border: 1px solid rgba(21, 59, 87, 0.09);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 64, 91, 0.07);
  transform: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
#team .person-row:nth-child(-n + 3) .person-portrait img,
#team .person-portrait img {
  height: 280px;
  filter: saturate(1.06);
}
#team .person-portrait {
  border-radius: 0;
  background: linear-gradient(145deg, #e9f2f8, #f8f2eb);
}
#team .person-portrait .image-open {
  height: 280px;
}
#team .person-portrait .image-open img {
  transition: transform 300ms ease;
}
#team .person-copy {
  padding: 18px 20px 0;
}
#team .person-row:nth-child(-n + 3) h3,
#team .person-copy h3 {
  margin-bottom: 10px;
  color: #173c58;
  font-size: 21px;
  line-height: 1.2;
}
#team .person-row:hover,
#team .person-row:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(30, 64, 91, 0.13);
}
#team .person-row:last-child {
  grid-column: 5 / span 3;
}
#team .member-role {
  display: inline-block;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f7fb;
  color: #536b7e;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  #team .team-stage-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  #team .team-stage-copy {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
  }
  #team .team-hero-photo img {
    height: 400px;
  }
  #team .person-row,
  #team .person-row:nth-child(-n + 3) {
    grid-column: span 2;
  }
  #team .person-row:last-child {
    grid-column: 3 / span 2;
  }
  #team .team-moment:last-child {
    grid-column: auto;
  }
}
@media (max-width: 760px) {
  #team .team-stage {
    padding-block: 40px 48px;
  }
  #team .team-stage-copy {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  #team .team-stage-copy h1 {
    font-size: clamp(52px, 13vw, 72px);
  }
  #team .team-hero-photo img {
    height: 310px;
  }
  #team .team-moments {
    padding-block: 56px;
  }
  #team .moments-heading {
    margin-bottom: 28px;
  }
  #team .moments-grid {
    gap: 24px 14px;
  }
  #team .person-row,
  #team .person-row:nth-child(-n + 3) {
    grid-column: auto;
  }
  #team .person-row:last-child {
    grid-column: 1 / -1;
    width: 50%;
    justify-self: center;
  }
  #team .person-row:nth-child(-n + 3) .person-portrait img,
  #team .person-portrait img {
    height: 220px;
  }
  #team .person-portrait .image-open {
    height: 220px;
  }
  #team .person-copy {
    padding-inline: 16px;
  }
}
@media (max-width: 460px) {
  #team .moments-grid,
  #team .people-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #team .person-row:last-child {
    width: 100%;
  }
  #team .team-moment .image-open {
    aspect-ratio: 5 / 4;
  }
  #team .person-row:nth-child(-n + 3) .person-portrait img,
  #team .person-portrait img {
    height: 300px;
  }
  #team .person-portrait .image-open {
    height: 300px;
  }
  #team .people-section .section-head {
    align-items: start;
    gap: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #team .team-hero-photo .image-open,
  #team .team-moment .image-open,
  #team .person-row,
  #team .person-row:nth-child(3n + 1),
  #team .person-row:nth-child(3n + 2) {
    transform: none;
  }
  #team .person-row {
    transition: none;
  }
}

/* Keep each page's opening line on the same display scale. */
body #home .hero-copy h1,
body #akshaa .ak-hero-copy h1,
body #technology .page-hero h1,
body #team .team-stage-copy h1,
body #careers .page-hero h1 {
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.04;
}
@media (max-width: 760px) {
  body #home .hero-copy h1,
  body #akshaa .ak-hero-copy h1,
  body #technology .page-hero h1,
  body #team .team-stage-copy h1,
  body #careers .page-hero h1 {
    font-size: clamp(36px, 8vw, 48px);
    line-height: 1.06;
  }
}

#team .team-stage {
  padding-block: 56px 64px;
  background: #fff8f2;
  animation: none;
}
#team .team-stage-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  justify-items: stretch;
  gap: clamp(28px, 5vw, 64px);
}
#team .team-stage-copy {
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 0;
  width: 100%;
  text-align: left;
}
#team .team-stage-intro {
  max-width: 520px;
  margin: 0;
}
#team .team-stage-copy h1 {
  color: #173c58;
}
#team .team-stage-copy p {
  max-width: 44ch;
  margin: 20px 0 0;
  padding-left: 16px;
  border-left: 4px solid #ff9b5e;
  color: #435a6d;
  font-size: 19px;
  text-align: left;
}
#team .team-photo-grid {
  display: grid;
  width: 100%;
  aspect-ratio: 1.55;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
#team .team-photo-tile {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f2ded0;
}
#team .team-photo-tile:first-child {
  grid-row: span 2;
}
#team .team-photo-tile .image-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: transparent;
}
#team .team-photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#team .team-photo-grid figcaption {
  grid-column: 1 / -1;
  padding: 0;
  color: #64788a;
  font-size: 14px;
}
#team .people-section .section-head {
  grid-template-columns: minmax(0, 1fr);
}
#team .people-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
#team .people-grid .person-row {
  grid-column: span 3;
}
#team .people-grid .person-row:nth-child(-n + 2) {
  grid-column: span 6;
}
#team .people-grid .person-row:nth-child(-n + 2) .person-portrait img,
#team .people-grid .person-row:nth-child(-n + 2) .person-portrait .image-open {
  height: 360px;
}
#team .people-grid .person-row:last-child {
  grid-column: span 3;
}
@media (max-width: 1100px) {
  #team .people-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  #team .people-grid .person-row {
    grid-column: span 2;
  }
  #team .people-grid .person-row:nth-child(-n + 2) {
    grid-column: span 3;
  }
  #team .people-grid .person-row:last-child {
    grid-column: span 2;
  }
}
@media (max-width: 760px) {
  #team .team-stage-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  #team .team-stage-copy {
    text-align: left;
  }
  #team .team-photo-grid {
    aspect-ratio: 1.35;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
  #team .team-photo-tile:first-child {
    grid-row: span 2;
  }
  #team .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #team .people-grid .person-row,
  #team .people-grid .person-row:nth-child(-n + 2),
  #team .people-grid .person-row:last-child {
    grid-column: auto;
  }
  #team .people-grid .person-row:nth-child(-n + 2) .person-portrait img,
  #team .people-grid .person-row:nth-child(-n + 2) .person-portrait .image-open {
    height: 220px;
  }
}
@media (max-width: 460px) {
  #team .team-photo-grid {
    gap: 8px;
    aspect-ratio: 1.2;
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
  #team .people-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  #team .team-stage {
    animation: none;
  }
  #team .team-deck-card {
    animation: none;
    visibility: visible;
    opacity: 0.28;
  }
  #team .team-deck-card:nth-child(1) { transform: translate(-50%, -50%) rotate(-10deg) scale(0.88); }
  #team .team-deck-card:nth-child(2) { transform: translate(-50%, -50%) rotate(-6deg) scale(0.92); }
  #team .team-deck-card:nth-child(3) { transform: translate(-50%, -50%) rotate(-2deg) scale(0.96); }
  #team .team-deck-card:nth-child(4) { transform: translate(-50%, -50%) rotate(2deg) scale(0.98); }
  #team .team-deck-card:nth-child(5) { transform: translate(-50%, -50%) rotate(6deg) scale(1); }
  #team .team-deck-card:nth-child(6) { opacity: 1; transform: translate(-50%, -50%); }
}

  /* A framed photo pinboard surrounds the rotating Team hero photograph. */
  body #team .team-stage.team-happening {
    animation: none;
    background:
      radial-gradient(60% 100% at 88% 0%, #ffe9d6, transparent 62%),
      radial-gradient(52% 92% at 4% 24%, #e3f4ff, transparent 64%),
      linear-gradient(180deg, #fffaf4, #f4f8fb);
  }
  body #team .team-stage > .shell {
    z-index: auto;
  }
  body #team .team-stage-copy,
  body #team .team-hero-photo {
    position: relative;
    z-index: 3;
  }
  body #team .team-hero-collage {
    position: absolute;
    z-index: 2;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }
  body #team .team-hero-collage img {
    position: absolute;
    width: clamp(112px, 12vw, 172px);
    height: clamp(82px, 9.5vw, 136px);
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(24, 55, 76, 0.16);
    object-fit: cover;
    opacity: 0.92;
  }
  body #team .team-hero-collage img:nth-child(1) {
    top: 4%;
    left: 1%;
    transform: rotate(-7deg);
  }
  body #team .team-hero-collage img:nth-child(2) {
    top: 7%;
    right: 1%;
    transform: rotate(6deg);
  }
  body #team .team-hero-collage img:nth-child(3) {
    top: 24%;
    left: 0.5%;
    transform: rotate(4deg);
  }
  body #team .team-hero-collage img:nth-child(4) {
    top: 28%;
    right: 0.5%;
    transform: rotate(-6deg);
  }
  body #team .team-hero-collage img:nth-child(5) {
    top: 46%;
    left: 1.5%;
    transform: rotate(-5deg);
  }
  body #team .team-hero-collage img:nth-child(6) {
    top: 50%;
    right: 1.5%;
    transform: rotate(5deg);
  }
  body #team .team-hero-collage img:nth-child(7) {
    top: 68%;
    left: 0.5%;
    transform: rotate(6deg);
  }
  body #team .team-hero-collage img:nth-child(8) {
    top: 72%;
    right: 0.5%;
    transform: rotate(-4deg);
  }
  body #team .team-hero-collage img:nth-child(9) {
    top: 87%;
    left: 2%;
    transform: rotate(-3deg);
  }
  body #team .team-hero-collage img:nth-child(10) {
    top: 87%;
    right: 2%;
    transform: rotate(5deg);
  }
  @media (max-width: 1100px) {
    body #team .team-hero-collage img {
      width: 112px;
      height: 84px;
      padding: 4px;
    }
    body #team .team-hero-collage img:nth-child(n + 5) {
      display: none;
    }
  }
  @media (max-width: 760px) {
    body #team .team-hero-collage {
      display: none;
    }
    body #team .team-stage.team-happening {
      background-image:
        url("assets/team/holi-office-01.jpg"),
        url("assets/fun_team/WhatsApp%20Image%202026-10-22%20at%2012.13.36%20PM.jpeg"),
        radial-gradient(60% 100% at 88% 0%, #ffe9d6, transparent 62%),
        radial-gradient(52% 92% at 4% 24%, #e3f4ff, transparent 64%),
        linear-gradient(180deg, #fffaf4, #f4f8fb);
      background-position: 2% 2%, 98% 2%, 88% 0%, 4% 24%, center;
      background-repeat: no-repeat;
      background-size: 88px 68px, 88px 68px, auto, auto, auto;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    body #team .team-stage.team-happening::before {
      animation: none;
    }
  }

/* ---------------------------------------------------------------------------
  11. Feel-good layer — progress, wipes, shine, soft hovers
   --------------------------------------------------------------------------- */

.site-header {
  transition:
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(14, 79, 116, 0.14);
}

/* Nav links draw an underline from the left */
.desktop-nav .nav-button {
  position: relative;
}
.desktop-nav .nav-button::after {
  position: absolute;
  inset: auto 12px 4px;
  width: auto;
  height: 2px;
  border-radius: 2px;
  background: var(--sky-bright);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.desktop-nav .nav-button:hover::after,
.desktop-nav .nav-button[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: center;
}

.socials a[title="LinkedIn"] { color: #0a66c2; }
.socials a[title="YouTube"] { color: #ff0000; }
.socials a[title="Instagram"] { color: #e4405f; }
.socials a[title="Instagram"] svg {
  color: #e4405f;
}
.socials a {
  background: #fff;
  border-color: #fff;
}
.socials a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  border-color: #fff;
}
.socials a:hover { filter: none; }
.socials a[title="LinkedIn"]:hover { color: #0a66c2; }
.socials a[title="YouTube"]:hover { color: #ff0000; }
.socials a[title="Instagram"]:hover { color: #e4405f; }

/* Buttons: lift, glossy shine sweep, press */
.button,
.header-contact {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s ease,
    color 0.3s ease;
}
.button::before,
.header-contact::before {
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-20deg);
  transition: left 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.button:hover,
.header-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(14, 79, 116, 0.22);
}
.button:hover::before,
.header-contact:hover::before {
  left: 130%;
}
.button:active,
.header-contact:active {
  transform: translateY(0) scale(0.97);
}

/* Trust items: icon bounce and a rising lift */
.trust-item {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.trust-item:hover {
  transform: translateY(-6px);
}
.trust-emoji {
  display: inline-block;
}
.trust-item:hover .trust-emoji {
  animation: emoji-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes emoji-pop {
  40% {
    transform: translateY(-8px) scale(1.25) rotate(-8deg);
  }
}

/* Images: curtain wipe while the existing zoom settles */
[data-reveal="zoom"] {
  clip-path: inset(8% 8% 8% 8% round 14px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal="zoom"].in-view {
  clip-path: inset(0 0 0 0 round 0);
}

/* Slow ambient drift on hero art so the first screen never feels static */
.page-hero,
.solutions-hero,
.ak-hero {
  background-size: 120% 120%;
  animation: hero-drift 24s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from {
    background-position: 0% 40%;
  }
  to {
    background-position: 100% 60%;
  }
}

/* Footer links nudge */
.site-footer a {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}
.site-footer a:hover {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .page-hero,
  .solutions-hero,
  .ak-hero {
    animation: none;
  }
}

/* ---------------------------------------------------------------------------
   12. Compact footer (~15% shorter) and the credit link
   --------------------------------------------------------------------------- */
.site-footer {
  padding: 44px 0 20px;
}
.footer-top {
  gap: 36px;
}
.footer-brand img {
  width: 190px;
  margin-bottom: 10px;
}
.footer-col h3 {
  margin-bottom: 10px;
}
.footer-link {
  line-height: 1.25;
}
.socials {
  margin-top: 10px;
}
.footer-bottom {
  margin-top: 16px;
  padding-top: 14px;
}

.footer-bottom .credit-button {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--sky-bright);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-bottom .credit-button::after {
  position: absolute;
  inset: auto 0 -3px 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sky-bright), #fff);
  content: "";
  transform: scaleX(0.25);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-bottom .credit-button::before {
  content: none;
}
.footer-bottom .credit-button svg {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-bottom .credit-button:hover,
.footer-bottom .credit-button:focus-visible {
  background: none;
  color: #fff;
  box-shadow: none;
  transform: translateY(-2px);
}
.footer-bottom .credit-button:hover::after,
.footer-bottom .credit-button:focus-visible::after {
  transform: scaleX(1);
}
.footer-bottom .credit-button:hover svg,
.footer-bottom .credit-button:focus-visible svg {
  transform: rotate(-12deg) scale(1.2);
}

.image-open::after {
  content: none !important;
  display: none !important;
}

/* Careers hero: no pattern layers, 15% larger. Gradient colour is unchanged. */
#careers .page-hero .contour-layer,
#careers .page-hero .careers-starfield,
#careers .page-hero::after {
  display: none !important;
}
#careers .page-hero {
  padding-block: 97px 106px;
  background-size: 100% 100%;
  animation: none;
}

/* ---------------------------------------------------------------------------
   13. Home technology and industry cards — clean, readable flip copy
   --------------------------------------------------------------------------- */
.home-technologies .home-tech-card {
  overflow: hidden;
  border-radius: 10px;
}
.home-technologies .tech-flip {
  position: relative;
  border-radius: 10px;
}
.home-technologies .tech-front {
  overflow: hidden;
  border-radius: 10px;
}
/* Description fades in over the photo on a translucent dark layer. */
.home-technologies .tech-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 22px;
  border-radius: 10px;
  background: rgba(8, 24, 42, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: #fff;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.home-technologies .home-tech-card:hover .tech-back,
.home-technologies .home-tech-card:focus-visible .tech-back,
.home-technologies .home-tech-card:focus-within .tech-back {
  opacity: 1;
}
.home-technologies .tech-back h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.home-technologies .tech-back p {
  max-width: 32ch;
  margin: 0;
  color: #fff;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
@media (prefers-reduced-motion: reduce) {
  .home-technologies .tech-back {
    transition-duration: 0.01s;
  }
}

/* ---------------------------------------------------------------------------
   15. Smooth solution cards, team photos without the expand badge, and a
       compact, neutral image previewer
   --------------------------------------------------------------------------- */

/* One transition list for reveal + hover, so nothing snaps or restarts. */
#solutions .solution-family[data-reveal] {
  transform: translate3d(0, 44px, 0);
  backface-visibility: hidden;
  will-change: opacity, transform;
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms;
}
#solutions .solution-family[data-reveal].in-view {
  transform: translate3d(0, 0, 0);
  will-change: auto;
}
#solutions .solution-family:hover {
  transform: translate3d(0, 0, 0);
}
/* The inner image push was a second, competing animation. */
#solutions .solution-family[data-reveal] img,
#solutions .solution-family[data-reveal]:not(.in-view) img {
  transform: none;
  transition: none;
}

#team .image-open::after {
  display: none;
}

.image-viewer {
  width: min(680px, calc(100vw - 40px));
  max-height: calc(100svh - 48px);
  padding: 14px 14px 12px;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  color: #1c2733;
  box-shadow:
    0 30px 80px rgba(8, 14, 22, 0.38),
    0 2px 8px rgba(8, 14, 22, 0.12);
}
.image-viewer::backdrop {
  background: rgba(12, 16, 22, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.image-viewer[open] {
  animation: viewer-pop 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes viewer-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
}
.image-viewer img {
  max-height: calc(100svh - 170px);
  border-radius: 10px;
  box-shadow: none;
  background: #f1f4f7;
}
.image-viewer figcaption {
  min-height: 0;
  padding: 2px 6px;
  color: #4a5a6a;
  font-size: 14px;
  font-weight: 600;
}
.image-viewer-close {
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border: 0;
  background: rgba(15, 23, 32, 0.66);
  color: #fff;
  font-size: 20px;
  transition: background 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.image-viewer-close:hover {
  background: #0f1720;
  color: #fff;
  transform: rotate(90deg);
}
.image-viewer.team-photo-viewer[open] {
  animation: viewer-pop 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.image-viewer.team-photo-viewer[open]::backdrop {
  animation: none;
}
