:root {
  --ink: #06182b;
  --ink-2: #0d2740;
  --slate: #56616f;
  --mist: #f6f8f7;
  --line: #dce2df;
  --gold: #b99a62;
  --gold-2: #d7c39a;
  --aqua: #1e8fa3;
  --green: #496f5d;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(6, 24, 43, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Aptos", "Segoe UI", sans-serif;
  line-height: 1.58;
  overflow-x: hidden;
}

body .wp-site-blocks > header.wp-block-template-part,
body .wp-site-blocks > footer.wp-block-template-part {
  display: none !important;
}

body .wp-site-blocks > main,
body .wp-site-blocks > main > .wp-block-group,
body .wp-site-blocks .entry-content.wp-block-post-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .wp-site-blocks .wp-block-post-title {
  display: none !important;
}

body .wp-site-blocks .entry-content.wp-block-post-content > * {
  max-width: none !important;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-shell {
  overflow: clip;
  width: 100%;
  max-width: 100vw;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 226, 223, 0.75);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 180px;
  height: auto;
}

.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: 0;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #23364b;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 6px;
  font-size: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 760;
  font-size: 14px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: #07131f;
}

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

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: end;
  background: #07131f;
  color: var(--white);
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 24, 43, 0.96) 0%, rgba(6, 24, 43, 0.8) 38%, rgba(6, 24, 43, 0.22) 100%),
    linear-gradient(0deg, rgba(6, 24, 43, 0.88) 0%, rgba(6, 24, 43, 0.05) 52%);
  z-index: 1;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 84px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-2);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero h1 {
  max-width: 830px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: normal;
}

.hero h1 .line {
  display: block;
}

.hero-copy {
  max-width: 690px;
  margin: 28px 0 0;
  color: #d9e2e5;
  font-size: clamp(18px, 2.2vw, 23px);
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(850px, 100%);
  margin-top: 58px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.metric {
  padding: 22px;
  background: rgba(6, 24, 43, 0.55);
  min-width: 0;
}

.metric strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  color: var(--gold-2);
}

.metric span {
  display: block;
  margin-top: 8px;
  color: #d8e1e2;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.section {
  padding: 92px 0;
}

.section-alt {
  background:
    linear-gradient(135deg, rgba(30, 143, 163, 0.08), rgba(73, 111, 93, 0.08)),
    var(--mist);
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-width: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 42px;
}

.section-head h2,
.page-title h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.section-head p,
.page-title p {
  margin: 0;
  color: var(--slate);
  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 300px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  z-index: 2;
}

.service-num {
  color: var(--gold);
  font-weight: 850;
  font-size: 13px;
}

.service-card h3,
.solution h3,
.insight h3 {
  margin: 28px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.08;
}

.service-card p,
.solution p,
.insight p {
  margin: 0;
  color: var(--slate);
}

.learn {
  margin-top: 24px;
  color: var(--aqua);
  font-weight: 800;
}

.fabric-band {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  min-height: 620px;
  background: var(--ink);
  color: var(--white);
}

.fabric-visual {
  position: relative;
  background:
    linear-gradient(rgba(6, 24, 43, 0.06), rgba(6, 24, 43, 0.82)),
    url("./ai-fabric-hero.png") center / cover;
}

.fabric-text {
  display: grid;
  align-content: center;
  padding: 74px min(8vw, 96px);
}

.fabric-text h2 {
  max-width: 680px;
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
}

.fabric-text p {
  max-width: 660px;
  margin: 0 0 20px;
  color: #dbe5e7;
  font-size: 18px;
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.proof {
  padding-top: 22px;
  border-top: 2px solid var(--gold);
}

.proof strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
}

.proof span {
  color: #c8d4d6;
  font-size: 14px;
}

.solutions-grid,
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.solution,
.insight {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
}

.solution-tag {
  display: inline-flex;
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 850;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.65fr);
  gap: 72px;
  align-items: center;
}

.about-panel {
  padding: 36px;
  background: var(--mist);
  border: 1px solid var(--line);
}

.about-panel dl {
  margin: 0;
}

.about-panel dt {
  margin-top: 22px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-panel dt:first-child {
  margin-top: 0;
}

.about-panel dd {
  margin: 7px 0 0;
  color: var(--ink-2);
}

.page-title {
  padding: 88px 0 52px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.content-flow {
  display: grid;
  gap: 34px;
}

.content-block {
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--white);
}

.content-block h2,
.content-block h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
}

.content-block ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--slate);
}

.contact-band {
  background: var(--ink);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.contact-card h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.contact-card p {
  margin: 0 0 22px;
  color: #d7e2e4;
}

.footer {
  padding: 46px 0;
  background: #040d17;
  color: #b7c3c6;
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer strong {
  color: var(--white);
}

.footer a {
  color: var(--gold-2);
  text-decoration: none;
}

@media (max-width: 980px) {
  .nav {
    min-height: 70px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
  }

  .brand img {
    width: 142px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-inner {
    padding: 82px 0 48px;
  }

  .hero-metrics,
  .service-grid,
  .proof-list,
  .solutions-grid,
  .insights-grid,
  .contact-grid,
  .section-head,
  .split,
  .fabric-band {
    grid-template-columns: 1fr;
  }

  .fabric-visual {
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  .nav,
  .wrap,
  .hero-inner,
  .footer-inner {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }

  .hero,
  .site-shell,
  .fabric-band,
  .contact-band,
  .section,
  .page-title {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 0.98;
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 300px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-copy,
  .hero-metrics,
  .service-grid,
  .solutions-grid,
  .insights-grid,
  .contact-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .hero-copy,
  .service-card p,
  .solution p,
  .insight p,
  .metric span {
    overflow-wrap: anywhere;
  }

  .section {
    padding: 68px 0;
  }

  .hero-metrics {
    margin-top: 38px;
  }

  .service-card,
  .solution,
  .insight,
  .content-block,
  .contact-card,
  .about-panel {
    padding: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
