:root {
  --cw-navy: #022351;
  --cw-navy-dark: #00142f;
  --cw-blue: #0f5edb;
  --cw-text: #0f172a;
  --cw-muted: #4d5d73;
  --cw-border: rgba(6, 40, 95, 0.14);
  --cw-soft: #f7faff;
  --cw-white: #ffffff;
}

/* ================================
   HOME V2 BASE
================================ */

.home-v2 {
  background: #fff;
  color: var(--cw-text);
  font-family: var(--font-family-base, "Barlow", system-ui, sans-serif);
}

.home-v2 *,
.home-v2 *::before,
.home-v2 *::after {
  box-sizing: border-box;
}

.home-v2 img {
  max-width: 100%;
}

/* ================================
   SHARED CONTAINER
================================ */

.home-v2 .container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* ================================
   HERO
================================ */

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/backgrounds/smooth-wavy-blue-line-background.webp");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0.62;
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 76px;
}

.home-hero__content {
  max-width: 560px;
}

/* ================================
   HERO TYPE
   Uses existing Archivo Black setup from work.css
================================ */

.home-hero__title {
  font-family: var(--font-family-hero, "Archivo Black", system-ui, sans-serif);
  margin: 0 0 30px;
  color: var(--cw-navy);
  font-size: clamp(52px, 5.8vw, 118px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  font-weight: 400;
  max-width: 5.5ch;
}

.home-hero__title span {
  display: block;
}

.home-hero__copy {
  max-width: 480px;
  color: var(--cw-text);
  font-family: var(--font-family-base, "Barlow", system-ui, sans-serif);
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.14rem);
  line-height: 1.65;
}

.home-hero__copy p {
  margin: 0 0 18px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* ================================
   BUTTONS
================================ */

.home-v2 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  font-family: var(--font-family-base, "Barlow", system-ui, sans-serif);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.home-v2 .btn:hover {
  transform: translateY(-2px);
}

.home-v2 .btn-primary {
  color: #fff;
  background: var(--cw-navy);
  border: 1px solid var(--cw-navy);
  box-shadow: 0 12px 28px rgba(6, 40, 95, 0.16);
}

.home-v2 .btn-primary:hover {
  background: #0b3477;
  border-color: #0b3477;
}

.home-v2 .btn-secondary {
  color: var(--cw-navy);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(6, 40, 95, 0.28);
}

.home-v2 .btn-secondary:hover {
  border-color: var(--cw-navy);
  background: rgba(255, 255, 255, 0.92);
}

/* =========================================
   FEATURED WORK SECTION
========================================= */

.featured-work-v2 {
  padding: 58px 0 34px;

  background: linear-gradient(
    180deg,
    #f8fbff 0%,
    #ffffff 100%
  );

  border-top: 1px solid rgba(6, 40, 95, 0.06);
}

/* =========================================
   EYEBROW
========================================= */

.eyebrow {
  margin: 0 0 10px;

  color: var(--cw-blue, #0f5edb);

  font-family: var(--font-family-base, "Barlow", system-ui, sans-serif);

  font-size: 0.82rem;

  font-weight: 900;

  text-transform: uppercase;

  letter-spacing: 0.055em;
}

/* =========================================
   FEATURED TITLE
========================================= */

.featured-title-v2 {
  margin: 0 0 30px;

  color: var(--cw-navy, #022351);

  font-family: var(--font-family-heading, "Barlow", system-ui, sans-serif);

  font-size: clamp(1.9rem, 3vw, 2.7rem);

  line-height: 1.05;

  letter-spacing: -0.045em;

  font-weight: 900;
}

/* =========================================
   WORK CARD GRID
========================================= */

.work-card-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 22px;
}

/* =========================================
   CARD
========================================= */

.work-card {
  display: block;

  overflow: hidden;

  color: var(--cw-text, #0f172a);

  background: #ffffff;

  border: 1px solid rgba(6, 40, 95, 0.08);

  border-radius: 14px;

  text-decoration: none;

  box-shadow: 0 18px 40px rgba(6, 40, 95, 0.08);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.work-card:hover {
  transform: translateY(-4px);

  box-shadow: 0 24px 54px rgba(6, 40, 95, 0.14);
}

/* =========================================
   IMAGE
========================================= */

.work-card__image {
  position: relative;

  overflow: hidden;

  aspect-ratio: 16 / 8;

  background: #dfe7f3;
}

.work-card__image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 220ms ease;
}

.work-card:hover .work-card__image img {
  transform: scale(1.045);
}

/* =========================================
   DARK OVERLAY
========================================= */

.work-card__image::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.05) 20%,
      rgba(0, 0, 0, 0.72) 100%
    );
}

/* =========================================
   IMAGE OVERLAY TEXT
========================================= */

.work-card__overlay {
  position: absolute;

  z-index: 1;

  left: 20px;
  right: 20px;
  bottom: 18px;

  color: #ffffff;
}

.work-card__overlay h3 {
  margin: 0;

  color: #ffffff !important;

  font-family: var(--font-family-heading, "Barlow", system-ui, sans-serif);

  font-size: 1.42rem;

  line-height: 1;

  letter-spacing: -0.04em;

  font-weight: 900;

  text-shadow: 0 2px 8px rgba(0,0,0,.55);
}

.work-card__overlay p {
  margin: 6px 0 0;

  color: rgba(255,255,255,.95) !important;

  font-size: 0.9rem;

  line-height: 1.25;

  font-weight: 700;

  text-shadow: 0 2px 6px rgba(0,0,0,.45);
}

/* =========================================
   CARD BODY
========================================= */

.work-card__body {
  padding: 20px;
}

.work-card__body p {
  margin: 0 0 18px;

  color: #203555;

  font-size: 0.98rem;

  line-height: 1.5;
}

.work-card__body span {
  color: var(--cw-navy, #022351);

  font-size: 0.94rem;

  font-weight: 900;
}

/* =========================================
   VIEW ALL WORK CTA
========================================= */

.featured-work-v2__footer {
  margin-top: 24px;

  display: flex;

  justify-content: flex-end;
}

.text-link {
  color: var(--cw-navy, #022351);

  font-weight: 900;

  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* =========================================
   EXPERIENCE STRIP
   4 Logo Refined Version
========================================= */

.experience-strip {
  background: #ffffff;
  border-top: 1px solid rgba(6, 40, 95, 0.08);
  border-bottom: 1px solid rgba(6, 40, 95, 0.08);
  padding: 0;
}

.experience-strip__inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 92px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 34px;
}

.experience-strip__inner p {
  margin: 0;
  color: var(--cw-navy, #022351);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  opacity: 0.72;
  white-space: nowrap;
}

.experience-strip__logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 54px;
}

.experience-strip__logos img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 165px;
  max-height: 56px;
  margin: 0 auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.88;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

.experience-strip__logos img:hover {
  opacity: 1;
  transform: translateY(-1px);
  filter: grayscale(0);
}

@media (max-width: 1024px) {
  .experience-strip {
    padding: 10px 0;
  }

  .experience-strip__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
    min-height: auto;
    padding: 22px 0;
  }

  .experience-strip__logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .experience-strip__logos img {
    max-width: 150px;
    max-height: 50px;
  }
}

@media (max-width: 720px) {
  .experience-strip {
    padding: 16px 0;
  }

  .experience-strip__inner {
    width: min(100% - 32px, 1180px);
  }

  .experience-strip__logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .experience-strip__logos img {
    max-width: 126px;
    max-height: 42px;
  }
}

@media (max-width: 420px) {
  .experience-strip__logos {
    grid-template-columns: 1fr;
  }

  .experience-strip__logos img {
    max-width: 136px;
  }
}
/* =========================================
   MOBILE
========================================= */

@media (max-width: 720px) {

  .featured-work-v2 {
    padding: 42px 0 28px;
  }

  .featured-title-v2 {
    margin-bottom: 22px;
  }

  .work-card {
    display: block;
  }

  .work-card__image {
    min-height: 0;

    aspect-ratio: 16 / 9;
  }

  .work-card__overlay {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }

  .work-card__overlay h3 {
    font-size: 1.28rem;
  }

  .work-card__body {
    padding: 16px;
  }

  .featured-work-v2__footer {
    justify-content: flex-start;
  }

  .experience-strip {
    padding: 16px 0;
  }

  .experience-strip__inner {
    width: min(100% - 32px, 1180px);
  }

  .experience-strip__logos {
    grid-template-columns: repeat(2, 1fr);

    gap: 22px;
  }

  .experience-strip__logos img {
    max-width: 126px;

    max-height: 42px;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 420px) {

  .experience-strip__logos {
    grid-template-columns: 1fr;
  }

  .experience-strip__logos img {
    max-width: 136px;
  }
}
/* ================================
   BOTTOM CTA
================================ */

.home-bottom-cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 90%, rgba(15, 94, 219, 0.3), transparent 34%),
    linear-gradient(135deg, #001126 0%, #001a3a 100%);
}

.home-bottom-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/backgrounds/flowing-blue-wave-elegant-background-business-presentation.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

.home-bottom-cta__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: center;
  gap: 54px;
}

.home-bottom-cta h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.home-bottom-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.home-bottom-cta__action {
  padding-left: 54px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.home-bottom-cta__action h3 {
  margin: 0 0 20px;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

/* ================================
   TABLET
================================ */

@media (max-width: 1024px) {
  .home-hero {
    min-height: auto;
  }

  .home-hero__bg {
    opacity: 0.5;
    background-position: center right;
  }

  .home-hero__inner {
    padding: 76px 0 54px;
  }

  .work-card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .work-card {
    display: grid;
    grid-template-columns: 42% 1fr;
  }

  .work-card__image {
    min-height: 220px;
    aspect-ratio: auto;
  }

  .experience-strip__inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0;
    text-align: center;
  }

  .experience-strip__logos {
    grid-template-columns: repeat(5, 1fr);
  }

  .home-bottom-cta__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-bottom-cta__action {
    padding-left: 0;
    border-left: 0;
  }
}

/* ================================
   MOBILE
================================ */

@media (max-width: 720px) {
  .home-hero__inner,
  .home-v2 .container,
  .experience-strip__inner,
  .home-bottom-cta__inner {
    width: min(100% - 32px, 1180px);
  }

  .home-hero__bg {
    opacity: 0.34;
    background-size: auto 100%;
    background-position: 58% center;
  }

  .home-hero__inner {
    padding: 56px 0 42px;
  }

  .home-hero__title {
    margin-bottom: 24px;
    font-size: clamp(4rem, 18vw, 5.8rem);
    letter-spacing: -0.05em;
  }

  .home-hero__copy {
    font-size: 0.98rem;
  }

  .home-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-v2 .btn {
    width: 100%;
    max-width: 270px;
  }

  .featured-work-v2 {
    padding: 42px 0 32px;
  }

  .featured-title-v2 {
    margin-bottom: 22px;
  }

  .work-card {
    display: block;
  }

  .work-card__image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .work-card__overlay {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }

  .work-card__overlay h3 {
    font-size: 1.28rem;
  }

  .work-card__body {
    padding: 16px;
  }

  .experience-strip__logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 26px;
  }

  .experience-strip__logos img {
    max-width: 118px;
  }

  .home-bottom-cta__inner {
    padding: 42px 0;
  }
}

/* ================================
   SMALL MOBILE
================================ */

@media (max-width: 420px) {
  .home-hero__title {
    font-size: clamp(3.55rem, 20vw, 4.7rem);
  }

  .home-hero__copy {
    font-size: 0.96rem;
  }

  .experience-strip__logos {
    grid-template-columns: 1fr;
  }
}

.home-hero {
  min-height: 590px;
}

.home-hero__bg {
  background-size: 100% auto;
  background-position: center 62%;
}

.featured-work-v2__footer {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
}

/* =========================================
   FORCE WHITE FEATURED CARD OVERLAY TEXT
========================================= */

.work-card__overlay h3,
.work-card__overlay p,
.featured-work .fw-h,
.featured-work .fw-sub {
  color: #ffffff !important;
}

.work-card__overlay h3,
.featured-work .fw-h {
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
}

/* Mobile hero wave adjustment */

@media (max-width: 768px) {

    .hero {
        background-position: center bottom -100px;
    }

}
