:root {
  --navy: #082a4f;
  --blue: var(--bw-accent, #007cff);
  --sky: #23c2f4;
  --soft: #eef8ff;
  --muted: #66758a;
  --line: rgba(10, 99, 199, .16);
  --green: #24b978;
  --gold: #fbbc04;
  --radius: 26px;
  --shadow: 0 24px 70px rgba(10, 63, 118, .12);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
.skip-link:focus {
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: #fff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(10, 99, 199, .12);
  backdrop-filter: blur(18px);
}
.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}
.custom-logo { max-height: 54px; width: auto; }
.logo-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 52px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 7px 7px 0 rgba(24, 184, 242, .14);
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-title {
  display: grid;
  line-height: .9;
  color: #05070b;
  font-family: Lato, Inter, sans-serif;
  text-transform: uppercase;
}
.logo-title strong {
  display: block;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: .01em;
  white-space: nowrap;
}
.logo-title strong span {
  display: inline !important;
  font-weight: 400;
}
.logo-title small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .28em;
}

.menu {
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.menu li { position: relative; list-style: none; }
.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  color: #526175;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}
.menu a:hover,
.menu .current-menu-item > a,
.menu .current-menu-ancestor > a {
  color: var(--blue);
  background: #eef8ff;
}
.menu .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 250px;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.menu .sub-menu a {
  width: 100%;
  justify-content: flex-start;
  border-radius: 14px;
}

.nav-actions,
.mobile-menu-actions,
.hero-actions,
.footer-contact-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn,
.wp-block-button__link,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 50px;
  padding: 15px 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: normal;
}
.btn-primary,
.wp-block-button.btn-primary .wp-block-button__link {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  box-shadow: 0 16px 36px rgba(24, 184, 242, .28);
}
.btn-ghost,
.wp-block-button.btn-ghost .wp-block-button__link {
  color: var(--navy);
  background: rgba(255, 255, 255, .9);
  border-color: var(--line);
}

.hamburger {
  display: none;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(10, 63, 118, .12);
}
.hamburger span {
  width: 24px;
  height: 3px;
  display: block;
  margin: 3px 0;
  border-radius: 999px;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.mobile-menu { display: none; }

.page-hero,
.bw-hero {
  padding: 118px 0 86px;
  background:
    radial-gradient(circle at 82% 14%, rgba(35, 194, 244, .22), transparent 30%),
    linear-gradient(135deg, #f6fbff 0%, #fff 46%, #eef8ff 100%);
}
.bw-hero .wrap,
.page-hero .wrap {
  display: grid;
  gap: 20px;
}
.eyebrow {
  margin: 0;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  margin: 0 0 16px;
  color: var(--navy);
  line-height: 1.02;
}
h1 { max-width: 920px; font-size: clamp(44px, 6vw, 92px); }
h2 { font-size: clamp(34px, 4vw, 62px); }
h3 { font-size: 26px; }
.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
}
.content-wrap,
.bw-section {
  padding: 84px 0;
}
.content-wrap > * {
  max-width: 860px;
}
.content-wrap > .alignwide,
.content-wrap > .wp-block-group,
.content-wrap > .wp-block-columns {
  max-width: var(--max);
}

.bw-page-intro {
  padding: 110px 0 78px;
  background:
    radial-gradient(circle at 78% 10%, rgba(35, 194, 244, .22), transparent 28%),
    linear-gradient(135deg, #f4fbff 0%, #fff 48%, #eaf7ff 100%);
}

.bw-band {
  padding: 90px 0;
  color: #dcecff;
  background:
    radial-gradient(circle at 72% 12%, rgba(35, 194, 244, .25), transparent 34%),
    linear-gradient(145deg, #082a4f, #06172c);
}

.bw-band h2 {
  color: #fff;
}

.bw-band .lead {
  color: rgba(255, 255, 255, .76);
}

.bw-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.bw-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 48px rgba(8, 42, 79, .08);
  text-decoration: none;
}

.bw-card small {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  font-weight: 900;
}

.bw-card h3 {
  margin-bottom: 4px;
}

.bw-card p {
  margin: 0;
  color: var(--muted);
}

.zones-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.zone-link {
  display: flex;
  min-height: 56px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 10px 26px rgba(8, 42, 79, .06);
  font-weight: 800;
  text-decoration: none;
}

.zone-link:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 800;
}

.post-grid,
.project-gallery {
  padding: 80px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.archive-card,
.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 48px rgba(8, 42, 79, .08);
}
.archive-card a,
.project-card {
  min-height: 320px;
  position: relative;
  display: grid;
  color: inherit;
  text-decoration: none;
}
.archive-card-media img,
.project-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.archive-card-body,
.project-card-content {
  padding: 22px;
}
.project-card {
  color: #fff;
  background: #06172c;
}
.project-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: 0;
  opacity: .72;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6, 23, 44, .05), rgba(6, 23, 44, .88));
}
.project-card-content {
  position: relative;
  z-index: 2;
  align-self: end;
}
.project-card h2,
.project-card h3 {
  color: #fff;
}

.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .45fr);
  gap: 34px;
  align-items: end;
}
.project-meta-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.project-meta-card div {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.project-meta-card div:last-child { border-bottom: 0; }
.project-meta-card span { color: var(--muted); }
.featured-image img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.bw-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr);
  gap: 24px;
  align-items: start;
}
.bw-form,
.bw-contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}
.bw-form {
  display: grid;
  gap: 16px;
}
.bw-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}
.bw-form input,
.bw-form select,
.bw-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--navy);
  font: inherit;
}
.bw-form-notice {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 800;
}
.bw-form-notice.success {
  color: #0f6b43;
  background: rgba(36, 185, 120, .14);
}
.bw-form-notice.error {
  color: #9d1f1f;
  background: rgba(228, 62, 62, .12);
}

.site-footer {
  padding: 54px 0;
  color: #dcecff;
  background:
    radial-gradient(circle at 78% 8%, rgba(35, 194, 244, .26), transparent 30%),
    linear-gradient(145deg, #082a4f, #06172c);
}
.footer-shell {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}
.footer-top,
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.footer-top {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .45fr);
  align-items: end;
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer-top h2,
.site-footer h3 {
  color: #fff;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.footer-contact-actions {
  align-items: stretch;
  flex-direction: column;
}
.footer-contact-link,
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
}
.linkedin-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  font-weight: 900;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .menu,
  .nav-actions {
    display: none;
  }
  .hamburger {
    display: inline-grid;
    flex: 0 0 54px;
  }
  .nav {
    justify-content: space-between;
  }
  .logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 70px);
  }
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    padding: 88px 18px 18px;
    pointer-events: none;
    background: rgba(6, 23, 44, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
  }
  .mobile-menu.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
  }
  .mobile-panel {
    display: grid;
    gap: 14px;
    max-height: calc(100vh - 110px);
    overflow: auto;
    padding: 20px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 900;
  }
  .mobile-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: var(--navy);
    font-size: 24px;
  }
  .mobile-links {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .mobile-links ul {
    padding-left: 14px;
    list-style: none;
  }
  .mobile-links a {
    display: flex;
    justify-content: space-between;
    padding: 14px;
    border-radius: 16px;
    color: var(--navy);
    background: #eef8ff;
    font-weight: 900;
    text-decoration: none;
  }
  .mobile-menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .post-grid,
  .project-gallery,
  .case-hero-grid,
  .bw-contact-grid,
  .footer-top,
  .footer-main {
    grid-template-columns: 1fr;
  }
  .bw-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .zones-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .wrap,
  .footer-shell {
    width: min(100% - 28px, var(--max));
  }
  .nav {
    width: min(100% - 20px, var(--max));
    min-height: 72px;
    gap: 8px;
  }
  .logo-title strong {
    font-size: 16px !important;
  }
  .logo-title small {
    margin-top: 5px;
    font-size: 7px;
    letter-spacing: .24em;
  }
  .logo-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
  .hamburger {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 15px;
  }
  .page-hero,
  .bw-hero,
  .bw-page-intro {
    padding: 84px 0 58px;
  }
  h1 { font-size: 42px; }
  h2 { font-size: 34px; }
  .lead { font-size: 19px; }
  .content-wrap,
  .bw-section,
  .post-grid,
  .project-gallery {
    padding: 56px 0;
  }
  .project-card {
    min-height: 285px;
  }
  .mobile-menu-actions {
    grid-template-columns: 1fr;
  }
  .zones-list {
    grid-template-columns: 1fr;
  }
  .bw-card-grid {
    grid-template-columns: 1fr;
  }
  .bw-card {
    min-height: 0;
  }
  .footer-bottom {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
