/* ============================================================
   HOME.CSS â€” Homepage template styles
   Covers: hero, intro, three C cards, Pluralytics,
           portfolio grid, We Are the Ants, capabilities
   ============================================================ */

/* ============================================================
   HERO â€” Three-layer composition
   A: video clipped to left ~60%
   B: dark grey nav bar across full top
   C: red PNG circle right side, content centred within it
   ============================================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  max-height: 820px;
  overflow: hidden;
  background: #111;
  display: grid;
  grid-template-columns: 1fr 1fr; /* left: video+dark | right: red circle+content */
}

/* â”€â”€ Layer A: video â€” left half only â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 70%; /* video stops at ~60% of hero width */
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
/* Red gradient bloom â€” left side, ties the video into the red
   circle's color scheme */
.hero-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(237, 28, 36, 0.85) 0%,
    rgba(10, 10, 10, 0.15) 40%,
    rgba(10, 10, 10, 0) 90%
  );
  z-index: 1;
  pointer-events: none;
}

/* â”€â”€ Layer B: nav bar background â€” full width across top, but
   BELOW the red circle (layer C) so the circle's red shows
   through on the right side instead of being covered by a grey
   rectangle. â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-nav-bar-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  z-index: 5; /* below .hero-right-panel (10) on purpose */
  background: var(--color-charcoal, #47494f);
}

/* â”€â”€ Layer B2: nav bar content â€” logo + actions. No background
   of its own, and a HIGHER z-index than the red circle, so the
   logo/menu/Start a Project stay visible and clickable on top
   of it everywhere across the top of the hero. â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-nav-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  z-index: 30; /* above .hero-right-panel (10) */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: none;
}
.hero-nav-bar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.hero-nav-bar__logo img {
  height: 38px;
  width: auto;
  display: block;
}
.hero-nav-bar__logo span {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -0.3px;
}
/* Actions div removed from nav-bar â€” now lives in hero-right-panel */
.hero-nav-cta {
  font-family: var(--font-body, "Noto Sans", sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.hero-nav-cta:hover {
  opacity: 0.7;
}
.hero-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 44px;
  height: 34px;
}
.hero-hamburger__line {
  display: block;
  width: 100%;
  height: 6px;
  background: #fff;
  border-radius: 4px;
  transition:
    width 0.25s ease,
    transform 0.25s ease,
    opacity 0.25s ease;
}
.hero-hamburger__line:nth-child(2) {
  width: 80%;
}
.hero-hamburger:hover .hero-hamburger__line:nth-child(2) {
  width: 100%;
}
.hero-hamburger.is-active .hero-hamburger__line:nth-child(1) {
  transform: translateY(14px) rotate(45deg);
}
.hero-hamburger.is-active .hero-hamburger__line:nth-child(2) {
  opacity: 0;
}
.hero-hamburger.is-active .hero-hamburger__line:nth-child(3) {
  transform: translateY(-14px) rotate(-45deg);
}

/* â”€â”€ Layer C: red circle PNG + centred content â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-right-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  min-width: 941px; /* floor at wide-but-shrinking viewports */
  max-width: 1000px; /* cap so it doesn't keep growing indefinitely on very wide screens */
  height: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Start a Project + hamburger â€” now a normal flex child of .hero-nav-bar */
.hero-right-panel__nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-circle-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
  pointer-events: none;
  user-select: none;
}
/* Content centred within the red circle area */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* left-align â€” headline, sub, and buttons stay flush left together */
  justify-content: center;
  text-align: left;
  width: 100%;
  height: 100%;
  padding: 210px clamp(40px, 5vw, 80px) 40px calc(23vw - 150px);
}

.hero-headline {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 96px;
  font-weight: 500;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero-headline em {
  font-style: normal;
  color: var(--color-dark, #2c2e35);
  display: block;
}
.hero-sub {
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 360px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}
.hero-btns .btn-hero-primary {
  background: #640c10;
  color: #fff;
  border: 1.5px solid #640c10;
  padding: 13px 28px;
  font-family: "Noto Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 25px 25px 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  min-width: 200px;
}
.hero-btns .btn-hero-primary:hover {
  background: #111;
  border-color: #111;
}
.hero-btns .btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  padding: 13px 28px;
  font-family: "Noto Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 25px 25px 0 25px;
  display: inline-flex;
  align-items: center;
  transition:
    background 0.18s,
    border-color 0.18s;
  justify-content: center;
  min-width: 200px;
}
.hero-btns .btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

/* â”€â”€ Hide sticky site-nav on homepage â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.home .site-nav {
  display: none;
}

/* Hero responsive rules now live in the single consolidated
   RESPONSIVE section at the bottom of this file. */

/* ============================================================
   INTRO â€” Marketing only works...
   ============================================================ */
.intro-section {
  background: var(--white);
  padding: clamp(48px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
}
.intro-inner {
  max-width: 900px;
  border-left: 2px solid #ff2e17;
  padding-left: 28px;
}
.intro-kicker {
  font-family: var(--font-display);
  font-size: 37px;
  font-weight: 400;
  text-transform: uppercase;
  color: #ed1c24;
  line-height: 39px;
  letter-spacing: -0.361px;
  margin-bottom: 12px;
}
.intro-sub {
  font-family: "Montserrat", sans-serif;
  font-size: 23px;
  font-weight: 700;
  color: #50585b;
  line-height: 29px;
  letter-spacing: -0.449px;
  margin-bottom: 14px;
}
.intro-sub em {
  color: #ed1c24;
  font-style: normal;
}
.intro-sub span {
  color: #ed1c24;
  font-style: normal;
}
.intro-body p {
  font-family: "Noto Sans", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #50585b;
  line-height: 21px;
  margin-bottom: 10px;
}
.intro-body p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   THREE C CARDS â€” Connection, Community, Conversion
   ============================================================ */
.three-c-wrap {
  width: 100%;
  overflow: hidden;
  margin: 0;
}
.three-c {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: clamp(16px, 2vw, 24px);
  width: 100%;
  box-sizing: border-box;
}
.c-card {
  position: relative;
  padding: clamp(24px, 3.5vw, 48px) 52px;
  padding-bottom: calc(57px + clamp(16px, 2vw, 32px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  height: min(30vw, 500px);
  text-align: left;
  align-items: flex-start;
}
/* Border radius per card as spec'd */
.c-card:nth-child(1) {
  background: var(--red);
  border-radius: 0 50px 0 0;
  margin-left: calc(-1 * clamp(16px, 2vw, 24px));
  padding-left: calc(clamp(16px, 2vw, 24px) + 28px);
  padding-bottom: calc(57px + clamp(16px, 2vw, 32px));
}
.c-card:nth-child(2) {
  background: #43454b;
  border-radius: 50px 50px 0 50px;
}
.c-card:nth-child(3) {
  background: #babec2;
  border-radius: 50px 0 0 50px;
  margin-right: calc(-1 * clamp(16px, 2vw, 24px));
  padding-left: 52px;
  padding-right: calc(clamp(16px, 2vw, 24px) + 52px);
  padding-bottom: calc(57px + clamp(16px, 2vw, 32px));
}

/* Number â€” top right corner */
.c-card-bg-num {
  position: absolute;
  right: clamp(16px, 2vw, 24px);
  top: clamp(16px, 2vw, 24px);
  font-family: var(--font-display);
  font-size: clamp(80px, 9vw, 195px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.04;
  letter-spacing: -1.196px;
  opacity: 0.75;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
.c-card:nth-child(3) .c-card-bg-num {
  color: rgba(0, 0, 0, 0.75);
}

.c-card-text {
  position: relative;
  z-index: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

/* Main headline */
.c-card h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 82px);
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.04;
  letter-spacing: -0.635px;
  margin-bottom: 5px;
}
.c-card:nth-child(3) h2 {
  color: #fff;
}

/* Sub label */
.c-card-sub {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 42px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.05;
  display: block;
}
.c-card:nth-child(1) .c-card-sub {
  color: #2c2e35;
  letter-spacing: -0.361px;
}
.c-card:nth-child(2) .c-card-sub {
  color: #ed1c24;
  letter-spacing: -0.325px;
}
.c-card:nth-child(3) .c-card-sub {
  color: #2c2e35;
  letter-spacing: -0.361px;
}

/* Buttons */
.c-card .btn {
  position: absolute;
  bottom: 57px;
  left: 52px;
  z-index: 1;
}
.c-card:nth-child(1) .btn {
  background: #640c10;
  color: #fff;
  border-color: #640c10;
  left: calc(clamp(16px, 2vw, 24px) + 28px);
}
.c-card:nth-child(1) .btn:hover {
  background: #7a0f14;
}
.c-card:nth-child(2) .btn {
  background: #ed1c24;
  color: #fff;
  border-color: #ed1c24;
}
.c-card:nth-child(2) .btn:hover {
  background: var(--red-dk);
}
.c-card:nth-child(3) .btn {
  background: #43454b;
  color: #fff;
  border-color: #43454b;
}
.c-card:nth-child(3) .btn:hover {
  background: #333;
}

/* ============================================================
   PLURALYTICS + MOSAIC SHARED WRAPPER
   ============================================================ */
.pl-mosaic-wrap {
  position: relative;
  overflow: hidden;
}
.pl-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  background: url("http://acrobatant.com/wp-content/uploads/2026/05/pluralytics-human-ai-bg.png")
    center/cover no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   PLURALYTICS SECTION
   ============================================================ */
.pluralytics-section {
  background: var(--white);
  padding: var(--pad-sec) 0;
  position: relative;
  overflow: visible;
  min-height: 560px;
}
.pl-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
  position: relative;
  z-index: 1;
  min-height: inherit;
}
.pluralytics-section .container {
  display: flex;
  align-items: center;
  min-height: 560px;
}
.pl-tagline {
  font-family: "Noto Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 21px;
  color: #50585b;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 15px;
  margin-top: 15px;
}
.pl-eyebrow {
  font-family: "Noto Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 21px;
  color: #ed1c24;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 15px;
}
.pl-body {
  margin-bottom: 35px;
}
.pl-body p {
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #50585b;
  line-height: 26px;
  margin-bottom: 12px;
}
.pl-body p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   PORTFOLIO GRID
   ============================================================ */
.portfolio-section {
  background: #fff;
  padding: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr 1.3fr 1fr 1fr;
  grid-template-rows: 280px 280px 280px;
  gap: 15px;
  width: 100%;
}

.p-tile {
  display: block;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat;
  overflow: hidden;
  position: relative;
  z-index: 0;
  box-shadow: inset 0 0 0 0px var(--color-red, #ed1c24);
  transform: scale(1);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    z-index 0s;
}
.p-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(237, 28, 36, 0.4) 0%,
    rgba(237, 28, 36, 0) 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.p-tile:hover {
  transform: scale(1.045);
  box-shadow:
    inset 0 0 0 3px var(--color-red, #ed1c24),
    0 16px 32px rgba(0, 0, 0, 0.35);
  z-index: 2;
}
.p-tile:hover::after {
  opacity: 1;
}

.p-tile--1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  background: #888b90;
}
.p-tile--2 {
  grid-column: 1;
  grid-row: 3;
  background: #8b1a1a;
}
.p-tile--3 {
  grid-column: 3 / 5;
  grid-row: 1;
  background: #2a2d35;
}
.p-tile--4 {
  grid-column: 3;
  grid-row: 2;
  background: #e31e24;
}
.p-tile--5 {
  grid-column: 4 / 6;
  grid-row: 2 / 4;
  background: #888b90;
}
.p-tile--6 {
  grid-column: 5;
  grid-row: 1;
  background: #e31e24;
}
.p-tile--7 {
  grid-column: 6;
  grid-row: 1;
  background: #888b90;
}
.p-tile--8 {
  grid-column: 6;
  grid-row: 2 / 4;
  background: #5a5c61;
}
.p-tile--new {
  grid-column: 2 / 4;
  grid-row: 3;
  background: #e0e0e0;
}

/* ============================================================
   WE ARE THE ANTS
   ============================================================ */
.ants-section {
  background: transparent;
  padding: 80px 0 60px 0;
  position: relative;
}
.ants-cap-wrap {
  position: relative;
  background: var(--white);
  overflow: hidden;
}
.ants-cap-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 10%;
  width: 70%;
  background: url(http://acrobatant.com/wp-content/uploads/2026/05/Rectangle-1.png);
  background-position: top right;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
.ants-inner {
  max-width: 560px;
  position: relative;
  z-index: 2;
}
.ants-inner h2 {
  font-family: var(--font-display);
  font-size: 54.1px;
  font-weight: 400;
  text-transform: uppercase;
  color: #ed1c24;
  line-height: 57px;
  letter-spacing: -0.475px;
  margin-bottom: 24px;
}
.ants-inner p {
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #50585b;
  line-height: 21px;
  margin-bottom: 16px;
}
.ants-inner p:last-of-type {
  margin-bottom: 36px;
}
.ants-inner .body-copy {
}
.ants-inner .btn {
  background: #43454b;
  color: #fff;
  border-color: #43454b;
  font-weight: 600;
  min-width: 200px;
  justify-content: center;
  margin-top: 16px;
}
.ants-inner .btn:hover {
  background: #333;
  border-color: #333;
}

/* ============================================================
   WHAT WE DO / WHO WE DO IT FOR
   ============================================================ */
.capabilities-section {
  padding: clamp(32px, 4vw, 56px) 0 clamp(48px, 6vw, 80px);
  background: transparent;
  position: relative;
  z-index: 1;
}

.capabilities-section .container {
  max-width: 1600px;
}

.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.5vw, 32px);
  width: 100%;
}
.cap-card {
  border-radius: 24px 24px 0 24px;
  padding: clamp(36px, 4.5vw, 56px) clamp(32px, 4vw, 52px);
}
.cap-card:nth-child(1) {
  background: #ed1c24;
}
.cap-card:nth-child(2) {
  background: #47494f;
}
.cap-card h3 {
  font-family: var(--font-display);
  font-size: 37px;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
  line-height: 39px;
  letter-spacing: -0.434px;
  margin-bottom: 24px;
}
.cap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cap-list li {
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}
.cap-list li a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.18s;
}
.cap-list li a:hover {
  opacity: 0.75;
}

/* ============================================================
   RESPONSIVE
   Breakpoints: 1200 (small laptop) / 1024 (tablet landscape) /
                768 (tablet portrait & mobile landscape) / 480 (phone)
   ============================================================ */

/* â”€â”€ Small laptop â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1200px) {
  .cap-grid {
    gap: clamp(16px, 2vw, 24px);
  }
}

/* â”€â”€ Tablet landscape â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1024px) {
  /* Red panel holds at a proportional width down to ~1150px, then a
     hard 800px floor down to 1100px â€” see the dedicated 1100px
     breakpoint below for where the whole hero switches to a stacked
     mobile layout. */

  /* Three C cards â€” stack to a single column */
  .three-c {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .c-card {
    height: auto;
    min-height: 340px;
    padding-bottom: calc(57px + 32px);
  }

  /* Pluralytics */
  .pl-inner {
    gap: clamp(32px, 4vw, 48px);
  }

  /* Portfolio grid â€” drop to 3 columns / 3 rows */
  .portfolio-grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: repeat(3, 180px);
  }
  .p-tile--1 {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  .p-tile--2 {
    grid-column: 1;
    grid-row: 2;
  }
  .p-tile--3 {
    grid-column: 2 / 4;
    grid-row: 2;
  }
  .p-tile--4 {
    grid-column: 3;
    grid-row: 1;
  }
  .p-tile--5 {
    grid-column: 1 / 3;
    grid-row: 3;
  }
  .p-tile--6 {
    grid-column: 3;
    grid-row: 3;
  }
  .p-tile--7,
  .p-tile--8,
  .p-tile--new {
    display: none;
  }

  /* We Are The Ants */
  .ants-cap-wrap::after {
    width: 55%;
  }

  /* Capabilities */
  .cap-grid {
    gap: 20px;
  }
}

@media (max-width: 1680px) {
  .hero-content {
    padding: 210px clamp(40px, 5vw, 80px) 40px 17vw;
  }
}

@media (max-width: 1100px) {
  .home .hero-nav-cta {
    display: none;
  }
}

@media (max-width: 1100px) {
  .hero-section {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .hero-nav-bar {
    order: 1;
    position: relative;
    height: auto;
    min-height: 84px;
    padding: 16px 20px;
    background: var(
      --color-charcoal,
      #47494f
    ); /* no overlap with the red panel once stacked, so this is safe to restore directly */
  }
  .hero-nav-bar-bg {
    display: none; /* the split bg/content layers are only needed for the desktop side-by-side overlap */
  }
  .hero-video {
    order: 2;
    position: relative;
    width: 100%;
    height: 30vh;
    min-height: 220px;
  }
  .hero-right-panel {
    order: 3;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 460px;
    background: var(--color-red, #ed1c24);
    padding: 0 25px 0 25px;
    min-height: 350px;
    min-width: unset;
  }
  .hero-circle-img {
    display: none;
  }
  .hero-content {
    height: auto;
    padding: 0;
  }
  .hero-headline {
    font-size: 56px;
  }
  .hero-sub {
    font-size: 14px;
    max-width: 100%;
  }
}

/* â”€â”€ Tablet portrait / mobile landscape â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
  /* Hero â€” sizing/stacking is handled at 1100px; just a couple of
     small refinements as it gets narrower */
  .hero-nav-bar {
    padding: 12px 20px;
  }
  .hero-video {
    height: 26vh;
    min-height: 190px;
  }

  /* Intro */
  .intro-kicker {
    font-size: 28px;
    line-height: 30px;
  }
  .intro-sub {
    font-size: 19px;
    line-height: 24px;
  }

  /* Three C cards â€” plain, consistent boxes once stacked (no more
     bleed margins / mismatched corner radii from the desktop
     interlocking layout) + smaller type */
  .c-card,
  .c-card:nth-child(1),
  .c-card:nth-child(2),
  .c-card:nth-child(3) {
    margin-left: 0;
    margin-right: 0;
    border-radius: 24px;
    padding: clamp(28px, 5vw, 40px) 28px;
    padding-bottom: calc(57px + 28px);
  }
  .c-card-bg-num {
    font-size: 72px;
  }
  .c-card h2 {
    font-size: 62px;
  }
  .c-card-sub {
    font-size: 26px;
  }
  .c-card .btn,
  .c-card:nth-child(1) .btn,
  .c-card:nth-child(3) .btn {
    left: 28px;
  }

  /* Pluralytics â€” stack, and drop the decorative bg image so it
     doesn't collide with the now-stacked text column */
  .pluralytics-section {
    padding: 36px 0;
  }
  .pl-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pluralytics-section .container {
    min-height: auto;
  }
  .pl-bg-image {
    display: none;
  }

  /* Portfolio grid â€” placeholder tiles today, real projects later;
     stack tiles 1â€“5 one on top of the other on mobile, with side
     padding so they're not edge-to-edge, and matched in height to
     the three-C cards for visual consistency */
  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 340px);
    padding: 0 20px;
  }
  .p-tile--1 {
    grid-column: 1;
    grid-row: 1;
  }
  .p-tile--2 {
    grid-column: 1;
    grid-row: 2;
  }
  .p-tile--3 {
    grid-column: 1;
    grid-row: 3;
  }
  .p-tile--4 {
    grid-column: 1;
    grid-row: 4;
  }
  .p-tile--5 {
    grid-column: 1;
    grid-row: 5;
  }
  .p-tile--6,
  .p-tile--7,
  .p-tile--8,
  .p-tile--new {
    display: none;
  }

  /* We Are The Ants */
  .ants-cap-wrap::after {
    width: 100%;
    opacity: 0.12;
  }
  .ants-inner {
    max-width: 100%;
  }
  .ants-inner h2 {
    font-size: 40px;
    line-height: 44px;
    white-space: normal;
  }

  /* Capabilities */
  .cap-grid {
    grid-template-columns: 1fr;
  }
}

/* â”€â”€ Mobile phone â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 480px) {
  /* Hero */
  .hero-nav-bar {
    padding: 0 16px;
    height: 84px;
    gap: 12px; /* guaranteed minimum space between logo and Start a Project/hamburger */
  }
  .hero-nav-bar__logo {
    min-width: 0; /* allow it to shrink rather than force overflow */
    flex-shrink: 1;
  }
  .hero-nav-bar__logo img {
    height: 30px;
    max-width: 100%;
  }
  .hero-right-panel__nav {
    gap: 10px;
    flex-shrink: 0; /* Start a Project + hamburger never get squeezed */
  }
  .hero-nav-cta {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .hero-hamburger {
    width: 36px;
    height: 28px;
    gap: 6px;
  }
  .hero-hamburger__line {
    height: 5px;
  }
  .hero-hamburger.is-active .hero-hamburger__line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }
  .hero-hamburger.is-active .hero-hamburger__line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }
  .hero-content {
    padding: 50px 0px 51px;
  }
  .hero-headline {
    font-size: 52px;
    letter-spacing: -1px;
  }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-btns .btn-hero-primary,
  .hero-btns .btn-hero-outline {
    min-width: 0;
    width: 100%;
  }

  /* Intro */
  .intro-inner {
    padding-left: 18px;
  }
  .intro-kicker {
    font-size: 32px;
    line-height: 39px;
    font-weight: 400;
  }
  .intro-sub {
    font-size: 17px;
    line-height: 22px;
  }

  /* Three C cards */
  .c-card {
    padding: 28px 24px;
    padding-bottom: 90px;
    min-height: 300px;
  }
  .c-card:nth-child(1) {
    padding-left: 24px;
  }
  .c-card:nth-child(3) {
    padding-right: 24px;
  }
  .c-card-bg-num {
    font-size: 64px;
  }
  .c-card h2 {
    font-size: 56px;
  }
  .c-card-sub {
    font-size: 25px;
  }
  .c-card .btn {
    left: 24px;
    bottom: 28px;
  }
  .c-card:nth-child(1) .btn {
    left: 24px;
  }

  /* Portfolio grid already stacks tiles 1â€“5 as of the 768px
     breakpoint above; nothing extra needed here. */

  /* We Are The Ants */
  .ants-section {
    padding: 48px 0 40px;
  }
  .ants-inner h2 {
    font-size: 32px;
    line-height: 36px;
  }
}
