:root {
  --bg: #f4f6fb;
  --bg-alt: #ffffff;
  --ink: #0c1b2a;
  --muted: #5b6b7a;
  --accent: #f4b21b;
  --accent-dark: #e09f0a;
  --brand: #143a5d;
  --brand-dark: #0b243d;
  --card: #ffffff;
  --line: rgba(12, 27, 42, 0.1);
  --shadow: 0 20px 40px rgba(12, 27, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f5f7fc 0%, #f0f2f8 100%);
  line-height: 1.6;
}

body.loading .site-header,
body.loading main,
body.loading .site-footer {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

body.loaded .site-header,
body.loaded main,
body.loaded .site-footer {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 18px;
}

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

.container {
  width: min(1180px, 90%);
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.section.alt {
  /* background: var(--bg-alt); */
  background: linear-gradient(135deg, rgba(20, 58, 93, 0.12), transparent 45%),
    radial-gradient(circle at top right, rgba(244, 178, 27, 0.18), transparent 55%);
}

.section-header {
  margin-bottom: 40px;
  max-width: 700px;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 100px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
}

.logo-mark {
  background: var(--brand);
  color: white;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.logo-text {
  font-weight: 700;
}

body.loaded .logo {
  animation: logoPop 0.6s ease;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.cta {
  background: var(--accent);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  padding: 120px 0 90px;
  background: radial-gradient(circle at top right, rgba(244, 178, 27, 0.18), transparent 60%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero--landing {
  padding: 140px 0 110px;
  background: radial-gradient(circle at top right, rgba(244, 178, 27, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(20, 58, 93, 0.08), transparent 40%);
}

.hero--landing-bg {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  isolation: isolate;
  padding: 140px 0 90px;
}

.hero-foreground {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero--landing-bg .hero-copy {
  max-width: 720px;
}

.hero--landing-bg .hero-copy h1,
.hero--landing-bg .hero-copy .lead {
  color: #ffffff;
}

.hero--landing-bg .badge {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.hero--landing-bg .btn.ghost {
  border-color: #ffffff;
  color: #ffffff;
}

.hero-copy h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  margin-bottom: 16px;
}

.hero-copy .lead {
  color: var(--muted);
  margin-bottom: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--brand);
  color: white;
}

.btn.ghost {
  border-color: var(--brand);
  color: var(--brand);
}

.hero-note {
  margin-top: 28px;
  padding: 16px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

.hero-note span {
  font-weight: 700;
}

.hero-media {
  display: grid;
  gap: 24px;
}

.landing-carousel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
  background: #0d2237;
}

.landing-carousel--bg {
  position: absolute;
  inset: 0;
  border-radius: 0;
  min-height: 100%;
  box-shadow: none;
  z-index: 0;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 0;
}

.landing-carousel--bg .carousel-slide img {
  min-height: 100%;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.45));
  z-index: 1;
}

.carousel-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: #f6fbff;
  background: linear-gradient(130deg, rgba(11, 36, 61, 0.88), rgba(20, 58, 93, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 16px 18px;
  backdrop-filter: blur(3px);
}

.carousel-caption h3 {
  margin-bottom: 4px;
}

.carousel-caption p {
  font-size: 0.94rem;
  color: rgba(246, 251, 255, 0.88);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1;
  background: rgba(12, 27, 42, 0.5);
  backdrop-filter: blur(2px);
}

.landing-carousel--bg .carousel-control {
  z-index: 4;
}

.carousel-control.prev {
  left: 14px;
}

.carousel-control.next {
  right: 14px;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.landing-carousel--bg .carousel-dots {
  z-index: 4;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
}

.carousel-dot.active {
  background: var(--accent);
}

.hero-panel {
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel img {
  height: 240px;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
}

.panel-stack {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #f9fbff;
  font-weight: 600;
}

.hero-badges {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  background: rgba(20, 58, 93, 0.08);
  color: var(--brand-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-card {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card .card-content {
  padding: 18px 20px 24px;
}

.hero-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-collage img {
  height: 120px;
  object-fit: cover;
}

.hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(20, 58, 93, 0.22), transparent 70%);
  left: -120px;
  top: 30px;
  filter: blur(10px);
  z-index: -1;
}

.page-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, rgba(20, 58, 93, 0.12), transparent 45%),
    radial-gradient(circle at top right, rgba(244, 178, 27, 0.18), transparent 55%);
}

.page-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin-bottom: 12px;
  color: #d99b0f;
}

.page-hero p {
  color: var(--muted);
  max-width: 720px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.highlight-card {
  display: block;
  background: white;
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px rgba(12, 27, 42, 0.16);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.checklist {
  margin-top: 20px;
  display: grid;
  gap: 12px;
  list-style: none;
}

.checklist li::before {
  content: "✔";
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

.trio {
  display: grid;
  grid-template-rows: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;


  /* width: 100vw; */
}

.card {
  background: var(--card);
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.card ul {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-grid span {
  background: white;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--brand);
}

.pill-grid span{
  color:#d99b0f;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--card);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.stack {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.timeline-step {
  background: white;
  padding: 18px;
  border-radius: 16px;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.timeline-step span {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--muted);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.process-card {
  background: white;
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.process-card ul {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-card div {
  padding: 16px 18px 22px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.team-card {
  background: white;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.director-section {
  padding-bottom: 20px;
}

.director-section-home {
  background: var(--bg-alt);
}

.director-card {
  background: white;
  border: 2px solid var(--accent);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 24px;
  align-items: center;
}

.director-image-wrap {
  background: linear-gradient(160deg, rgba(20, 58, 93, 0.12), rgba(244, 178, 27, 0.18));
  border-radius: 16px;
  min-height: 240px;
  display: grid;
  place-items: center;
}

.director-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  border-radius: 16px;
}

.director-content .role {
  color: var(--accent-dark);
  margin: 8px 0 12px;
  font-weight: 600;
}

.director-content p {
  color: var(--muted);
  margin-bottom: 12px;
}

.director-content ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: var(--muted);
}

.team-card.featured {
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, rgba(244, 178, 27, 0.15), rgba(255, 255, 255, 0.9));
  grid-column: 1 / -1;
  box-shadow: 0 28px 60px rgba(12, 27, 42, 0.18);
  position: relative;
  overflow: hidden;
}

.team-card.featured::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    rgba(244, 178, 27, 0.2),
    rgba(255, 255, 255, 0.9),
    rgba(244, 178, 27, 0.9),
    rgba(255, 255, 255, 0.7),
    rgba(244, 178, 27, 0.2)
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  /* animation: glitterSpin 4s linear infinite; */
  pointer-events: none;
}

.team-card.featured::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 16px;
  border: 1px dashed rgba(244, 178, 27, 0.35);
  opacity: 0.7;
  animation: glitterPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

.page-loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(244, 178, 27, 0.2), transparent 45%),
    linear-gradient(140deg, rgba(7, 24, 40, 0.98), rgba(20, 58, 93, 0.95));
  display: grid;
  place-items: center;
  z-index: 2000;
  color: white;
}

.loader-card {
  display: grid;
  gap: 16px;
  align-items: center;
  justify-items: center;
}

.loader-card img {
  width: 180px;
  height: 180px;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.loader-progress {
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.page-loader.complete .loader-card img {
  transform: scale(0.5);
  opacity: 0;
}

.page-loader.complete {
  opacity: 0;
  transition: opacity 0.6s ease;
}

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

@keyframes glitterPulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes logoPop {
  0% {
    transform: scale(0.92);
  }
  100% {
    transform: scale(1);
  }
}

.team-card .role {
  color: var(--accent-dark);
  margin-bottom: 12px;
  font-weight: 600;
}

.team-card ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: var(--muted);
}

.client-table {
  display: grid;
  gap: 12px;
}

.client-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 16px;
  padding: 16px 18px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.client-row.header {
  background: #d99b0f;
  color: white;
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.contact-details {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.contact-panel {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.panel-content {
  padding: 22px;
}

.site-footer {
  background: #0c1b2a;
  color: #d9e2ea;
  padding-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding-bottom: 40px;
}

.footer-inner a {
  display: block;
  margin-top: 8px;
  color: #d9e2ea;
}

.footer-bottom {
  border-top: 1px solid rgba(217, 226, 234, 0.2);
  padding: 20px 0 30px;
  text-align: center;
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.reveal--in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav {
    position: fixed;
    inset: 70px 0 auto 0;
    background: white;
    padding: 24px;
    flex-direction: column;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .cta {
    display: none;
  }

  .hero {
    padding-top: 100px;
  }
}

@media (max-width: 720px) {
  .landing-carousel {
    min-height: 340px;
  }

  .carousel-slide img {
    min-height: 340px;
  }

  .hero--landing-bg {
    min-height: 82vh;
    padding: 110px 0 80px;
  }

  .hero--landing-bg .hero-copy h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .carousel-control {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }

  .director-card {
    grid-template-columns: 1fr;
  }

  .director-image-wrap,
  .director-image-wrap img {
    min-height: 220px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-collage {
    grid-template-columns: 1fr;
  }

  .client-row {
    grid-template-columns: 1fr;
  }

  .hero--landing {
    padding: 120px 0 90px;
  }

  .team-card.featured {
    grid-column: auto;
  }
}
