
/* =========================================
   EXPERTISE PAGE
========================================= */

:root {
  --ex-navy: #172a42;
  --ex-ink: #26374a;
  --ex-muted: #718092;
  --ex-gold: #b99a70;
  --ex-paper: #f8f7f3;
  --ex-line: #e8e5dd;
}

/* HERO */

.expertise-hero {
  background: var(--ex-paper);
  padding: 105px 0;
  overflow: hidden;
}

.expertise-hero-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 65px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--ex-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
  margin-bottom: 22px;
}

.expertise-hero h1,
.section-heading h2,
.domains-intro h2,
.toolkit-heading h2,
.expertise-cta h2 {
  color: var(--ex-navy);
  font-family: "Playfair Display", serif;
  font-weight: 500;
  letter-spacing: -1.5px;
}

.expertise-hero h1 {
  max-width: 650px;
  font-size: clamp(42px, 5.3vw, 68px);
  line-height: 1.12;
  margin: 0 0 25px;
}

.expertise-hero h1 em,
.section-heading h2 em,
.domains-intro h2 em,
.toolkit-heading h2 em,
.expertise-cta h2 em {
  color: var(--ex-gold);
  font-weight: 500;
}

.expertise-hero-copy > p {
  max-width: 540px;
  color: var(--ex-muted);
  font-size: 13px;
  line-height: 1.95;
}

.expertise-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 25px;
  color: var(--ex-navy);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}

.expertise-link span {
  color: var(--ex-gold);
  font-size: 20px;
  transition: transform .3s ease;
}

.expertise-link:hover span {
  transform: translateY(5px);
}

/* HERO VISUAL */

.expertise-hero-visual {
  position: relative;
  padding: 22px;
}

.expertise-visual-frame {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 23px;
  background: var(--ex-navy);
  box-shadow: 0 25px 60px rgba(23,42,66,.14);
}

.visual-topline,
.visual-bottomline {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #c2cbd5;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.visual-wave {
  display: flex;
  align-items: center;
  width: 100%;
}

.visual-wave svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.visual-wave path:first-child {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: wave-draw 2.8s ease forwards;
}

.visual-floating-note {
  position: absolute;
  right: -10px;
  bottom: -12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  background: white;
  box-shadow: 0 12px 35px rgba(23,42,66,.12);
  color: var(--ex-navy);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

.floating-note-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ex-gold);
}

/* SECTION HEADINGS */

.expertise-areas {
  padding: 110px 0;
  background: white;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 55px;
}

.section-heading h2,
.domains-intro h2,
.toolkit-heading h2 {
  font-size: clamp(35px, 4vw, 51px);
  line-height: 1.2;
  margin: 0 0 20px;
}

.section-heading > p,
.domains-intro > p {
  max-width: 590px;
  color: var(--ex-muted);
  font-size: 12px;
  line-height: 1.95;
}

/* EXPERTISE CARDS */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.expertise-card {
  position: relative;
  padding: 32px;
  background: var(--ex-paper);
  border: 1px solid var(--ex-line);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.expertise-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ex-gold);
  transition: width .4s ease;
}

.expertise-card:hover {
  transform: translateY(-6px);
  border-color: rgba(185,154,112,.6);
  box-shadow: 0 20px 45px rgba(23,42,66,.07);
}

.expertise-card:hover::after {
  width: 100%;
}

.expertise-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.expertise-number {
  color: var(--ex-gold);
  font-family: "Playfair Display", serif;
  font-size: 28px;
}

.expertise-symbol {
  width: 52px;
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(185,154,112,.5);
  border-radius: 50%;
  color: var(--ex-gold);
  font-family: "Playfair Display", serif;
  font-size: 29px;
}

.expertise-category {
  color: var(--ex-gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.7px;
}

.expertise-card h3 {
  max-width: 420px;
  color: var(--ex-navy);
  font-family: "Playfair Display", serif;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 500;
  margin: 13px 0;
}

.expertise-card > p {
  min-height: 75px;
  color: var(--ex-muted);
  font-size: 11px;
  line-height: 1.9;
}

.skill-divider {
  width: 100%;
  height: 1px;
  margin: 22px 0;
  background: var(--ex-line);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  padding: 8px 11px;
  border: 1px solid #e6e1d7;
  background: #fff;
  color: var(--ex-ink);
  font-size: 9px;
  line-height: 1.4;
  transition: background .25s ease, border-color .25s ease;
}

.expertise-card:hover .skill-tags span {
  border-color: #d8c7ae;
}

/* WORKFLOW */

.workflow-section {
  padding: 110px 0;
  background: var(--ex-paper);
}

.workflow {
  display: grid;
  grid-template-columns: 1fr 30px 1fr 30px 1fr 30px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 65px;
}

.workflow-step {
  min-height: 260px;
  padding: 25px 19px;
  background: white;
  border: 1px solid var(--ex-line);
  transition: transform .3s ease, box-shadow .3s ease;
}

.workflow-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(23,42,66,.07);
}

.workflow-step-number {
  color: var(--ex-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}

.workflow-icon {
  width: 50px;
  height: 50px;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--ex-paper);
  color: var(--ex-gold);
  font-family: "Playfair Display", serif;
  font-size: 28px;
}

.workflow-step h3 {
  color: var(--ex-navy);
  font-family: "Playfair Display", serif;
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 10px;
}

.workflow-step p {
  min-height: 65px;
  color: var(--ex-muted);
  font-size: 10px;
  line-height: 1.8;
}

.workflow-tool {
  display: inline-block;
  margin-top: 10px;
  color: var(--ex-gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .7px;
}

.workflow-connector {
  color: var(--ex-gold);
  text-align: center;
  font-size: 20px;
}

/* RESEARCH DOMAINS */

.domains-section {
  padding: 110px 0;
  background: white;
}

.domains-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.domains-intro {
  position: sticky;
  top: 115px;
}

.domains-list {
  border-top: 1px solid var(--ex-line);
}

.domain-row {
  display: grid;
  grid-template-columns: 35px 1fr 25px;
  gap: 14px;
  align-items: center;
  padding: 23px 0;
  border-bottom: 1px solid var(--ex-line);
  transition: padding .3s ease;
}

.domain-row:hover {
  padding-left: 8px;
}

.domain-row > span:first-child {
  color: var(--ex-gold);
  font-family: "Playfair Display", serif;
  font-size: 17px;
}

.domain-row h3 {
  color: var(--ex-navy);
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.domain-arrow {
  color: var(--ex-gold);
  font-size: 17px;
  transition: transform .3s ease;
}

.domain-row:hover .domain-arrow {
  transform: translate(3px, -3px);
}

/* SOFTWARE TOOLKIT */

.toolkit-section {
  padding: 100px 0;
  background: var(--ex-paper);
}

.toolkit-heading {
  margin-bottom: 40px;
}

.toolkit-groups {
  border-top: 1px solid var(--ex-line);
}

.toolkit-group {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--ex-line);
}

.toolkit-group-label {
  color: var(--ex-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.toolkit-group-content {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-chip {
  padding: 10px 15px;
  background: white;
  border: 1px solid var(--ex-line);
  color: var(--ex-navy);
  font-size: 10px;
  font-weight: 600;
  transition: background .25s ease, color .25s ease;
}

.tool-chip:hover {
  background: var(--ex-navy);
  border-color: var(--ex-navy);
  color: white;
}

.toolkit-note {
  margin-top: 22px;
  color: var(--ex-muted);
  font-size: 10px;
  line-height: 1.8;
}

/* CTA */

.expertise-cta {
  padding: 105px 0;
  text-align: center;
  background: white;
}

.expertise-cta-inner {
  max-width: 780px;
  margin: auto;
}

.expertise-cta h2 {
  font-size: clamp(35px, 4.5vw, 53px);
  line-height: 1.25;
  margin: 0 0 20px;
}

.expertise-cta p {
  max-width: 550px;
  margin: auto;
  color: var(--ex-muted);
  font-size: 12px;
  line-height: 1.9;
}

.expertise-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 23px;
  margin-top: 30px;
  padding: 15px 23px;
  background: var(--ex-navy);
  color: white;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: background .3s ease, transform .3s ease;
}

.expertise-cta-button:hover {
  background: #263e5c;
  transform: translateY(-3px);
}

.expertise-cta-button span {
  color: var(--ex-gold);
  font-size: 17px;
}

/* REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes wave-draw {
  to { stroke-dashoffset: 0; }
}

/* RESPONSIVE */

@media (max-width: 1050px) {
  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .workflow-connector {
    display: none;
  }

  .workflow-step {
    min-height: 230px;
  }
}

@media (max-width: 850px) {
  .expertise-hero-layout,
  .domains-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .expertise-hero-visual {
    max-width: 600px;
    width: 100%;
  }

  .domains-intro {
    position: static;
  }

  .toolkit-group {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 650px) {
  .expertise-hero {
    padding: 75px 0;
  }

  .expertise-hero-visual {
    padding: 10px;
  }

  .expertise-visual-frame {
    min-height: 240px;
    padding: 16px;
  }

  .visual-topline,
  .visual-bottomline {
    font-size: 7px;
  }

  .visual-floating-note {
    right: -3px;
    font-size: 7px;
  }

  .expertise-areas,
  .workflow-section,
  .domains-section,
  .toolkit-section {
    padding: 75px 0;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .expertise-card {
    padding: 26px 22px;
  }

  .expertise-card > p {
    min-height: 0;
  }

  .workflow {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .workflow-step {
    min-height: 0;
  }

  .workflow-step p {
    min-height: 0;
  }

  .toolkit-group {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .domain-row {
    grid-template-columns: 28px 1fr 20px;
    gap: 10px;
  }

  .domain-row h3 {
    font-size: 15px;
  }

  .expertise-cta {
    padding: 75px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .visual-wave path,
  .expertise-card,
  .workflow-step {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
