:root {
  --navy: #0d1b4c;
  --slate-blue: #4e6a9a;
  --mist-blue: #d9e3f2;
  --ivory: #f9f8f5;
  --pearl: #eceae5;
  --stone: #c9c5bd;
  --silver: #bfc5d1;
  --ink: #1b2742;
  --muted: #536078;
  --line: rgba(13, 27, 76, 0.14);
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(13, 27, 76, 0.08);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", Arial, sans-serif;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 4%, rgba(217, 227, 242, 0.72), transparent 25rem),
    linear-gradient(180deg, var(--ivory) 0%, #ffffff 34%, var(--ivory) 100%);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 42vw;
  height: 34vw;
  min-width: 420px;
  min-height: 320px;
  pointer-events: none;
  content: "";
  opacity: 0.42;
}

body::before {
  right: -12vw;
  top: 120px;
  background:
    linear-gradient(120deg, transparent 48%, rgba(78, 106, 154, 0.13) 49%, transparent 50%),
    repeating-linear-gradient(106deg, transparent 0 20px, rgba(78, 106, 154, 0.12) 21px 22px);
  border-radius: 50% 0 0 50%;
  transform: rotate(-7deg);
}

body::after {
  left: -14vw;
  bottom: -10vw;
  background:
    linear-gradient(60deg, transparent 48%, rgba(78, 106, 154, 0.13) 49%, transparent 50%),
    repeating-linear-gradient(74deg, transparent 0 18px, rgba(78, 106, 154, 0.1) 19px 20px);
  border-radius: 0 50% 50% 0;
  transform: rotate(9deg);
}

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

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

.section-shell {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 18px clamp(24px, 5vw, 72px);
  background: rgba(249, 248, 245, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: min-height 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  min-height: 76px;
  border-color: var(--line);
  box-shadow: 0 14px 40px rgba(13, 27, 76, 0.05);
}

.brand {
  display: block;
  width: 152px;
  height: 48px;
  overflow: hidden;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--navy);
}

.site-nav a:not(.nav-cta) {
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--slate-blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-cta {
  min-height: 42px;
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.button-primary,
.nav-cta {
  color: var(--white);
  background: var(--navy);
}

.site-nav .nav-cta {
  color: var(--white);
}

.button-primary:hover,
.nav-cta:hover {
  background: #142760;
}

.button-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
}

.button-secondary:hover {
  background: var(--mist-blue);
  border-color: var(--slate-blue);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: clamp(72px, 9vw, 126px) 0 clamp(80px, 9vw, 132px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--slate-blue);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
}

h1 {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: clamp(3.5rem, 7vw, 7.6rem);
}

h1 span {
  display: block;
  color: var(--slate-blue);
}

.hero-text {
  max-width: 660px;
  margin-bottom: 34px;
  color: #32415f;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-visual::before {
  position: absolute;
  right: -8%;
  bottom: 0;
  width: 120%;
  height: 54%;
  background:
    linear-gradient(102deg, transparent 48%, rgba(78, 106, 154, 0.14) 49%, transparent 50%),
    repeating-linear-gradient(8deg, transparent 0 18px, rgba(78, 106, 154, 0.12) 19px 20px);
  border-radius: 50% 0 0 0;
  content: "";
  opacity: 0.5;
}

.crystal {
  position: absolute;
  top: 38px;
  right: 10%;
  width: min(330px, 70vw);
  aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(217, 227, 242, 0.68));
  box-shadow: var(--shadow);
  clip-path: polygon(50% 0, 92% 24%, 88% 72%, 52% 100%, 11% 76%, 7% 28%);
  opacity: 0.82;
}

.crystal span {
  position: absolute;
  inset: 0;
  background: rgba(78, 106, 154, 0.16);
  transform-origin: center;
}

.crystal span:nth-child(1) {
  clip-path: polygon(50% 0, 52% 50%, 7% 28%);
  background: rgba(255, 255, 255, 0.64);
}

.crystal span:nth-child(2) {
  clip-path: polygon(50% 0, 92% 24%, 52% 50%);
}

.crystal span:nth-child(3) {
  clip-path: polygon(52% 50%, 88% 72%, 52% 100%);
  background: rgba(78, 106, 154, 0.2);
}

.crystal span:nth-child(4) {
  clip-path: polygon(7% 28%, 52% 50%, 11% 76%);
  background: rgba(217, 227, 242, 0.5);
}

.dot-field {
  position: absolute;
  right: 44%;
  bottom: 122px;
  width: 126px;
  height: 126px;
  background-image: radial-gradient(var(--slate-blue) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  opacity: 0.48;
}

.advisory {
  padding: clamp(78px, 9vw, 122px) 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(42px, 6vw, 74px);
}

.section-heading h2,
.insights-panel h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 4.2vw, 4.8rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-item {
  min-height: 320px;
  padding: clamp(28px, 4vw, 50px);
  border-right: 1px solid var(--line);
}

.service-item:last-child {
  border-right: 0;
}

.item-index,
.method-list span {
  margin-bottom: 18px;
  color: var(--slate-blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.service-item h3,
.method-list h3 {
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 2vw, 2.15rem);
}

.service-item p:last-child,
.method-list p {
  color: var(--muted);
  font-size: 0.98rem;
}

.methodology {
  padding: clamp(84px, 10vw, 140px) 0;
  background: linear-gradient(180deg, rgba(236, 234, 229, 0.42), rgba(217, 227, 242, 0.18));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.methodology-inner {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(42px, 7vw, 90px);
}

.method-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.method-list article {
  display: grid;
  grid-template-columns: 78px minmax(0, 0.72fr) minmax(220px, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.method-list h3,
.method-list p {
  margin-bottom: 0;
}

.insights {
  padding: clamp(88px, 10vw, 148px) 0;
}

.insights-panel {
  max-width: 930px;
  padding-left: clamp(24px, 5vw, 70px);
  border-left: 2px solid var(--navy);
}

.insights-panel p:last-child {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
  padding: clamp(76px, 9vw, 124px) 0;
  border-top: 1px solid var(--line);
}

.contact p {
  max-width: 620px;
  color: var(--muted);
}

.contact-card {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 4vw, 48px);
  font-style: normal;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-card > a,
.contact-card span {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 600;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(24px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.site-footer span,
.site-footer p {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 80px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 24px;
    left: 24px;
    display: grid;
    gap: 0;
    padding: 10px 22px 22px;
    background: rgba(249, 248, 245, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 16px;
    padding: 0 18px;
    border-bottom: 1px solid var(--navy);
  }

  .hero,
  .methodology-inner,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .crystal {
    top: 0;
    right: 0;
    width: min(270px, 70vw);
  }

  .dot-field {
    right: auto;
    left: 14%;
    bottom: 86px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-item:last-child {
    border-bottom: 0;
  }

  .method-list article {
    grid-template-columns: 64px 1fr;
  }

  .method-list p {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .section-shell {
    width: min(100% - 32px, var(--max-width));
  }

  body::before,
  body::after {
    min-width: 310px;
    min-height: 230px;
    opacity: 0.32;
  }

  .site-header {
    padding: 16px;
  }

  .brand img {
    width: 100%;
  }

  .brand {
    width: 126px;
    height: 40px;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 4.9rem);
  }

  .button-row,
  .button,
  .nav-cta,
  .contact-actions {
    width: 100%;
  }

  .hero-visual {
    min-height: 280px;
  }

  .section-heading h2,
  .insights-panel h2,
  .contact h2 {
    font-size: clamp(2.25rem, 10vw, 3.4rem);
  }

  .service-item {
    padding: 30px 0;
  }

  .method-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .method-list p {
    grid-column: auto;
  }

  .insights-panel {
    padding-left: 22px;
  }

  .contact-card {
    padding: 24px;
  }

  .site-footer {
    display: grid;
    padding: 30px 16px;
  }
}
