/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-lockup img {
  width: min(168px, 42vw);
  height: auto;
}

.menu-toggle {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
}

.menu-toggle__bars {
  width: 18px;
  height: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

body.menu-open .menu-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

body.menu-open .menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Slide-out menu */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.nav-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 31, 0.55);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 380px);
  height: 100%;
  background: var(--white);
  color: var(--ink);
  padding: 1.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: var(--shadow-soft);
}

.nav-drawer.is-open {
  pointer-events: auto;
}

.nav-drawer.is-open .nav-drawer__backdrop {
  opacity: 1;
}

.nav-drawer.is-open .nav-drawer__panel {
  transform: translateX(0);
}

.nav-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.nav-drawer__close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.nav-drawer__links {
  display: grid;
  gap: 0.35rem;
  flex: 1;
}

.nav-drawer__links a {
  padding: 0.85rem 0;
  font-size: 1.35rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.nav-drawer__links a:hover,
.nav-drawer__links a.is-active {
  color: var(--navy-900);
  padding-left: 0.35rem;
}

.nav-drawer__sub {
  padding: 0.35rem 0 0.85rem 0.85rem;
  display: grid;
  gap: 0.55rem;
}

.nav-drawer__sub a {
  border: 0;
  padding: 0.2rem 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-drawer__contact {
  display: grid;
  gap: 0.45rem;
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: 1.5rem;
}

.nav-drawer__social {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.nav-drawer__social a {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.45rem;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn--primary:hover {
  background: #f0f2ff;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--dark {
  background: var(--navy-900);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--navy-800);
}

.btn--outline-dark {
  background: transparent;
  color: var(--navy-900);
  border-color: rgba(11, 14, 55, 0.28);
}

.btn--outline-dark:hover {
  border-color: var(--navy-900);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Page / home hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--white);
  background: var(--navy-900);
  overflow: hidden;
}

.hero--page {
  min-height: clamp(22rem, 52vh, 34rem);
  align-items: center;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__wash {
  position: absolute;
  inset: 0;
  background: var(--hero-wash);
}

.hero__slash {
  position: absolute;
  inset: -10% -5% -20% 35%;
  background: var(--brand-gradient);
  opacity: 0.35;
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 8% 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
}

.hero--page .hero__content {
  padding-block: calc(var(--header-h) + 2rem) 3rem;
}

.hero__brand {
  width: min(220px, 55vw);
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.9s var(--ease) 0.1s forwards;
}

.hero__title {
  font-size: var(--fs-display);
  max-width: 14ch;
  opacity: 0;
  transform: translateY(22px);
  animation: rise-in 0.95s var(--ease) 0.22s forwards;
}

.hero__copy {
  margin-top: 1.15rem;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.82);
  opacity: 0;
  transform: translateY(22px);
  animation: rise-in 0.95s var(--ease) 0.34s forwards;
}

.hero .btn-row {
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(22px);
  animation: rise-in 0.95s var(--ease) 0.46s forwards;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__brand,
  .hero__title,
  .hero__copy,
  .hero .btn-row {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Feature / capability */
.capability {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .capability {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.capability__visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: var(--navy-900);
}

.capability__visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.capability__visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(0deg, rgba(11, 14, 55, 0.55), transparent);
}

/* Services teaser / grid */
.service-list {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .service-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.service-item {
  padding-top: 1.25rem;
  border-top: 2px solid transparent;
  border-image: var(--brand-gradient) 1;
}

.service-item h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.65rem;
}

.service-item p {
  color: var(--muted);
  font-size: 0.98rem;
}

.service-item a {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.service-grid {
  display: grid;
  gap: 1.75rem;
}

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

@media (min-width: 1000px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-tile {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
}

.service-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-tile:hover img {
  transform: scale(1.05);
}

.service-tile__body {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 20%, rgba(7, 9, 31, 0.88) 100%);
}

.service-tile h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.service-tile p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

/* Partners */
.partners {
  background: var(--off-white);
}

.partner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.partner-row img {
  height: 42px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.25s var(--ease), opacity 0.25s var(--ease);
}

.partner-row img:hover {
  filter: none;
  opacity: 1;
}

/* Testimonials */
.testimonial {
  max-width: 720px;
}

.testimonial__quote {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  font-weight: 500;
}

.testimonial__meta {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: var(--fs-small);
}

.testimonial-nav {
  display: flex;
  gap: 0.65rem;
  margin-top: 2rem;
}

.testimonial-nav button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 1.1rem;
}

.testimonial-nav button:hover {
  border-color: var(--navy-900);
}

/* Teams */
.team-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-panel {
  display: grid;
  gap: 1rem;
}

.team-panel__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--navy-900);
}

.team-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-panel h3 {
  font-size: 1.2rem;
}

.team-panel p {
  color: var(--muted);
  font-size: 0.95rem;
}

.leader {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .leader {
    grid-template-columns: 280px 1fr;
    gap: 3rem;
  }
}

.leader__portrait {
  width: min(280px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-inline: auto;
  background: var(--navy-900);
  box-shadow: 0 0 0 4px transparent, 0 0 0 6px;
  border: 3px solid transparent;
  background-image: linear-gradient(var(--navy-900), var(--navy-900)), var(--brand-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.leader__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.leader__badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-900);
  border: 1px solid var(--line);
}

/* Blog */
.blog-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 760px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  display: grid;
  gap: 1rem;
}

.blog-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-900);
}

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

.blog-card:hover .blog-card__media img {
  transform: scale(1.04);
}

.blog-card h3 {
  font-size: 1.15rem;
}

.blog-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-card__meta {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .contact-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.form-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  background: var(--white);
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(46, 196, 182, 0.45);
  border-color: var(--accent-teal);
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.flash {
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.flash--success {
  background: #e8faf6;
  color: #0f5c52;
}

.flash--error {
  background: #fdecef;
  color: #8a1c3a;
}

.contact-details {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.contact-details dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-details dd {
  margin: 0;
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
  }
}

.site-footer .brand-lockup img {
  width: 150px;
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-meta {
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.footer-bottom {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.55);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
