/* =========================================================
   EvidenceMind AI — design system
   ========================================================= */

:root {
  --ink: #0b1a2b;
  --navy: #06284a;
  --navy-deep: #041a31;
  --navy-hero: #051d36;
  --teal: #079a9a;
  --teal-deep: #047a7d;
  --teal-bright: #2dd4cd;
  --amber: #c9962f;
  --mist: #f4f8f9;
  --line: #e2ebec;
  --line-dark: rgba(255, 255, 255, 0.14);
  --muted: #5b7176;
  --body: #3d565c;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(6, 40, 74, 0.06);
  --shadow-md: 0 14px 40px rgba(6, 40, 74, 0.1);
  --shadow-lg: 0 30px 80px rgba(4, 26, 49, 0.22);
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --pad-x: clamp(20px, 5vw, 72px);
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Typography ---------- */

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

h1 {
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--teal-bright);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.14rem;
  font-weight: 750;
  line-height: 1.3;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--teal);
}

.section-heading.centered .section-kicker {
  justify-content: center;
}

.section-lead {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--body);
  font-size: 1.08rem;
}

.inline-link {
  color: var(--teal-deep);
  font-weight: 700;
  border-bottom: 1.5px solid rgba(4, 122, 125, 0.35);
  transition: border-color 150ms ease;
}

.inline-link:hover {
  border-color: var(--teal-deep);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button .icon {
  width: 1.05em;
  height: 1.05em;
  transition: transform 160ms ease;
}

.button:hover .icon {
  transform: translateX(4px);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  box-shadow: 0 14px 34px rgba(4, 122, 125, 0.32);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(4, 122, 125, 0.4);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.button.ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.button.large {
  min-height: 56px;
  padding: 0 32px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 235, 236, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 200ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 34px rgba(6, 40, 74, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: calc(var(--container) + 2 * var(--pad-x));
  min-height: 76px;
  margin: 0 auto;
  padding: 12px var(--pad-x);
}

.brand {
  flex: 0 0 auto;
  display: flex;
}

.brand img {
  width: clamp(178px, 18vw, 250px);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  color: #2c4a50;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a:not(.nav-cta) {
  position: relative;
  padding: 8px 0;
  transition: color 150ms ease;
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--teal);
  transition: right 200ms ease;
}

.nav a:not(.nav-cta):hover,
.nav a.is-active {
  color: var(--teal-deep);
}

.nav a:not(.nav-cta):hover::after,
.nav a.is-active::after {
  right: 0;
}

.nav-cta {
  display: none;
}

.header-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
  font-size: 0.9rem;
  font-weight: 750;
  transition: background 160ms ease, transform 160ms ease;
}

.header-action:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle span[aria-hidden] {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle i {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] i:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(7, 154, 154, 0.22), transparent 60%),
    radial-gradient(700px 420px at 8% 100%, rgba(7, 154, 154, 0.1), transparent 60%),
    linear-gradient(160deg, #072947 0%, var(--navy-hero) 45%, var(--navy-deep) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 29, 54, 0.94) 30%, rgba(5, 29, 54, 0.55) 70%, rgba(5, 29, 54, 0.35) 100%),
    url("assets/evidencemind-hero.png") right center / cover no-repeat;
  opacity: 0.5;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(720px 480px at 78% 40%, rgba(0, 0, 0, 0.9), transparent 72%);
  -webkit-mask-image: radial-gradient(720px 480px at 78% 40%, rgba(0, 0, 0, 0.9), transparent 72%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
  max-width: calc(var(--container) + 2 * var(--pad-x));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) var(--pad-x) clamp(64px, 9vw, 120px);
}

.hero .eyebrow {
  color: var(--teal-bright);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(45, 212, 205, 0.18);
}

.hero-text {
  max-width: 620px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.06rem, 1.6vw, 1.24rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.value-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-pillars li {
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

/* Pipeline card */

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.pipeline-card {
  width: min(100%, 460px);
  padding: 30px 30px 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(10, 46, 78, 0.85), rgba(4, 24, 44, 0.92));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pipeline-title {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pipeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(45, 212, 205, 0.35);
  border-radius: 12px;
  color: var(--teal-bright);
  background: rgba(45, 212, 205, 0.08);
}

.pipeline-step strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  font-weight: 750;
}

.pipeline-step span:not(.pipeline-icon) {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
}

.pipeline-connector {
  padding-left: 22px;
}

.pipeline-connector span {
  display: block;
  width: 2px;
  height: 26px;
  margin: 6px 0;
  background: linear-gradient(180deg, rgba(45, 212, 205, 0.55), rgba(45, 212, 205, 0.12));
}

/* ---------- Sections (shared) ---------- */

.section {
  padding: clamp(72px, 9vw, 120px) var(--pad-x);
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

/* ---------- Intro ---------- */

.intro {
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}

.intro-grid h2 {
  margin-bottom: 0;
}

.intro-side {
  margin: 0;
  padding-left: clamp(0px, 3vw, 36px);
  border-left: 3px solid var(--teal);
  color: var(--body);
  font-size: 1.1rem;
  line-height: 1.75;
}

/* ---------- Services ---------- */

.services {
  background: var(--mist);
}

.card-grid {
  display: grid;
  gap: 22px;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  transition: right 260ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(7, 154, 154, 0.35);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  right: 0;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  color: var(--teal-deep);
  background: rgba(7, 154, 154, 0.1);
  font-size: 1.25rem;
}

.service-card p,
.focus-card p,
.process-item p,
.ethos-item p:last-child {
  margin-bottom: 0;
  color: var(--body);
  font-size: 0.97rem;
}

/* ---------- Automate examples ---------- */

.automate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.automate-grid li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--mist);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 650;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.automate-grid li:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 154, 154, 0.35);
  box-shadow: var(--shadow-sm);
}

.automate-grid .icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  padding: 5px;
  border-radius: 999px;
  color: var(--teal-deep);
  background: rgba(7, 154, 154, 0.14);
}

/* ---------- Approach / process ---------- */

.process-list {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-item {
  position: relative;
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.process-item::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -22px;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), rgba(7, 154, 154, 0.15));
}

.process-item:last-child::after {
  display: none;
}

.item-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* ---------- Platform ---------- */

.platform {
  padding: clamp(72px, 9vw, 120px) var(--pad-x);
  color: var(--white);
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(7, 154, 154, 0.16), transparent 60%),
    linear-gradient(150deg, #072947, var(--navy-deep));
}

.platform-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.platform-media {
  position: relative;
}

.platform-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.platform-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--white);
  background: rgba(4, 24, 44, 0.78);
  font-size: 0.84rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.platform-badge .icon {
  color: var(--teal-bright);
}

.platform h2,
.platform .section-kicker {
  color: var(--white);
}

.platform .section-kicker {
  color: var(--teal-bright);
}

.platform .section-kicker::before {
  background: var(--teal-bright);
}

.platform-copy > p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
}

.feature-list .icon {
  margin-top: 3px;
  color: var(--teal-bright);
}

.feature-list strong {
  color: var(--white);
  font-weight: 750;
}

/* ---------- Ethos ---------- */

.ethos {
  border-bottom: 1px solid var(--line);
}

.ethos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.ethos-title {
  margin-bottom: 12px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 500;
}

.ethos-item {
  position: relative;
  padding-top: 26px;
}

.ethos-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 34px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: var(--teal);
}

/* ---------- Focus sectors ---------- */

.focus {
  background: var(--mist);
}

.focus-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.focus-card {
  padding: 30px 30px 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.about-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 42%, rgba(7, 154, 154, 0.14), transparent 62%),
    var(--mist);
  border: 1px solid var(--line);
}

.about-media img {
  width: 58%;
  filter: drop-shadow(0 18px 32px rgba(6, 40, 74, 0.18));
}

.about-copy p {
  color: var(--body);
  font-size: 1.05rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.faq-layout .section-heading {
  margin-bottom: 0;
  position: sticky;
  top: 110px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.faq-item[open] {
  border-color: rgba(7, 154, 154, 0.4);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: var(--navy);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-marker {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(7, 154, 154, 0.12);
}

.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  transform: translate(-50%, -50%);
  background: var(--teal-deep);
  transition: transform 200ms ease;
}

.faq-marker::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-marker::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--body);
  font-size: 0.97rem;
}

/* ---------- Contact ---------- */

.contact {
  padding: clamp(72px, 9vw, 120px) var(--pad-x);
  color: var(--white);
  background:
    radial-gradient(760px 420px at 12% 8%, rgba(7, 154, 154, 0.2), transparent 60%),
    linear-gradient(155deg, #072947, var(--navy-deep));
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.contact h2,
.contact .section-kicker {
  color: var(--white);
}

.contact .section-kicker {
  color: var(--teal-bright);
}

.contact .section-kicker::before {
  background: var(--teal-bright);
}

.contact-copy > p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.06rem;
}

.contact-details {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 650;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-details .icon {
  color: var(--teal-bright);
}

.contact-details a {
  border-bottom: 1.5px solid rgba(45, 212, 205, 0.4);
  transition: border-color 150ms ease;
}

.contact-details a:hover {
  border-color: var(--teal-bright);
}

/* Form */

.contact-form {
  position: relative;
  padding: 32px 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 750;
}

.form-row .optional {
  color: var(--muted);
  font-weight: 600;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdfd;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(7, 154, 154, 0.15);
}

.contact-form .button {
  width: 100%;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- Footer ---------- */

.site-footer {
  color: rgba(255, 255, 255, 0.75);
  background: var(--navy-deep);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px var(--pad-x) 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-title {
  margin: 0;
  color: var(--white);
  font-weight: 800;
}

.footer-tagline {
  margin: 0;
  color: var(--teal-bright);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-nav a {
  transition: color 150ms ease;
}

.footer-nav a:hover {
  color: var(--teal-bright);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px var(--pad-x) 26px;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-location {
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Reveal animations ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] {
  transition-delay: 110ms;
}

[data-reveal-delay="2"] {
  transition-delay: 220ms;
}

[data-reveal-delay="3"] {
  transition-delay: 330ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .service-card,
  .focus-card {
    transition: none;
  }
}

/* ---------- Focus visibility ---------- */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(7, 154, 154, 0.55);
  outline-offset: 2px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-item:nth-child(2n)::after {
    display: none;
  }
}

@media (max-width: 940px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--pad-x) 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 44px rgba(6, 40, 74, 0.12);
  }

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

  .nav a:not(.nav-cta) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 16px;
    border-radius: 999px;
    color: var(--white);
    background: var(--navy);
  }

  .header-action {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: clamp(56px, 9vw, 88px);
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .pipeline-card {
    width: min(100%, 520px);
  }

  .intro-grid,
  .platform-inner,
  .about-grid,
  .contact-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-layout .section-heading {
    position: static;
  }

  .intro-side {
    padding-left: 24px;
  }

  .about-media {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 178px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .services-grid,
  .focus-grid,
  .process-list,
  .ethos-grid,
  .automate-grid {
    grid-template-columns: 1fr;
  }

  .process-item::after {
    display: none;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form {
    padding: 26px 20px;
  }
}
