/* ==========================================================================
   Chematrix Solutions — Design System
   Concept: engineering blueprint / simulation readout.
   Physics pillar   -> blueberry streamlines (cool, continuous, vector-like)
   Data pillar      -> amber nodes (discrete, punctual, signal-like)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Playfair+Display:wght@600;700;800&display=swap");
:root {
  --blueberry: #164065;
  --blueberry-deep: #06233d;
  --lightgray: #efebeb;
  --white: #ffffff;
  --ink: #0c1b2a;
  --ink-soft: #4a5a68;
  --line: rgba(10, 55, 95, 0.14);
  --line-strong: rgba(10, 55, 95, 0.28);
  --flow: #4fa9dd;
  --Black: #000000;
  --font-display: Georgia, "Times New Roman", serif;
  /* --font-display: "Space Grotesk", "Inter", sans-serif; */
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --maxw: 1240px;
  --radius: 2px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--blueberry-deep);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 700;
}

p {
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-outline {
  border-color: var(--line-strong);
  color: var(--blueberry);
  background: transparent;
}

.btn-outline:hover {
  background: var(--blueberry);
  color: var(--white);
  border-color: var(--blueberry);
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--blueberry);
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--Black);
  position: relative;
  padding: 6px 0;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blueberry);
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--line);
  }

  .nav-links.open {
    transform: translateX(0);
  }
  .nav-toggle {
    display: block;
  }
  .nav-cta .btn-outline {
    display: none;
  }
}
/* ******************************************************************************** */
/* ************************* HERO-Home Page Style Starts ************************** */
/* ******************************************************************************** */

.hero {
  position: relative;
  background: var(--blueberry-deep);
  color: #fff;
  overflow: hidden;
  padding: 80px 0 64px;
  min-height: 360px;
}

.page-hero {
  position: relative;
  min-height: 360px;
  padding: 80px 0 64px;
  overflow: hidden;
  color: #fff;
  background: var(--blueberry-deep);
}

.page-hero h1,
.page-hero p,
.page-hero .breadcrumb {
  color: #fff;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* text slightly wider than visual */
  align-items: center;
  gap: 40px;
}

.hero-copy {
  /* already flex:1 in your code; this overrides for grid */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ensure heading stays inline for reflection */
.hero h1 {
  color: #fff;
  margin: 0 0 16px 0;
  font-family: Georgia, "Times New Roman", serif;
  position: relative;
  display: inline-block;
  transform: scaleY(1);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.2));
  line-height: 3;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
}

/* Water reflection effect */
.hero h1::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 122%;
  transform: scaleY(-1);
  transform-origin: top;
  opacity: 0.5;
  filter: blur(1px);
  mask-image: linear-gradient(
    to bottom,
    rgba(147, 255, 228, 0.8),
    rgba(255, 255, 255, 0)
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(147, 255, 228, 0.8),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
  white-space: nowrap;
  /* Color tint for reflection */
  background: rgb(179, 255, 231); /* --flow color with alpha */
  -webkit-background-clip: text;
  background-clip: text;
  color: rgb(151, 244, 239); /* same as background for safety */
}

.hero-lede {
  color: rgb(255, 255, 255);
  font-size: 1.3rem;
  max-width: 520px;
  margin: 0;
}

/* Background & grid (keep your existing logic, just ensure stacking) */
.hero-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}

.homepage-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.homepage-background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-visual video {
  display: block;
  width: min(100%, 560px);
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

/* Responsive: tablet & mobile */
@media (max-width: 900px) {
  .hero {
    padding: 56px 0 40px;
  }

  .hero-layout {
    grid-template-columns: 1fr; /* stack vertically */
    gap: 28px;
  }

  /* On small screens, keep text on top, visual below */
  .hero-copy {
    order: 1;
    text-align: left;
  }

  .hero-visual {
    order: 2;
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .hero-lede {
    font-size: 0.95rem;
  }

  .hero-visual video {
    max-height: 260px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0 28px;
  }

  .wrap {
    padding: 0 20px;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  .hero-lede {
    font-size: 0.9rem;
  }
}

/* ******************************************************************************** */
/* ************************* Our Services Section CSS ***************************** */
/* ******************************************************************************** */

/* Main section */
.services-section {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 15px;
  font-family: var(--font-body);
}

/* Responsive grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Flip-card container */
.service-flip-card {
  height: 300px;
  perspective: 1100px;
}

/* Rotating wrapper */
.service-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4, 0.2, 0.2, 1);
}

/* Flip on hover and keyboard focus */
.service-flip-card:hover .service-flip-inner,
.service-flip-card:focus-within .service-flip-inner {
  transform: rotateY(180deg);
}

/* Both card sides */
.service-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Front card */
.service-front {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(10, 55, 95, 0.06);
}

/* Image or illustration area */
.service-image-area {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 224px;
  padding: 22px;
  background: var(--lightgray);
}

/* Replace image with your own illustration */
.service-image-area img {
  display: block;
  width: 175px;
  height: 175px;
  object-fit: contain;
}

/* Gradient service name strip */
.service-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 15px 12px;
  background: var(--blueberry);
  border-top: 1px solid var(--line);
}

.service-title h3 {
  margin: 0;
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.25;
  text-align: center;
  text-transform: none;
}

/* Back card */
.service-back {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: #ffffff;
  background: var(--blueberry-deep);
  transform: rotateY(180deg);
}

/* Back-card content */
.service-back-content {
  width: 100%;
  text-align: center;
}

.service-small-label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  color: #8fcbef;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
}

.service-back h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 22px;
  line-height: 1.25;
  text-transform: none;
}

.service-back p {
  margin: 0 auto 23px;
  max-width: 270px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.6;
}

/* Learn More button */
.service-button {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  color: #ffffff;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

.service-button:hover,
.service-button:focus {
  color: var(--blueberry-deep);
  background: var(--flow);
  border-color: var(--flow);
}

/* Mobile */
@media (max-width: 600px) {
  .services-section {
    padding: 25px 10px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-flip-card {
    height: 290px;
  }
}

/* Reduced-motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .service-flip-inner {
    transition: none;
  }
}

/* Centered "Our Services" heading */
.services-heading-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px 40px;
}

.services-heading {
  margin: 0;
  font-size: 2rem; /* or use your heading scale */
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
}

/* Grid stays as before, but centered via max-width + margin */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto; /* centers the grid block */
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Responsive */
@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ******************************************************************************** */
/* ************************* How we work Page Style Starts ************************ */
/* ******************************************************************************** */

/* Heading */
.how-we-work-heading-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px 20px;
  width: 100%;
}

.how-we-work-heading {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
}

/* Description */
.how-we-work-description-wrap {
  display: flex;
  justify-content: center;
  padding: 0 20px 40px;
  width: 100%;
}

.how-we-work-description {
  margin: 0;
  max-width: 680px;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #334155; /* or use your body text color variable if you have one */
}

/* ******************************************************************************** */
/* ************************* Case Study Style Starts ************************ */
/* ******************************************************************************** */

/* Main section */
.case-studies-section {
  position: relative;
  overflow: hidden;
  padding: 95px 20px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 15%, rgba(79, 169, 221, 0.1), transparent 28%),
    radial-gradient(
      circle at 92% 85%,
      rgba(228, 161, 59, 0.08),
      transparent 30%
    ),
    var(--white);
  font-family: var(--font-body);
}

.case-studies-container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

/* Heading */
.case-studies-heading {
  max-width: 760px;
  margin: 0 auto 45px;
  text-align: center;
}

.case-studies-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  color: var(--flow);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.case-studies-eyebrow:not(:empty)::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--flow);
}

.case-studies-heading h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  color: var(--blueberry-deep);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.14;
}

.case-studies-heading h2 span {
  color: var(--flow);
}

.case-studies-heading p {
  margin: 0 auto;
  max-width: 690px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

/* Tabs */
.case-study-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 38px;
}

.case-study-tab {
  padding: 13px 23px;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  color: var(--blueberry);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.case-study-tab:hover,
.case-study-tab:focus-visible,
.case-study-tab.is-active {
  border-color: var(--blueberry);
  color: #fbfbfb;
  background: var(--blueberry);
  outline: none;
}

/* Panels */
.case-study-panel {
  display: block;
}

.case-study-panel[hidden] {
  display: none;
}

/* Carousel */
.case-study-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.case-study-track {
  display: flex;
  flex: 1;
  gap: 22px;
  overflow-x: auto;
  padding: 12px 5px 25px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: #0b95da transparent;
  scrollbar-width: thin;
}

.case-study-track:focus-visible {
  outline: 3px solid rgb(4, 105, 145);
  outline-offset: 5px;
}

/* Card */
.case-study-card {
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(10, 55, 95, 0.06);
  scroll-snap-align: start;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 34px rgba(10, 55, 95, 0.12);
}

.case-study-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Card image */
.case-study-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 205px;
  padding: 0;
  background: var(--lightgray);
}

.case-study-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(79, 169, 221, 0.08),
    rgba(10, 55, 95, 0.04)
  );
  content: "";
  pointer-events: none;
}

.case-study-image img {
  position: relative;
  z-index: 1;
  width: 95%;
  height: 95%;
  object-fit: cover;
}

.case-study-image img[src$=".svg"] {
  object-fit: contain;
}

/* Category badge */
.case-study-category {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 15px;
  padding: 7px 10px;
  border-radius: 20px;
  color: var(--blueberry-deep);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Card content */
.case-study-content {
  position: relative;
  padding: 25px 23px 27px;
}

.case-study-number {
  position: absolute;
  top: 23px;
  right: 22px;
  font-family: var(--font-mono);
  color: rgba(10, 55, 95, 0.18);
  font-size: 16px;
  font-weight: 700;
}

.case-study-content h3 {
  max-width: 82%;
  margin: 0 0 13px;
  font-family: var(--font-display);
  color: var(--blueberry-deep);
  font-size: 20px;
  line-height: 1.3;
}

.case-study-content p {
  min-height: 70px;
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.case-study-read-more {
  color: var(--flow);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.case-study-read-more span {
  display: inline-block;
  margin-left: 7px;
  font-size: 17px;
  transition: transform 0.2s ease;
}

.case-study-card:hover .case-study-read-more span {
  transform: translateX(4px);
}

/* Carousel controls */
.carousel-control {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--blueberry);
  background: #ffffff;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.25s ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  color: #ffffff;
  background: var(--blueberry);
  border-color: var(--blueberry);
  outline: none;
}

/* Footer */
.case-studies-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 38px;
  padding: 22px 26px;
  border-radius: 4px;
  background: var(--blueberry);
}

.case-studies-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.5;
}

.case-study-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding: 12px 19px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.25s ease;
}

.case-study-button:hover,
.case-study-button:focus-visible {
  color: var(--blueberry-deep);
  background: var(--flow);
  border-color: var(--flow);
  outline: none;
}

/* Tablet */
@media (max-width: 1000px) {
  .case-study-card {
    flex-basis: calc((100% - 22px) / 2);
  }
}

/* Mobile */
@media (max-width: 650px) {
  .case-studies-section {
    padding: 70px 14px;
  }

  .case-studies-heading p {
    font-size: 16px;
  }

  .case-study-tabs {
    align-items: stretch;
    flex-direction: column;
    margin-right: 12px;
    margin-left: 12px;
  }

  .case-study-tab {
    width: 100%;
  }

  .case-study-carousel {
    gap: 8px;
  }

  .case-study-track {
    gap: 15px;
    padding-right: 2px;
    padding-left: 2px;
  }

  .case-study-card {
    flex-basis: 88%;
    min-width: 0;
  }

  .carousel-control {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .case-studies-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-study-button {
    width: 100%;
    justify-content: center;
  }
}

/* Shared footer */
footer {
  background: #0b1220;
  color: #e6ebf2;
  padding: 70px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: #a7b3c6;
  font-size: 0.95rem;
  margin: 10px 0 0;
  max-width: 360px;
  line-height: 1.6;
}

.footer-brand .brand {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--flow);
  text-align: center;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--blueberry-deep);
  border-color: var(--flow);
  background: var(--flow);
  outline: none;
}

footer h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
}

footer ul li {
  margin: 8px 0;
}

footer ul li a {
  color: #cfd8e6;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

footer ul li a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  font-size: 0.85rem;
  color: #9fb0c7;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .case-study-card,
  .case-study-button,
  .case-study-tab,
  .carousel-control,
  .case-study-read-more span {
    transition: none;
  }

  .case-study-track {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   CONTACT PAGE STYLES (merge into existing style.css)
   ========================================================================== */

/* Page Hero is already styled via .page-hero from About styles */

/* Contact main layout */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  padding: 70px 32px;
  max-width: 1240px;
  margin: 0 auto;
}

/* Contact info column */
.contact-info {
  padding-top: 10px;
}

.contact-info .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  color: var(--flow);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.contact-info .eyebrow:not(:empty)::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--flow);
}

.contact-info h3 {
  margin: 0 0 12px 0;
  font-family: var(--font-display);
  color: var(--blueberry-deep);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.2;
}

.contact-info p {
  margin: 0 0 28px 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 420px;
}

/* Info rows (email, phone, location) */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.info-row div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-row strong {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blueberry);
}

.info-row a {
  color: var(--ink);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.info-row a:hover {
  color: var(--flow);
}

.info-row span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Contact chips */
.contact-chip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-chip span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--blueberry);
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.25s ease;
}

.contact-chip span:hover {
  border-color: var(--blueberry);
  background: var(--blueberry);
  color: #fff;
}

/* Form card */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 26px rgba(10, 55, 95, 0.06);
}

/* Form layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blueberry);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a0aec0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--flow);
  box-shadow: 0 0 0 3px rgba(79, 169, 221, 0.15);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

/* File upload area */
.field-file {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Submit button arrow */
.btn-arrow {
  font-size: 1.1em;
  margin-left: 4px;
  transition: transform 0.2s ease;
}
.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 900px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 20px;
  }

  .contact-info p {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-card {
    padding: 20px 16px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding-right: 16px;
    padding-left: 16px;
  }
  .nav .wrap {
    height: 64px;
  }

  .nav {
    background: #e5e5e5;
  }
  .brand {
    gap: 7px;
    font-size: 1.2rem;
  }
  .brand-logo {
    width: 32px;
    height: 32px;
  }
  .nav-links {
    position: fixed;
    top: 64px;
    right: -100%;
    bottom: auto;
    left: 0;
    right: -100%;
    background: #e5e5e5;
    padding: 24px 20px;
    transform: none;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
    transition: right 0.3s ease;
  }
  .nav-links.open {
    right: 0;
    visibility: visible;
    pointer-events: auto;
  }
  .hero {
    min-height: 0;
    padding: 48px 0 36px;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero h1 {
    line-height: 1.25;
  }
  .hero-lede {
    max-width: none;
  }
  .services-section {
    padding: 40px 0;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }
  .service-flip-card {
    height: 290px;
  }
  .how-we-work-description {
    font-size: 1rem;
  }
  .case-studies-section {
    padding: 56px 16px;
  }
  .footer-grid {
    gap: 28px;
  }
  .footer-bottom {
    text-align: center;
  }
}
