@keyframes barIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Transparent bar. Only the logo and the notch catch clicks. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
  pointer-events: none;
  transition: transform 0.5s ease;
  animation: barIn 0.9s ease both;
}
.site-header > * {
  pointer-events: auto;
}

/* Hidden once the main content has finished (footer area) */
.site-header.is-hidden {
  transform: translateY(-100%);
}

/* Logo, left */
.site-header .brand {
  justify-self: start;
  display: block;
}
.site-header .brand img {
  display: block;
  height: 64px;
  width: auto;
}

/* Black notch, centre: hangs from the top edge */
.site-header .notch {
  align-self: start;
  justify-self: center;
  width: 640px;
  max-width: 100%;
  height: 96px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 30px;
  background: #000000;
  border: 1px solid #ffaa17;
  border-top: none;
  border-radius: 0 0 26px 26px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-header .link {
  position: relative;
  color: rgba(255, 170, 23, 0.7);
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.site-header .link:hover,
.site-header .link.active {
  color: #ffaa17;
}

/* Active point: a small dot under the link */
.site-header .link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffaa17;
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s ease;
}
.site-header .link:hover::after,
.site-header .link.active::after {
  transform: translateX(-50%) scale(1);
}

/* Hamburger: hidden on desktop */
.site-header .menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  justify-self: end;
  align-self: center;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.site-header .menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #ffaa17;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header .menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header .menu-btn.open span:nth-child(2) { opacity: 0; }
.site-header .menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Contact link inside the menu: hidden on desktop (the Contact button is used there) */
.site-header .link--contact {
  display: none;
}

/* Tablet and mobile: smaller bar, notch becomes a professional drop-down panel */
@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 76px;
    padding: 0 18px;
  }
  .site-header .brand img { height: 46px; }
  .site-header .menu-btn { display: flex; }

  /* Panel: fixed to the screen, full width, solid black */
  .site-header .notch {
    position: fixed !important;
    top: 84px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    min-width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 !important;
    grid-column: 1 / -1;
    justify-self: stretch;
    align-self: auto;
    height: auto !important;
    display: block !important;
    padding: 0 !important;
    box-sizing: border-box;
    background: #000000;
    border: 1px solid #ffaa17;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 170, 23, 0.12);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: max-height 0.45s ease, opacity 0.3s ease, transform 0.35s ease, visibility 0.3s ease;
  }
  .site-header .notch.open {
    max-height: 80vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* gold line on top of the panel */
  .site-header .notch::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffaa17, transparent);
  }

  .site-header .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    padding: 6px 10px 10px;
    box-sizing: border-box;
  }
  .site-header .nav-links .link {
    width: 100%;
    box-sizing: border-box;
  }

  /* Links: left aligned rows with a divider and an arrow */
  .site-header .link,
  .site-header .link--contact {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 18px 22px;
    text-align: left;
    font-size: 16px;
    letter-spacing: 2px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 170, 23, 0.25);
    border-radius: 0;
    transition: color 0.25s ease, background 0.25s ease, padding-left 0.25s ease;
  }
  .site-header .link--contact {
    border-bottom: 1px solid rgba(255, 170, 23, 0.25);
    width: 100%;
  }

  /* arrow on the right (replaces the desktop dot) */
  .site-header .link::after {
    content: "";
    position: static;
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: none;
    border-top: 2px solid #ffaa17;
    border-right: 2px solid #ffaa17;
    transform: rotate(45deg);
    opacity: 0.55;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .site-header .link:hover::after,
  .site-header .link.active::after {
    transform: rotate(45deg) translate(2px, -2px);
    opacity: 1;
  }

  /* gold bar on the left for hover / active */
  .site-header .link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 3px;
    border-radius: 3px;
    background: #ffaa17;
    transform: scaleY(0);
    transition: transform 0.25s ease;
  }
  .site-header .link:hover,
  .site-header .link.active {
    color: #ffaa17;
    background: linear-gradient(90deg, rgba(255, 170, 23, 0.18), rgba(255, 170, 23, 0));
    padding-left: 30px;
  }
  .site-header .link:hover::before,
  .site-header .link.active::before {
    transform: scaleY(1);
  }
  .site-header .link.active { font-weight: 600; }

  /* Contact is now a normal link in the menu, so the header button is hidden */
  .site-header .link--contact {
    display: flex;
  }
  .site-header .contact-btn {
    display: none;
  }
}

/* ---------- Contact button (header, right side) ---------- */
.site-header .contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border: 2px solid #ffaa17;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header .contact-btn:hover,
.site-header .contact-btn.active {
  background: transparent;
  color: #ffaa17;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 170, 23, 0.25);
}

.site-header .contact-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* mobile: the menu button is used, so keep Contact small */
@media (max-width: 900px) {
  .site-header .contact-btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
  }
}


@media (min-width: 901px) {
  .site-header .contact-btn {
    position: absolute;
    right: clamp(1rem, 4vw, 3rem);
    top: 50%;
    transform: translateY(-50%);
  }

  .site-header .contact-btn:hover,
  .site-header .contact-btn.active {
    transform: translateY(calc(-50% - 2px));
  }
}


/* phone icon before the Contact text */
.site-header .contact-btn__icon {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .site-header .contact-btn__icon {
    width: 15px;
    height: 15px;
    margin-right: 0.4rem;
  }
}

/* Tablet and mobile: the Contact button is hidden, Contact lives inside the menu */
@media (max-width: 1100px) {
  .site-header .contact-btn {
    display: none;
  }
}


/* Desktop: language switcher sits to the right of the Contact button */
@media (min-width: 901px) {
  .site-header .lang-switch {
    position: absolute;
    top: 50%;
    right: calc(clamp(1rem, 4vw, 3rem) + 185px);
    transform: translateY(-50%);
    z-index: 2;
  }
}

/* Desktop: Contact and the language button share one row, so each one sizes to its own text */
@media (min-width: 901px) {
  .site-header .header-actions {
    position: absolute;
    top: 50%;
    right: clamp(1rem, 4vw, 3rem);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
  }

  .site-header .header-actions .contact-btn {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    width: auto;
    white-space: nowrap;
  }

  .site-header .header-actions .contact-btn:hover,
  .site-header .header-actions .contact-btn.active {
    transform: translateY(-2px);
  }

  .site-header .header-actions .lang-switch {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    flex: 0 0 auto;
  }
}

/* Language switcher inside the menu: hidden on desktop */
.site-header .menu-lang {
  display: none;
}

/* Tablet and mobile: the header language button is hidden, it lives inside the menu */
@media (max-width: 1100px) {
  .site-header .header-actions {
    display: none !important;
  }

  .site-header .menu-lang {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 22px;
  }

  .site-header .menu-lang .lang-switch {
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
  }
}

/* Sherin new code for team categorization */
/* =========================================================
   WEB TEAM CATEGORIZATION
   Team grid: outlined animated Z behind each photo, name + role below
   Every class and keyframe here starts with web-team-categorization
   ========================================================= */

.web-team-categorization {
  position: relative;
  background: #000000;
  padding: 120px 6vw;
  overflow: clip;
  isolation: isolate;
}

/* soft golden haze behind the grid */
.web-team-categorization::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 55%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 170, 23, 0.1), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

/* ----- heading ----- */
.web-team-categorization-head {
  max-width: 900px;
  margin: 0 auto 70px;
  text-align: center;
}

.web-team-categorization-label {
  display: inline-block;
  margin-bottom: 26px;
  padding: 8px 18px;
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ffaa17;
  border: 1px solid #ffaa17;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.web-team-categorization.in .web-team-categorization-label {
  opacity: 1;
  transform: none;
}

.web-team-categorization-title {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.05;
  text-transform: uppercase;
  color: #ffaa17;
}
.web-team-categorization-word {
  display: inline-block;
  margin-right: 0.24em;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--web-team-categorization-i, 0) * 80ms + 200ms);
}
.web-team-categorization.in .web-team-categorization-word {
  opacity: 1;
  transform: none;
}

/* ----- grid ----- */
.web-team-categorization-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 40px;
}

/* ----- one member ----- */
.web-team-categorization-card {
  position: relative;
  opacity: 0;
  transform: translateY(70px);
  transition:
    opacity 0.9s ease var(--web-team-categorization-d, 0s),
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) var(--web-team-categorization-d, 0s);
}
.web-team-categorization-card.in {
  opacity: 1;
  transform: none;
}

/* stage: holds the Z and the photo */
.web-team-categorization-stage {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

/* ----- the Z: stroke only ----- */
.web-team-categorization-z {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: web-team-categorization-float 5s ease-in-out infinite;
  animation-delay: var(--web-team-categorization-d, 0s);
}
.web-team-categorization-z svg {
  width: 96%;
  height: 96%;
  overflow: visible;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter:
    drop-shadow(0 0 6px rgba(255, 170, 23, 0.7))
    drop-shadow(0 0 18px rgba(255, 170, 23, 0.4));
  animation: web-team-categorization-glow 3s ease-in-out infinite;
  animation-delay: var(--web-team-categorization-d, 0s);
}

/* base outline: draws itself in when the card appears */
.web-team-categorization-z-base {
  stroke: #ffaa17;
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
}
.web-team-categorization-card.in .web-team-categorization-z-base {
  animation: web-team-categorization-draw 1.6s cubic-bezier(0.5, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--web-team-categorization-d, 0s) + 0.3s);
}

/* bright light that keeps running around the outline */
.web-team-categorization-z-run {
  stroke: #ffffff;
  stroke-width: 4;
  stroke-dasharray: 0.12 0.88;
  stroke-dashoffset: 1;
  opacity: 0;
  vector-effect: non-scaling-stroke;
}
.web-team-categorization-card.in .web-team-categorization-z-run {
  opacity: 1;
  animation: web-team-categorization-run 3.4s linear infinite;
  animation-delay: calc(var(--web-team-categorization-d, 0s) + 1.9s);
}

/* ----- photo ----- */
.web-team-categorization-photo {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: 66%;
  height: 94%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}
.web-team-categorization-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  user-select: none;
  pointer-events: none;
}

/* shown when the photo file is missing */
.web-team-categorization-initials {
  align-self: center;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 2px;
  color: #ffaa17;
  border: 2px solid #ffaa17;
  border-radius: 50%;
  background: rgba(255, 170, 23, 0.08);
  box-shadow: 0 0 24px rgba(255, 170, 23, 0.3);
}

/* ----- name and role ----- */
.web-team-categorization-info {
  margin-top: 22px;
  padding-left: 12%;
}
.web-team-categorization-name {
  margin: 0 0 8px;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
  color: #ffffff;
}
.web-team-categorization-role {
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
  color: #ffaa17;
}

/* ----- hover ----- */
.web-team-categorization-card:hover .web-team-categorization-photo {
  transform: translateX(-50%) translateY(-8px);
}
.web-team-categorization-card:hover .web-team-categorization-z svg {
  filter:
    drop-shadow(0 0 10px rgba(255, 170, 23, 0.95))
    drop-shadow(0 0 30px rgba(255, 170, 23, 0.6));
}

/* ----- keyframes ----- */
@keyframes web-team-categorization-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes web-team-categorization-run {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}

@keyframes web-team-categorization-float {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50%      { transform: translateY(-8px) rotate(-1.5deg) scale(1.03); }
}

@keyframes web-team-categorization-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 4px rgba(255, 170, 23, 0.55))
      drop-shadow(0 0 12px rgba(255, 170, 23, 0.3));
  }
  50% {
    filter:
      drop-shadow(0 0 9px rgba(255, 170, 23, 0.95))
      drop-shadow(0 0 28px rgba(255, 170, 23, 0.55));
  }
}

/* ----- responsive ----- */
@media (max-width: 1000px) {
  .web-team-categorization-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px 28px;
  }
}

@media (max-width: 700px) {
  .web-team-categorization {
    padding: 90px 20px;
  }
  .web-team-categorization-head {
    margin-bottom: 50px;
  }
  .web-team-categorization-grid {
    gap: 40px 14px;
  }
  .web-team-categorization-info {
    padding-left: 6%;
  }
  .web-team-categorization-name {
    font-size: 19px;
  }
  .web-team-categorization-role {
    font-size: 13px;
  }
  .web-team-categorization-initials {
    width: 64px;
    height: 64px;
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .web-team-categorization-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .web-team-categorization-stage {
    max-width: 300px;
  }
  .web-team-categorization-info {
    padding-left: 10%;
  }
  .web-team-categorization-name {
    font-size: 24px;
  }
  .web-team-categorization-role {
    font-size: 15px;
  }
}

/* ----- reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  .web-team-categorization-label,
  .web-team-categorization-word,
  .web-team-categorization-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .web-team-categorization-z,
  .web-team-categorization-z svg,
  .web-team-categorization-z-base,
  .web-team-categorization-z-run {
    animation: none !important;
  }
  .web-team-categorization-z-base {
    stroke-dashoffset: 0;
  }
  .web-team-categorization-z-run {
    display: none;
  }
  .web-team-categorization-photo {
    transition: none !important;
  }
}