

/* ===== STYLE GROUP: Theme Tokens + Global Reset START =====
       Provides color variables, baseline sizing, and global scroll behavior. */
:root {
  --bg-deep: #061118;
  --bg-mid: #0c2028;
  --bg-soft: #13323b;
  --text: #edf4f5;
  --muted: #b8c9cc;
  --accent: #f0c37a;
  --panel: rgba(10, 22, 28, 0.62);
  --stroke: rgba(236, 244, 245, 0.18);
  --card: rgba(9, 20, 25, 0.7);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: "Bahnschrift", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(120vmax 80vmax at 10% -10%, #2c5462 0%, transparent 45%),
    radial-gradient(110vmax 70vmax at 90% 0%, #27434d 0%, transparent 46%),
    linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-mid) 42%, var(--bg-soft) 100%);
  overflow-x: clip;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
  letter-spacing: 0.01em;
}

/* ===== STYLE GROUP: Theme Tokens + Global Reset END ===== */

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  padding: 12px 24px;
  background: var(--accent);
  color: #000;
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}


/* ===== STYLE GROUP: Fixed Background Layers + Canvas FX START =====
       Creates stacked hero backdrop layers and the animated beams canvas surface. */
.hero-photo-layer {
  position: fixed;
  inset: 0;
  background-image: url("./assets/hero-building.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  filter: grayscale(100%) contrast(115%) brightness(0.88);
  transform: scale(1.02);
  z-index: 0;
  pointer-events: none;
}

#section2 {
  grid-template-columns: minmax(0, 1fr);
}

#tech-beams {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  opacity: 0.46;
  pointer-events: none;
}

.hero-readable-layer {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(70% 58% at 50% 45%, rgba(2, 9, 12, 0.05), rgba(2, 9, 12, 0.2) 100%),
    linear-gradient(to bottom, rgba(3, 10, 13, 0.14), rgba(3, 10, 13, 0.2));
}

.page {
  position: relative;
  z-index: 6;
}

main {
  position: relative;
  padding-top: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.panel {
  min-height: 100vh;
  display: grid;
  align-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: clamp(2.6rem, 5vh, 4rem) clamp(1.2rem, 6vw, 6rem);
}

.hero {
  min-height: 100vh;
  place-items: center;
  padding-top: clamp(4.8rem, 12vh, 7rem);
  padding-bottom: clamp(2rem, 6vh, 4rem);
  text-align: center;
}

.hero-brand {
  display: grid;
  justify-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-ready .hero-brand {
  opacity: 1;
  transform: translateY(0);
}

.hero-logo {
  width: clamp(170px, 24vw, 360px);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.98;
}

.hero-slogan {
  margin: 0;
  font-size: clamp(1.05rem, 2.1vw, 1.55rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 251, 252, 0.96);
}

/* ===== STYLE GROUP: Fixed Background Layers + Canvas FX END ===== */

/* ===== STYLE GROUP: Page Sections + Cards + Story Panels START =====
       Styles hero/services/story content blocks and reveal motion timing. */
.services .section-head {
  max-width: 52rem;
  margin-bottom: 1.2rem;
}

.section-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4.6vw, 3.2rem);
  line-height: 1.05;
}

.section-sub {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 62ch;
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
}

.section-sub-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-top: 10px;
  margin-bottom: 0;
}

.cards-surface {
  margin-top: 1.8rem;
  position: relative;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 1.05rem;
  padding: 1.1rem 1.05rem 1.12rem;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  min-height: 11rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --mx: 50%;
  --my: 50%;
  --active: 0;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(220px circle at var(--mx) var(--my),
      rgba(240, 250, 255, 0.95) 0%,
      rgba(172, 239, 255, 0.75) 25%,
      rgba(172, 239, 255, 0.06) 60%,
      rgba(172, 239, 255, 0) 76%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.18s linear;
  pointer-events: none;
}

.has-card-glow .card::after {
  opacity: calc(var(--active, 0) * 0.92);
}

.card h3 {
  margin: 0 0 0.62rem;
  font-size: 1.05rem;
  color: #f4f8f8;
  letter-spacing: 0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
  font-size: 0.94rem;
}

.story {
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  align-items: center;
  column-gap: clamp(1rem, 6vw, 5rem);
  width: 100%;
  max-width: 100%;
}

.story>* {
  min-width: 0;
}

.story .copy {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 1.1rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  max-width: 560px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.story.align-right .copy {
  grid-column: 2;
  justify-self: end;
  text-align: right;
}

.story.align-left .copy {
  grid-column: 1;
  justify-self: start;
  text-align: left;
}

.chairman-message {
  grid-template-columns: minmax(0, 1fr);
}

.chairman-wrap {
  width: min(92vw, 1080px);
  margin: 0 auto;
  padding: clamp(1rem, 2.4vw, 1.6rem) 0 clamp(1rem, 2vw, 1.4rem);
}

.chairman-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: clamp(1.4rem, 3vw, 2.1rem) clamp(1.1rem, 3.2vw, 2.35rem) clamp(1.6rem, 3.3vw, 2.4rem);
  border-radius: 1.45rem;
  border: 1px solid rgba(236, 244, 245, 0.22);
  background: rgba(6, 16, 21, 0.7);
  -webkit-backdrop-filter: blur(11px);
  backdrop-filter: blur(11px);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.chairman-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}

.chairman-title {
  margin: 0;
  color: rgba(245, 252, 253, 0.98);
  font-size: clamp(1.45rem, 3.4vw, 2.35rem);
  line-height: 1.15;
  font-weight: 700;
}

.chairman-body {
  margin: 1rem 0 0;
  color: rgba(224, 238, 242, 0.95);
  line-height: 1.76;
  font-size: clamp(0.97rem, 1.25vw, 1.06rem);
  max-width: 69ch;
}

.chairman-signature {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(236, 244, 245, 0.28);
  color: rgba(248, 252, 253, 0.98);
  font-weight: 600;
  letter-spacing: 0.015em;
}

.chairman-photo-card {
  flex: 0 0 180px;
  width: 180px;
  height: 180px;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(11, 27, 34, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

.chairman-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 40%);
  pointer-events: none;
}

.chairman-photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(10px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.panel.is-active .reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.cards .card.reveal,
.expertise-item.reveal,
.value-item.reveal {
  transition-delay: calc(var(--i, 0) * 85ms);
}

.cards .card:nth-child(1),
.expertise-item:nth-child(1),
.value-item:nth-child(1) {
  --i: 0;
}

.cards .card:nth-child(2),
.expertise-item:nth-child(2),
.value-item:nth-child(2) {
  --i: 1;
}

.cards .card:nth-child(3),
.expertise-item:nth-child(3),
.value-item:nth-child(3) {
  --i: 2;
}

.cards .card:nth-child(4),
.expertise-item:nth-child(4),
.value-item:nth-child(4) {
  --i: 3;
}

.cards .card:nth-child(5),
.expertise-item:nth-child(5),
.value-item:nth-child(5) {
  --i: 4;
}

.cards .card:nth-child(6),
.expertise-item:nth-child(6),
.value-item:nth-child(6) {
  --i: 5;
}

.site-footer-wrap {
  padding-top: clamp(4rem, 10vh, 8rem);
  padding-bottom: clamp(4.5rem, 11vh, 9rem);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  z-index: 5;
}

/* ===== STYLE GROUP: Page Sections + Cards + Story Panels END ===== */

/* ===== STYLE GROUP: Footer Surface + Footer Reveal States START =====
       Controls footer card look, link styling, and staggered reveal transitions. */
.site-footer {
  width: min(92vw, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1.35rem, 2.8vw, 2.15rem) clamp(1rem, 3.5vw, 2.1rem);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(35% 140px at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%),
    radial-gradient(100% 180% at 50% 20%, rgba(255, 255, 255, 0.02), transparent 60%),
    linear-gradient(180deg, rgba(8, 15, 20, 0.95), rgba(4, 9, 13, 0.97));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 34px rgba(159, 213, 232, 0.05);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(173, 236, 255, 0), rgba(173, 236, 255, 0.45), rgba(173, 236, 255, 0));
  box-shadow: 0 0 12px rgba(173, 236, 255, 0.2);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem);
}

.footer-col {
  min-width: 0;
}

.footer-title {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(193, 217, 224, 0.82);
}

.footer-brand-logo {
  width: clamp(120px, 14vw, 190px);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.footer-copy {
  margin: 0.7rem 0 0;
  color: rgba(205, 223, 229, 0.85);
  font-size: 0.86rem;
  line-height: 1.55;
  max-width: 32ch;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(232, 243, 247, 0.9);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.22s ease, opacity 0.22s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #c9effc;
  opacity: 1;
}

.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(232, 243, 247, 0.92);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.22s ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: #c9effc;
}

.social-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
  flex: 0 0 auto;
}

.site-footer.is-observing .footer-reveal {
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(4px);
}

.footer-reveal {
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--fd, 0s);
}

.footer-col:nth-child(1) {
  --fd: 0.1s;
}

.footer-col:nth-child(2) {
  --fd: 0.2s;
}

.footer-col:nth-child(3) {
  --fd: 0.3s;
}

.footer-col:nth-child(4) {
  --fd: 0.4s;
}

.site-footer.is-visible .footer-reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ===== STYLE GROUP: Footer Surface + Footer Reveal States END ===== */

/* ===== STYLE GROUP: Progress Rail + Dock START =====
       Defines fixed utility UI for navigation and scroll status. */
.progress-ui {
  position: fixed;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 20px;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.progress-track {
  position: relative;
  width: 3px;
  height: min(46vh, 280px);
  border-radius: 999px;
  background: rgba(231, 244, 248, 0.25);
  overflow: visible;
}

.progress-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(196, 243, 255, 0.95), rgba(196, 243, 255, 0.48));
  box-shadow: 0 0 14px rgba(191, 241, 255, 0.4);
}

.progress-marker {
  position: absolute;
  left: 50%;
  top: 0%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(235, 246, 249, 0.9);
  background: rgba(5, 15, 19, 0.85);
  box-shadow: 0 0 12px rgba(201, 243, 255, 0.48);
  transform: translate(-50%, -50%);
}

/* 1. SPOTLIGHT NAVIGATION (Initial State: Under Logo) */
.spotlight-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 2rem;
  /* Spacing under the logo */
  padding: 12px 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8, 15, 20, 0.95), rgba(4, 9, 13, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: visible;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1000;
}

/* 2. SCROLLED STATE (Hidden Nav, Visible Hamburger) */
body.is-scrolled .spotlight-nav {
  position: fixed;
  top: 24px;
  right: 90px;
  /* Snaps near the hamburger button */
  left: auto;
  bottom: auto;
  transform: translateX(20px) scale(0.9);
  opacity: 0;
  pointer-events: none;
  margin-top: 0;
}

body.is-scrolled.menu-open .spotlight-nav {
  transform: translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* 3. HAMBURGER BUTTON (With Shining Effect) */
.hamburger-btn {
  position: fixed;
  top: 24px;
  right: 32px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8, 15, 20, 0.95), rgba(4, 9, 13, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  overflow: hidden;

  /* Hidden when at the top of the page */
  opacity: 0;
  transform: scale(0.8) rotate(-10deg);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Appears when user scrolls down */
body.is-scrolled .hamburger-btn {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  pointer-events: auto;
}

/* Hamburger lines */
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Turn into an 'X' when menu is open */
body.is-scrolled.menu-open .hamburger-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.is-scrolled.menu-open .hamburger-btn span:nth-child(2) {
  opacity: 0;
}

body.is-scrolled.menu-open .hamburger-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Continuous Shining Effect Sweep */
.hamburger-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  animation: shine 3.5s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    left: -150%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

.spotlight-indicator {
  position: absolute;
  top: 0;
  height: 2px;
  width: 48px;
  background: #ffffff;
  /* Removed -1px translation to keep it flush with the top */
  transform: translateY(0);
  transition: left 400ms ease-in-out;
}

.spotlight-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 56px;
  margin: 0 8px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 400ms;
  text-decoration: none;
  color: inherit;
}

.spotlight-item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.spotlight-glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  /* Shifted anchor point and reduced height so it shines downwards only */
  transform: translate(-50%, 0);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  filter: blur(15px);
  transition: opacity 400ms;
  pointer-events: none;
  opacity: 0;
}

.spotlight-item.is-active .spotlight-glow {
  opacity: 1;
}

.spotlight-icon {
  width: 24px;
  height: 24px;
  stroke: #6b7280;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 200ms, stroke-width 200ms;
  position: relative;
  z-index: 1;
}

.spotlight-item.is-active .spotlight-icon {
  stroke: #ffffff;
  stroke-width: 2.5;
}

.nav-label {
  font-size: 10px;
  font-weight: 500;
  color: #6b7280;
  margin-top: 2px;
  transition: color 200ms, font-weight 200ms;
  z-index: 1;
}

.spotlight-item.is-active .nav-label {
  color: #ffffff;
  font-weight: 700;
}

.dock-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.dock-dropdown {
  position: absolute;
  right: 0;
  /* Aligns dropdown to the right edge of the profile button */
  left: auto;
  top: calc(100% + 16px);
  /* Opens DOWNWARD instead of upward */
  bottom: auto;
  /* Clears the old bottom value */
  transform: translateY(-6px);
  /* Starts slightly higher for the slide-down animation */

  min-width: 198px;
  padding: 0.38rem;
  border-radius: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 15, 19, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.dock-dropdown.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  /* Slides down into its natural place */
}

.dock-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.46rem 0.56rem;
  border-radius: 0.52rem;
  border: 1px solid transparent;
  color: rgba(236, 246, 249, 0.94);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.2;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.dock-dropdown-link:hover,
.dock-dropdown-link:focus-visible {
  color: #ffffff;
  background: rgba(201, 240, 252, 0.11);
  border-color: rgba(199, 237, 248, 0.22);
  box-shadow: 0 0 0 2px rgba(200, 239, 250, 0.45);
  outline: none;
}


/* ===== STYLE GROUP: Spotlight Nav Mobile Fix START ===== */
@media (max-width: 480px) {
  .spotlight-nav {
    display: flex;
    width: calc(100% - 32px);
    padding: 10px 4px;
    border-radius: 14px;
    margin-top: 1.5rem;
  }

  .spotlight-item {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    margin: 0 2px;
    height: 50px;
  }

  .spotlight-indicator {
    width: calc(100% / 5 - 8px);
  }

  .spotlight-icon {
    width: 20px;
    height: 20px;
  }

  .nav-label {
    font-size: 9px;
  }

  .spotlight-glow {
    width: 36px;
    height: 36px;
  }

  .dock-dropdown {
    right: -8px;
    min-width: 172px;
  }

  /* Scrolled fixed state on mobile */
  body.is-scrolled .spotlight-nav {
    width: auto;
    max-width: calc(100vw - 100px);
    right: 70px;
  }
}
/* ===== STYLE GROUP: Spotlight Nav Mobile Fix END ===== */

/* ===== STYLE GROUP: FX Toggle Button START ===== */

/* Vertical separator between nav items and the FX utility button */
.dock-fx-separator {
  width: 1px;
  height: 28px;
  margin: 0 4px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.12) 30%,
    rgba(255, 255, 255, 0.12) 70%,
    transparent
  );
  align-self: center;
  flex-shrink: 0;
}

/* FX button base */
.fx-toggle {
  position: relative;
  transition: transform 400ms, opacity 300ms ease;
}

/* FX icon sizing */
.fx-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 400ms ease, filter 400ms ease, opacity 400ms ease;
  position: relative;
  z-index: 1;
}

/* ----- FX ON state (default — glowing) ----- */
.fx-toggle .fx-icon {
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(200, 240, 255, 0.7))
          drop-shadow(0 0 14px rgba(180, 230, 255, 0.35));
}

.fx-glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  transform: translate(-50%, 0);
  background: radial-gradient(
    circle,
    rgba(190, 235, 255, 0.35) 0%,
    rgba(190, 235, 255, 0.08) 50%,
    transparent 70%
  );
  filter: blur(10px);
  transition: opacity 500ms ease;
  pointer-events: none;
  opacity: 1;
}

.fx-toggle .fx-label {
  color: #ffffff;
  font-weight: 700;
  transition: color 300ms ease, text-shadow 400ms ease;
}

/* ----- FX OFF state (engraved/debossed) ----- */
body.fx-off .fx-toggle .fx-icon {
  color: rgba(40, 50, 58, 0.85);
  filter: none;
}

/* Engraved inset shadow on SVG paths */
body.fx-off .fx-toggle .fx-icon path {
  stroke: rgba(30, 40, 48, 0.7);
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.04));
}

body.fx-off .fx-toggle .fx-glow {
  opacity: 0;
}

body.fx-off .fx-toggle .fx-label {
  color: rgba(60, 70, 80, 0.6);
  text-shadow:
    0 -1px 0 rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Hover state for FX button */
.fx-toggle:hover .fx-icon {
  filter: drop-shadow(0 0 8px rgba(200, 240, 255, 0.9))
          drop-shadow(0 0 18px rgba(180, 230, 255, 0.5));
}

body.fx-off .fx-toggle:hover .fx-icon {
  color: rgba(100, 120, 140, 0.6);
  filter: none;
}

body.fx-off .fx-toggle:hover .fx-icon path {
  stroke: rgba(80, 100, 120, 0.5);
}

body.fx-off .fx-toggle:hover .fx-label {
  color: rgba(120, 140, 160, 0.5);
}

/* FX button focus-visible ring */
.fx-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* Transition for canvas layers when FX is toggled off */
body.fx-off #tech-beams {
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}

body.fx-off .lfLayer {
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}

#tech-beams {
  transition: opacity 600ms ease;
}

.lfLayer {
  transition: opacity 600ms ease;
}

/* ===== Performance Toast Notification ===== */

.fx-toast {
  position: fixed;
  bottom: 28px;
  left: 28px;
  max-width: 360px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(80% 120% at 50% 10%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(8, 15, 20, 0.94), rgba(4, 9, 13, 0.97));
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  z-index: 10000;
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 400ms ease;
  pointer-events: none;
}

.fx-toast::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 1px;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(173, 236, 255, 0),
    rgba(173, 236, 255, 0.35),
    rgba(173, 236, 255, 0));
  box-shadow: 0 0 10px rgba(173, 236, 255, 0.15);
  pointer-events: none;
}

.fx-toast.is-visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.fx-toast-msg {
  margin: 0 0 14px;
  color: rgba(224, 238, 242, 0.92);
  font-size: 0.88rem;
  line-height: 1.55;
}

.fx-toast-actions {
  display: flex;
  gap: 10px;
}

.fx-toast-btn {
  flex: 1;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.fx-toast-primary {
  background: rgba(190, 235, 255, 0.14);
  border-color: rgba(190, 235, 255, 0.25);
  color: rgba(210, 245, 255, 0.95);
}

.fx-toast-primary:hover {
  background: rgba(190, 235, 255, 0.22);
  border-color: rgba(190, 235, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(190, 235, 255, 0.2);
}

.fx-toast-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(200, 215, 222, 0.7);
}

.fx-toast-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(220, 235, 242, 0.9);
}

/* Mobile responsive for FX toggle */
@media (max-width: 480px) {
  .dock-fx-separator {
    height: 22px;
    margin: 0 2px;
  }

  .fx-icon {
    width: 20px;
    height: 20px;
  }

  .fx-glow {
    width: 36px;
    height: 36px;
  }

  .fx-toast {
    left: 12px;
    right: 12px;
    bottom: 90px;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .fx-icon {
    width: 18px;
    height: 18px;
  }

  .fx-glow {
    width: 30px;
    height: 30px;
  }

  .fx-toast {
    bottom: 80px;
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

/* ===== STYLE GROUP: FX Toggle Button END ===== */

/* ===== STYLE GROUP: Progress Rail + Dock END ===== */

/* ===== STYLE GROUP: Responsive + Reduced-Motion Overrides START =====
       Adapts grids/sizes for smaller screens and removes motion when user prefers it. */
@media (max-width: 980px) {
  body {
    scroll-snap-type: y proximity;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .story.align-right .copy,
  .story.align-left .copy {
    grid-column: 1;
    justify-self: center;
    text-align: center;
    max-width: min(680px, 100%);
  }

}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .panel {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .progress-ui {
    right: 0.55rem;
  }

  .progress-track {
    height: min(34vh, 190px);
  }

  .spotlight-nav {
    bottom: 16px;
  }

  .spotlight-item {
    width: 38px;
    height: 38px;
    margin: 0 5px;
    border-radius: 8px;
  }

  .spotlight-icon {
    width: 18px;
    height: 18px;
  }

  .spotlight-glow {
    width: 38px;
    height: 78px;
  }

  .dock-dropdown {
    min-width: 172px;
  }
}

@media (max-width: 767px) {
  .chairman-card {
    flex-direction: column;
    gap: 1rem;
  }

  .chairman-photo-card {
    flex: 0 0 auto;
    width: 180px;
    height: 180px;
    margin: 0 auto 1rem;
  }

  .chairman-content {
    width: 100%;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .footer-reveal,
  .site-footer.is-observing .footer-reveal,
  .site-footer.is-visible .footer-reveal {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .spotlight-indicator,
  .spotlight-glow,
  .spotlight-icon {
    transition: none;
  }
}

/* ===== STYLE GROUP: Responsive + Reduced-Motion Overrides END ===== */

/* === PROJECTS CSS === */
:root.page-projects {
  --bg: #05000c;
  --bg-deep: #070110;
  --glass: rgba(20, 14, 34, 0.56);
  --glass-strong: rgba(16, 12, 30, 0.86);
  --text: rgba(245, 241, 255, 0.95);
  --text-soft: rgba(204, 196, 221, 0.88);
  --line: rgba(255, 255, 255, 0.18);
  --line-soft: rgba(255, 255, 255, 0.1);
  --accent: #dbc89a;
  --accent-soft: rgba(219, 200, 154, 0.2);
  --chip-bg: rgba(255, 255, 255, 0.06);
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html.page-projects,
html.page-projects body {
  margin: 0;
  min-height: 100%;
}

html.page-projects body {
  font-family: "Bahnschrift", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 620px at 50% -12%, rgba(120, 148, 255, 0.09), transparent 58%),
    radial-gradient(940px 560px at 8% 100%, rgba(219, 200, 154, 0.06), transparent 65%),
    var(--bg);
}

html.page-projects body.modal-open {
  overflow: hidden;
}

.projects-page {
  position: relative;
  isolation: isolate;
  width: min(1220px, calc(100% - 46px));
  margin: 0 auto;
  padding: 24px 0 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-content: flex-start;
  gap: 40px;
}

.page-grid-accent {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.17;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.22) 1px, transparent 0);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 100%);
}

.projects-hero {
  position: relative;
  overflow: hidden;
  z-index: 10;
  min-height: 0;
  height: auto;
  padding: clamp(20px, 4vw, 40px) 0 clamp(24px, 4vw, 36px);
  text-align: left;
}

.hero-page-logo {
  display: block;
  margin-bottom: clamp(24px, 5vw, 40px);
  position: relative;
  z-index: 20;
}

.hero-page-logo img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

.hero-hover-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero-hover-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  -webkit-mask-image: radial-gradient(200px circle at var(--hx, 50%) var(--hy, 50%), black 0%, transparent 100%);
  mask-image: radial-gradient(200px circle at var(--hx, 50%) var(--hy, 50%), black 0%, transparent 100%);
}

.projects-hero:hover .hero-hover-bg {
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.hero-content>* {
  pointer-events: auto;
}

.projects-hero .hero-kicker {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.projects-hero h1 {
  margin: 5px 0 5px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
}

.projects-hero .hero-subtitle {
  margin: 0;
  max-width: 62ch;
  line-height: 1.65;
  color: var(--text-soft);
}

.projects-hero .hero-cta {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  padding: 11px 18px;
  min-height: 42px;
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary {
  color: #fff8e8;
  border-color: rgba(219, 200, 154, 0.4);
  background: linear-gradient(130deg, rgba(219, 200, 154, 0.26), rgba(156, 126, 70, 0.22));
  box-shadow: 0 10px 22px rgba(45, 34, 14, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(130deg, rgba(219, 200, 154, 0.34), rgba(156, 126, 70, 0.28));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
}

.filter-shell {
  position: sticky;
  top: 10px;
  z-index: 20;
  margin-top: -40px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(12, 8, 24, 0.74);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(260px, 0.95fr);
  gap: 16px;
  padding: 16px 18px;
}

.filter-group {
  min-width: 0;
}

.group-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.64);
}

.chip-set {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1;
  padding: 9px 13px;
  cursor: pointer;
  transition: all 0.24s ease;
}

.filter-chip:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
}

.filter-chip.is-active {
  border-color: rgba(219, 200, 154, 0.52);
  background: rgba(219, 200, 154, 0.17);
  color: #fff5d9;
}

.filter-sort {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.filter-sort .select-wrap {
  width: 100%;
  max-width: 260px;
}

.select-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.64);
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.select-wrap select {
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 9px 10px;
  min-height: 39px;
  outline: none;
}

.select-wrap select option {
  background: #05000c;
  color: #ffffff;
}

.select-wrap select:focus {
  border-color: rgba(219, 200, 154, 0.55);
  box-shadow: 0 0 0 2px rgba(219, 200, 154, 0.18);
}

.featured-section,
.projects-section {
  margin-top: 32px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.results-count {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.featured-grid,
.projects-grid {
  display: grid;
  gap: 18px;
}

.featured-grid:empty,
.projects-grid:empty {
  display: none;
}

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(25, 18, 42, 0.84), rgba(13, 9, 23, 0.9));
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(640px 220px at 50% -18%, rgba(255, 255, 255, 0.12), transparent 70%);
  opacity: 0.28;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: var(--line);
  box-shadow: 0 30px 58px rgba(0, 0, 0, 0.55);
}

.project-card:focus-visible {
  outline: 2px solid rgba(219, 200, 154, 0.7);
  outline-offset: 2px;
}

.featured-card {
  border-color: rgba(219, 200, 154, 0.34);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #130b23;
  border-bottom: 1px solid var(--line-soft);
}

.card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card:hover .card-media img {
  transform: scale(1.06);
}

.placeholder-media {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(108, 148, 255, 0.3), transparent 55%),
    radial-gradient(130% 120% at 100% 100%, rgba(219, 200, 154, 0.24), transparent 60%),
    linear-gradient(165deg, #1a1330 0%, #0a0615 100%);
}

.placeholder-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.16;
}

.placeholder-media .initials {
  position: relative;
  z-index: 1;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: 0.14em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.card-body {
  position: relative;
  z-index: 1;
  padding: 14px 15px 16px;
}

.card-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 11px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.chip-category {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.17);
  color: rgba(255, 255, 255, 0.9);
}

.chip-status.is-completed {
  background: rgba(94, 198, 136, 0.16);
  border-color: rgba(94, 198, 136, 0.35);
  color: #c8f2d8;
}

.chip-status.is-ongoing {
  background: rgba(255, 180, 102, 0.16);
  border-color: rgba(255, 180, 102, 0.35);
  color: #ffe3bb;
}

.card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.card-meta {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.load-more-btn[hidden] {
  display: none;
}

.empty-state {
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 12, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  width: min(1000px, calc(100% - 32px));
  max-height: calc(100vh - 72px);
  margin: 36px auto;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass-strong);
  box-shadow: 0 40px 76px rgba(0, 0, 0, 0.6);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: rgba(8, 6, 16, 0.84);
  color: var(--text);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--line);
}

.modal-media {
  position: relative;
  min-height: 300px;
  background: #110a20;
  border-right: 1px solid var(--line-soft);
}

.modal-content {
  padding: 22px 22px 24px;
  overflow: auto;
}

.modal-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-content h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.modal-meta {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.modal-description {
  margin: 14px 0 0;
  color: rgba(230, 224, 244, 0.9);
  line-height: 1.7;
}

.modal-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.32s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-ui {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.carousel-nav {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: rgba(7, 5, 14, 0.78);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.carousel-nav:hover {
  border-color: var(--line);
}

.carousel-counter {
  pointer-events: auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(7, 5, 14, 0.78);
  font-size: 12px;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.38);
  opacity: 0.7;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.is-active {
  background: #fff2ce;
  opacity: 1;
}

.modal-placeholder {
  min-height: 300px;
}

@media (max-width: 1120px) {
  .filter-row {
    grid-template-columns: 1fr;
  }

  .filter-sort {
    justify-content: flex-start;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-panel {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 30px);
    margin: 15px auto;
  }

  .modal-media {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .carousel,
  .modal-placeholder {
    min-height: 260px;
  }
}

@media (max-width: 720px) {
  .projects-page {
    width: min(1220px, calc(100% - 26px));
    padding-top: 26px;
  }

  .projects-hero {
    padding: 22px 0 16px;
  }

  .projects-hero .hero-cta {
    gap: 10px;
  }

  .filter-shell {
    top: 8px;
  }

  .filter-sort .select-wrap {
    max-width: none;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 560px) {

  .featured-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .btn,
  .modal-actions .btn {
    width: 100%;
  }

  .modal-content h3 {
    font-size: 23px;
  }
}

/* === CONTACT CSS === */
:root.page-contact {
  --page-bg: #05000c;
  --text-main: rgba(255, 255, 255, 0.94);
}

* {
  /* global box-sizing duplicate removed */
}

html.page-contact,
html.page-contact body {
  margin: 0;
  height: 100%;
}

html.page-contact body {
  font-family: "Bahnschrift", "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(1200px 620px at 50% -12%, rgba(121, 145, 255, 0.01), transparent 58%),
    radial-gradient(900px 460px at 20% 100%, rgba(83, 114, 220, 0.01), transparent 62%),
    #05000c;
  color: var(--text-main);
}

.contactPage {
  min-height: 100vh;
}

.contactHero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 86vh;
  margin: 0 24px 24px;
  border-radius: 26px;
  overflow: hidden;
  background: #060010;
}

.lfLayer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lfLayer canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.heroOverlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% 20%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 50% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.55));
  opacity: 0.55;
}

.heroLogoWrap {
  position: absolute;
  left: 32px;
  top: 22px;
  z-index: 2;
  pointer-events: none;
}

.heroLogo {
  width: clamp(140px, 18vw, 240px);
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.heroCard {
  position: relative;
  width: min(1380px, 96%);
  max-width: 100%;
  z-index: 3;
  padding: 28px;
  margin: auto auto 34px;
  align-self: center;
  border-radius: 28px;
  background: rgba(10, 10, 20, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 0 25px rgba(255, 255, 255, 0.15),
    inset 0 0 15px rgba(255, 255, 255, 0.05),
    0 26px 80px rgba(0, 0, 0, 0.65);

  isolation: isolate;
}

/* dotted grid + soft vignette */
.heroCard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    radial-gradient(800px 260px at 50% 20%, rgba(255, 255, 255, 0.12), transparent 70%),
    radial-gradient(900px 320px at 50% 100%, rgba(0, 0, 0, 0.55), transparent 60%);
  background-size: 18px 18px, 100% 100%, 100% 100%;
  background-position: 0 0, 0 0, 0 0;
  opacity: 0.55;
}

/* Glowing conic border frame */
.heroCard::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from 180deg at 50% 50%,
      rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 1));
  filter: blur(3px);
  /* زيادة قيمة الضبابية (blur) لجعل الخط مشعاً */
  opacity: 1;
  /* جعل الإطار مرئياً بشكل كامل */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}


.cardGrid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 34px;
  align-items: stretch;
}

.infoCol {
  align-self: start;
}

.sectionLabel {
  letter-spacing: 0.18em;
  font-size: 12px;
  opacity: 0.7;
}

.heroTitle {
  font-size: 44px;
  line-height: 1.05;
  margin: 10px 0 12px;
}

.heroText {
  opacity: 0.78;
  max-width: 42ch;
  margin: 0;
  line-height: 1.65;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 18px 0;
}

.contactItem {
  margin: 14px 0;
}

.contactItem .label {
  font-size: 12px;
  opacity: 0.6;
  letter-spacing: 0.14em;
}

.contactItem .value {
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.92;
}

.contactItem a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.contactItem a:hover {
  opacity: 0.7;
}

.mapCol {
  display: flex;
  flex-direction: column;
}

.mapEmbed {
  height: 100%;
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mapEmbed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.20) contrast(1.05) brightness(0.92);
}

.mapCta {
  display: inline-flex;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mapCta:hover {
  background: rgba(255, 255, 255, 0.10);
}

.nextSection {
  min-height: 8vh;
}

@media (max-width: 900px) {
  .contactHero {
    min-height: unset;
    padding: 18px;
    margin: 0 12px 12px;
  }

  .heroCard {
    margin: 60px auto 18px;
    padding: 22px;
    width: 100%;
  }

  .heroLogoWrap {
    left: 18px;
    top: 14px;
  }

  .heroLogo {
    width: clamp(120px, 34vw, 170px);
  }

  .cardGrid {
    grid-template-columns: 1fr;
  }

  .heroTitle {
    font-size: clamp(30px, 7.8vw, 44px);
  }
}

@media (max-width: 480px) {
  .contactHero {
    margin: 0 8px 8px;
    border-radius: 18px;
  }

  .heroCard {
    padding: 18px;
    border-radius: 20px;
    margin-top: 40px;
  }

  .mapEmbed {
    min-height: 240px;
  }
}

.footer-grid .footer-col.footer-reveal:nth-child(1) {
  --fd: 0.1s;
}

.footer-grid .footer-col.footer-reveal:nth-child(2) {
  --fd: 0.2s;
}

.footer-grid .footer-col.footer-reveal:nth-child(3) {
  --fd: 0.3s;
}

.footer-grid .footer-col.footer-reveal:nth-child(4) {
  --fd: 0.4s;
}

/* ===== STYLE GROUP: About Page START ===== */

html.page-about,
html.page-about body {
  --luxury-dark: #000000;
  --luxury-accent: #c5a358;
  font-family: "Inter", sans-serif;
  background: #05000c;
  /* Matches the premium dark black from the Contact page */
}

.about-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(80px, 12vw, 120px) 1.5rem 8rem;
  /* space for dock nav */
  position: relative;
  z-index: 5;
}

.about-page-topbar {
  width: 100%;
  max-width: 72rem;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .about-page {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1024px) {
  .about-page {
    padding-left: 6rem;
    padding-right: 6rem;
  }
}

.about-bg-visuals {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

@keyframes laserFlow {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0.3;
  }

  50% {
    transform: translate(-45%, -55%) rotate(180deg);
    opacity: 0.6;
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
    opacity: 0.3;
  }
}

@keyframes sweep {
  0% {
    transform: translateY(-100vh) rotate(-15deg);
  }

  100% {
    transform: translateY(100vh) rotate(-15deg);
  }
}

.laser-flow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150vw;
  height: 150vh;
  background: radial-gradient(circle at center, rgba(197, 163, 88, 0.1) 0%, transparent 70%);
  z-index: -1;
  filter: blur(80px);
  animation: laserFlow 20s linear infinite;
}

.laser-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(197, 163, 88, 0.2), transparent);
  height: 1px;
  width: 100%;
  animation: sweep 10s linear infinite;
}

.laser-line-1 {
  top: 20%;
  animation-delay: 0s;
}

.laser-line-2 {
  top: 50%;
  animation-delay: 3s;
}

.laser-line-3 {
  top: 80%;
  animation-delay: 7s;
}

.text-luxury-accent {
  color: var(--luxury-accent);
}

.about-hero-card {
  width: 100%;
  max-width: 72rem;
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: all 0.7s;
}

.about-hero-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.about-header {
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .about-header {
    padding: 4rem;
  }
}

.about-hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  margin-top: 0;
  color: #ffffff;
}

.about-hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
}

.about-content {
  padding: 2rem;
}

@media (min-width: 768px) {
  .about-content {
    padding: 4rem;
  }
}

.about-intro {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 5rem;
}

.about-intro-text {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.625;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  margin: 0;
}

.about-divider {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  height: 1px;
  width: 100%;
}

.about-spacer {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.about-mission-vision {
  display: grid;
  gap: 4rem;
  padding-top: 5rem;
}

@media (min-width: 768px) {
  .about-mission-vision {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6rem;
  }
}

.about-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-section-label {
  font-variant: all-small-caps;
  letter-spacing: 0.2em;
  color: var(--luxury-accent);
  font-weight: 600;
  font-size: 0.875rem;
  margin: 0;
  text-transform: uppercase;
}

.about-section-label.center {
  text-align: center;
  margin-bottom: 3rem;
}

.about-section-label.subdued {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  margin-bottom: 2rem;
}

.about-info-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.625;
  font-size: 1.125rem;
  margin: 0;
}

.about-quote-box {
  max-width: 56rem;
  margin: 0 auto 5rem;
  text-align: center;
  padding: 0 1rem;
}

.about-quote-text {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.625;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  margin: 0;
}

.about-quote-text span {
  color: rgba(255, 255, 255, 0.9);
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-style: normal;
}

.leadership-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .leadership-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.leadership-card {
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.leadership-card:hover {
  border-color: rgba(197, 163, 88, 0.5);
}

.leadership-photo-wrap {
  aspect-ratio: 1 / 1;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 0.75rem;
  position: relative;
}

.leadership-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.5s;
}

.grayscale-hover .leadership-photo {
  filter: grayscale(100%);
}

.leadership-card:hover .grayscale-hover .leadership-photo {
  filter: grayscale(0%);
}

.leadership-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
}

.leadership-role {
  color: var(--luxury-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.about-structure {
  margin-bottom: 5rem;
}

.structure-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.structure-node {
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  position: relative;
}

.structure-node.ceo-node {
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  border-color: var(--luxury-accent);
  background: rgba(197, 163, 88, 0.1);
  color: var(--luxury-accent);
  font-weight: 700;
}

.structure-node.dir-node {
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.structure-node.dept-node {
  font-size: 0.625rem;
}

.structure-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
}

.structure-line.drop-line {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 3rem;
}

.structure-line.highlight {
  background: linear-gradient(to bottom, var(--luxury-accent), transparent);
}

.structure-level {
  display: flex;
  justify-content: center;
  position: relative;
}

.structure-level.w-60 {
  width: 60%;
}

.structure-level.w-80 {
  width: 80%;
  justify-content: space-between;
}

.structure-line.h-bar {
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
}

.structure-node-wrap {
  position: relative;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.structure-line.v-bar {
  width: 1px;
  height: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.structure-line.v-bar.top {
  top: 0;
}

.structure-line.v-bar.bottom {
  top: 100%;
  height: 3rem;
}

.about-expertise {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.expertise-center {
  text-align: center;
}

.expertise-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .expertise-row {
    gap: 3rem;
  }
}

.expertise-item {
  text-align: center;
}

.expertise-icon {
  font-size: 1.875rem;
  margin-bottom: 1rem;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.expertise-item:hover .expertise-icon {
  opacity: 1;
}

.expertise-title {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
}

.about-values {
  padding-top: 5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.value-item {
  text-align: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  transition: background-color 0.3s;
}

.value-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.value-item p {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

/* Reduced Motion Fallback */
@media (prefers-reduced-motion: reduce) {

  .laser-flow-bg,
  .laser-line {
    animation: none !important;
  }
}

/* ===== STYLE GROUP: About Page END ===== */

/* ===== STYLE GROUP: Index Expertise + Values Panels START ===== */

#expertise-section .chairman-card,
#core-values-section .chairman-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#expertise-section .section-head,
#core-values-section .section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-bottom: 2.5rem;
}

#expertise-section .expertise-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  width: 100%;
}

#expertise-section .expertise-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

#expertise-section .expertise-title {
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

#core-values-section .values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

#core-values-section .value-item {
  padding: 1.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Replaces grid-level borders */
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.3s;
}

#core-values-section .value-item>p {
  margin: 0;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

#expertise-section .expertise-item.reveal,
#core-values-section .value-item.reveal {
  transition-delay: calc(var(--i, 0) * 85ms);
}

#expertise-section .expertise-item:nth-child(1) {
  --i: 0;
}

#expertise-section .expertise-item:nth-child(2) {
  --i: 1;
}

#expertise-section .expertise-item:nth-child(3) {
  --i: 2;
}

#expertise-section .expertise-item:nth-child(4) {
  --i: 3;
}

#expertise-section .expertise-item:nth-child(5) {
  --i: 4;
}

#core-values-section .value-item:nth-child(1) {
  --i: 0;
}

#core-values-section .value-item:nth-child(2) {
  --i: 1;
}

#core-values-section .value-item:nth-child(3) {
  --i: 2;
}

#core-values-section .value-item:nth-child(4) {
  --i: 3;
}

/* Expertise & Values Hover Effects for Index Page */
.expertise-item {
  cursor: pointer;
}

.expertise-item .expertise-icon {
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.expertise-item:hover .expertise-icon {
  opacity: 1;
  transform: translateY(-4px);
}

.value-item {
  padding: 1.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.01);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.value-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(219, 200, 154, 0.4);
  /* Uses the gold accent color */
  transform: translateY(-2px);
}

/* ===== STYLE GROUP: Index Expertise + Values Panels END ===== */

/* --- SUB-PAGE HEADER STYLES --- */
.sub-page-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  background: rgba(5, 5, 10, 0.6);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2000;
}

.sub-page-header .header-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Force Hamburger to sit naturally in the header on sub-pages */
.page-contact .hamburger-btn,
.page-about .hamburger-btn,
.page-projects .hamburger-btn {
  position: relative;
  top: auto;
  right: auto;
  opacity: 1 !important;
  /* Always visible on sub-pages */
  transform: scale(0.9) rotate(0deg) !important;
  pointer-events: auto !important;
  margin: 0;
  z-index: 2001;
}

/* Hide the full Spotlight menu on sub-pages by default */
.page-contact .spotlight-nav,
.page-about .spotlight-nav,
.page-projects .spotlight-nav {
  position: fixed;
  top: 85px;
  /* Sits just below the header */
  right: 32px;
  /* Anchored to the right, under the hamburger */
  left: auto;
  bottom: auto;
  transform: translateX(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  margin: 0;
}

/* Show the Spotlight menu ONLY when hamburger is clicked */
.page-contact body.menu-open .spotlight-nav,
.page-about body.menu-open .spotlight-nav,
.page-projects body.menu-open .spotlight-nav {
  transform: translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Turn Hamburger into 'X' on sub-pages when menu is open */
.page-contact body.menu-open .hamburger-btn span:nth-child(1),
.page-about body.menu-open .hamburger-btn span:nth-child(1),
.page-projects body.menu-open .hamburger-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.page-contact body.menu-open .hamburger-btn span:nth-child(2),
.page-about body.menu-open .hamburger-btn span:nth-child(2),
.page-projects body.menu-open .hamburger-btn span:nth-child(2) {
  opacity: 0;
}

.page-contact body.menu-open .hamburger-btn span:nth-child(3),
.page-about body.menu-open .hamburger-btn span:nth-child(3),
.page-projects body.menu-open .hamburger-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- CONTACT PAGE: Light Beam Fix --- */
.page-contact .contactHero {
  margin-top: 10px;
  /* Push the hero down so it clears the fixed header exactly */
  padding-top: 0;
  position: relative;
  z-index: 1;
}

.page-contact .lfLayer {
  z-index: 1;
}

.page-contact .heroCard {
  z-index: 2;
}

/* Adjust main content padding */
.page-contact .contactPage {
  padding-top: 0;
}

.page-about .about-page,
.page-projects .projects-page {
  padding-top: 90px;
}

/* =========================================================================
   14. INTERACTIVE HOVER BUTTON
   ========================================================================= */
.interactive-hover-btn {
  position: relative;
  width: 170px;
  /* Slightly wider for longer text */
  margin: 30px auto 0;
  display: block;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  /* Glassy background */
  padding: 10px 12px;
  /* Reduced vertical padding */
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  /* Reduced text size */
  color: #ffffff;
  transition: all 400ms ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.interactive-hover-btn:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.2);
  /* Enhance glassy background on hover instead of dot */
}

/* Base text that slides out right */
.interactive-hover-btn .btn-text-main {
  display: inline-block;
  transform: translateX(4px);
  transition: all 400ms ease;
  position: relative;
  z-index: 20;
}

/* Container for text + arrow that slides in from left */
.interactive-hover-btn .btn-text-hover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  /* Kept white since background dot is removed */
  opacity: 0;
  transform: translateX(48px);
  transition: all 400ms ease;
}

/* The expanding background circle - Hidden as requested to fix overlap */
.interactive-hover-btn .btn-bg-expand {
  display: none;
}

/* --- HOVER STATES --- */
.interactive-hover-btn:hover .btn-text-main {
  transform: translateX(48px);
  opacity: 0;
}

.interactive-hover-btn:hover .btn-text-hover {
  transform: translateX(-4px);
  opacity: 1;
}

.interactive-hover-btn:hover .btn-bg-expand {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  transform: scale(2.8);
  border-radius: 0;
}
/* Security Hardening: Extracted noscript inline styles */
noscript > div {
  padding: 2rem;
  text-align: center;
  color: #fff;
  background: #1a1a2e;
}

/* Accessibility: Skip to Content Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10000;
  background: #0c2028;
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
}

/* ===== 404 PAGE STYLES ===== */
body.page-404 {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  background: var(--bg-deep, #061118);
  color: var(--text-main, #edf4f5);
  padding: 1.5rem;
  overflow: hidden;
  position: relative;
}

.empty-logo {
  width: 350px;
  max-width: 100%;
  margin-bottom: 0.5rem;
  opacity: 0.85;
  filter: brightness(0) invert(1);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  gap: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  border-radius: 0.5rem;
  border: 1px dashed rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.02);
  max-width: 400px;
  width: 100%;
}

@media (min-width: 768px) {
  .empty-state {
    padding: 3rem;
  }
}

.empty-title {
  font-size: clamp(6rem, 15vw, 8rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 1rem 0;
  background: linear-gradient(180deg, #ffffff 20%, rgba(255,255,255,0) 80%);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 4px 24px rgba(255,255,255,0.05);
}

.empty-description {
  margin-top: -1.5rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  font-size: 0.875rem;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: white;
  color: black;
}
.btn-primary:hover {
  background: rgba(255,255,255,0.9);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}
