/* ============================================================
   FANXUĚ — exact layout matching mockups
   ============================================================ */

:root {
  --bg-cream: #F4EFE6;
  --dark: #1C1C1E;
  --accent-red: #9B2C2C;
  --accent-red-87: rgba(155, 44, 44, 0.87);
  --card-light: #DDDAD4;
  --white: #FEFCF8;
  --text-dark: #1C1C1E;
  --text-light: #F4EFE6;
  --text-muted: #A8A5A0;

  --font-heading: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Roboto Flex', 'Roboto', sans-serif;
  --font-footer: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  --nav-height: 80px;
  --section-padding: 80px;
  --container-max: 1300px;
  --border-radius: 16px;

  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}
body.intro-active {
  overflow: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   INTRO ANIMATION OVERLAY
   Logo zooms in towards the user, revealing the site
   ============================================================ */
.intro-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.intro-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  will-change: transform, opacity;
}

.intro-logo--hidden {
  opacity: 0;
  transform: translateY(100px) scale(0.8);
}

.intro-logo--slide-in {
  animation: introSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-logo--expand {
  /* Scale hugely, and fade to 0 so you "zoom through" it */
  animation: introExpand 1.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.intro-overlay--fade-out {
  animation: overlayFadeOut 0.8s ease-out forwards;
}

.intro-overlay--done {
  display: none !important;
}

@keyframes introSlideIn {
  from { opacity: 0; transform: translateY(100px) scale(0.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes introExpand {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(50); }
}
@keyframes overlayFadeOut {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  background-color: transparent;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  background-color: rgba(244, 239, 230, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(28, 28, 30, 0.06);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.navbar__logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.1);
}

.navbar__name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--accent-red-87);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar__link {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--text-dark);
  position: relative;
  transition: color var(--transition-base);
}
.navbar__link:hover { color: var(--accent-red-87); }

.navbar__hamburger {
  display: none;
}

/* ============================================================
   HERO SECTION
   Full width image behind text, absolute positioned
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__image-wrapper {
  position: absolute;
  top: 100px;
  right: 0;
  width: 100%;
  height: calc(100% - 100px);
  z-index: 1;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right top;
  mix-blend-mode: multiply;
}

.hero__content {
  padding: 0 48px;
  position: relative;
  z-index: 2;
  max-width: 65%; /* Constrain to left side */
}

.hero__label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.hero__heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(3rem, 5.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero__description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 40px;
}

.hero__cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 16px 44px;
  border: 1.5px solid var(--text-dark);
  border-radius: 50px;
  color: var(--text-dark);
  background: rgba(244, 239, 230, 0.6);
  backdrop-filter: blur(5px);
  transition: all var(--transition-base);
}

.hero__cta:hover {
  background: var(--text-dark);
  color: var(--text-light);
}

/* ============================================================
   SERVICES GENERAL
   ============================================================ */
.services-section {
  padding: var(--section-padding) 48px;
  position: relative;
}

.services-section__container {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.services-section__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}

.service-card {
  border-radius: var(--border-radius);
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.service-card--light { background-color: var(--card-light); }
.service-card--accent { background-color: var(--accent-red-87); color: var(--text-light); }

.service-card__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 20px;
}
.service-card__subheading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.service-card__text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
}
.service-card__text--dark { color: var(--text-dark); opacity: 0.8; }

/* ============================================================
   GRID: VENTURE INCUBATION
   ============================================================ */
.services-grid--venture {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding-bottom: 100px;
}

.services-grid--venture .service-card {
  min-height: 400px;
  width: auto;
  margin: 0;
}

/* Advisory */
.pos-ven-1 {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
}

/* Venture Incubation */
.pos-ven-2 {
  grid-column: 4 / 8;
  grid-row: 1;
}

/* Tokenomics */
.pos-ven-3 {
  grid-column: 8 / 13;
  grid-row: 1;
}

/* Product Ideation */
.pos-ven-4 {
  grid-column: 4 / 10;
  grid-row: 2;
  align-items: flex-end;
  text-align: right;
  z-index: 5;
}

/* Go-To-Market */
.pos-ven-5 {
  grid-column: 10 / 13;
  grid-row: 2;
}

/* ============================================================
   GRID: SYSTEMS ARCHITECTURE
   ============================================================ */
.services-section__heading-styled {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 2.2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.services-section__heading-styled .amp {
  font-size: 2.5rem;
  font-weight: 400;
  display: inline-block;
  vertical-align: top;
  margin-left: 8px;
}

.services-section__heading-large {
  font-weight: 700;
  font-size: 1.3em;
  display: block;
  letter-spacing: -0.04em;
}

.services-section__description {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 24px;
  max-width: 90%;
}

.services-grid--systems {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.services-grid--systems .service-card {
  min-height: 400px;
  margin: 0;
}

.pos-sys-1 {
  grid-column: 1 / 5;
  grid-row: 1;
}
.pos-sys-2 {
  grid-column: 5 / 9;
  grid-row: 1;
}
.pos-sys-3 {
  grid-column: 9 / 13;
  grid-row: 1;
}
.pos-sys-4 {
  grid-column: 4 / 8;
  grid-row: 2;
}
.pos-sys-5 {
  grid-column: 8 / 12;
  grid-row: 2;
}

/* Watermarks */
.watermark {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
}
.watermark img {
  width: 100%;
  display: block;
}

/* Systems Watermarks */
.watermark--sys-1 {
  top: 0px;
  left: -400px;
  width: 900px;
}
.watermark--sys-2 {
  bottom: -150px;
  right: -400px;
  width: 900px;
}

/* ============================================================
   GRID: UX PRODUCT DESIGN
   ============================================================ */
.services-grid--ux {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.services-grid--ux .service-card {
  min-height: 350px;
  margin: 0;
}
.pos-ux-1 { grid-column: 1 / 6; grid-row: 1; }
.pos-ux-2 { grid-column: 8 / 13; grid-row: 1; }
.pos-ux-3 { grid-column: 2 / 12; grid-row: 2; width: 100%; margin: 16px 0; }
.pos-ux-4 { grid-column: 2 / 7; grid-row: 3; }
.pos-ux-5 { grid-column: 7 / 12; grid-row: 3; }

.services-ux__center {
  text-align: center;
  padding: 60px 0;
}
.services-ux__heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.services-ux__description {
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 600px;
}

/* Watermark UX */
.watermark--ux-1 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1200px;
}

/* ============================================================
   GRID: SECURITY DEVOPS
   ============================================================ */
.services-grid--sec {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}

.services-grid--sec .service-card {
  min-height: 350px;
  margin: 0;
}

.pos-sec-1 { grid-column: 1 / 5; grid-row: 1; }
.pos-sec-2 { grid-column: 5 / 9; grid-row: 1; }
.pos-sec-3 { grid-column: 9 / 13; grid-row: 1; }
.pos-sec-4 { grid-column: 4 / 8; grid-row: 2; }
.pos-sec-5 { grid-column: 8 / 12; grid-row: 2; }

/* Watermark Sec */
.watermark--sec-1 {
  bottom: -150px;
  left: -400px;
  width: 900px;
}
.watermark--sec-2 {
  top: 0px;
  right: -400px;
  width: 900px;
}

/* ============================================================
   TRANSITION & FOOTER
   ============================================================ */
.transition-section {
  background-color: var(--bg-cream);
  padding-top: 60px; /* Provide breathing room at the top only */
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Align text to the bottom */
  overflow: hidden;
}

.transition-section__text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 25vw; 
  line-height: 0.75; /* Shrink bounding box */
  letter-spacing: 0;
  color: var(--dark);
  margin: 0;
  margin-bottom: -0.5vw; /* Pull down slightly so the letters touch the footer */
  white-space: nowrap;
  width: 100vw;
  text-align: center;
}

.footer {
  background-color: var(--dark);
  color: var(--text-light);
  padding: 48px 3% 64px;
  position: relative;
  z-index: 10;
}

.footer__container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* ---- LEFT BLOCK ---- */
.footer__left {
  flex: 0 0 auto;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer__tagline {
  font-family: var(--font-footer);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.footer__tagline-sub {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.footer__keep-in-touch {
  font-family: var(--font-footer);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.footer__subscribe {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.footer__input {
  width: 200px;
  padding: 11px 18px;
  border: 1px solid rgba(244,239,230,0.45);
  border-radius: 50px;
  background: transparent;
  color: var(--text-light);
  font-family: var(--font-footer);
  font-style: italic;
  font-size: 0.9rem;
  outline: none;
}

.footer__submit {
  padding: 11px 26px;
  border: none;
  border-radius: 50px;
  background: var(--text-light);
  color: var(--dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.footer__submit:hover { opacity: 0.88; }

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(244,239,230,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__social-icon { width: 20px; height: 20px; object-fit: contain; }

/* ---- RIGHT BLOCK ---- */
.footer__right {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__col-title {
  font-family: var(--font-footer);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer__col-list li {
  margin-bottom: 7px;
}
.footer__col-list a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__col-list a:hover { color: var(--text-light); }

.footer__logo-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal-element {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-height) + 24px); padding-bottom: 0; flex-direction: column; }
  .hero__content { max-width: 100%; padding: 0 32px; margin-bottom: 32px; }
  .hero__heading { font-size: clamp(3rem, 6vw, 4rem); line-height: 1.1; margin-bottom: 16px; font-weight: 700; }
  .hero__description { font-size: 1.25rem; font-family: var(--font-heading); max-width: 100%; margin-bottom: 32px; line-height: 1.4; color: var(--text-dark); }
  .hero__cta { padding: 16px 36px; font-size: 1rem; background: transparent; color: var(--text-dark); border: 1px solid var(--text-dark); display: inline-block; border-radius: 30px; }
  .hero__image-wrapper { position: relative; top: auto; right: auto; width: 100%; height: 500px; margin-top: 0; }
  .hero__image { object-fit: cover; object-position: top center; }

  .services-section { padding: 60px 32px; }
  .services-section__heading-styled { font-size: 2.2rem; color: var(--text-dark); margin-bottom: 24px; }
  .services-ux__heading { font-size: 2.2rem; color: var(--text-dark); }

  /* 2 columns on tablet */
  .services-grid--venture,
  .services-grid--systems,
  .services-grid--ux,
  .services-grid--sec { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  
  .services-grid--venture { padding-bottom: 0; }

  .pos-ven-1, .pos-ven-3, .pos-ven-4, .pos-ven-5,
  .pos-sys-1, .pos-sys-2, .pos-sys-3, .pos-sys-4, .pos-sys-5,
  .pos-ux-1, .pos-ux-2, .pos-ux-3, .pos-ux-4, .pos-ux-5,
  .pos-sec-1, .pos-sec-2, .pos-sec-3, .pos-sec-4, .pos-sec-5 { grid-column: auto; grid-row: auto; text-align: left; align-items: flex-start; }

  /* Venture Heading fix */
  .pos-ven-2 { grid-column: 1 / -1 !important; grid-row: auto; background: transparent !important; padding: 0 0 16px 0 !important; min-height: auto !important; order: -1; color: var(--text-dark) !important; justify-content: flex-start; }
  .pos-ven-2 .service-card__heading { color: var(--text-dark) !important; font-size: 2.2rem; margin: 0; }
  .pos-ven-2 .service-card__text { display: none !important; }

  /* All cards red */
  .service-card:not(.pos-ven-2) { background-color: var(--accent-red-87) !important; color: var(--text-light) !important; padding: 32px 24px; border-radius: 16px; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; }
  .service-card:not(.pos-ven-2) .service-card__heading,
  .service-card:not(.pos-ven-2) .service-card__subheading { color: var(--text-light) !important; font-size: 1.4rem; margin-bottom: 12px; }
  .service-card:not(.pos-ven-2) .service-card__text,
  .service-card:not(.pos-ven-2) .service-card__text--dark { color: var(--text-light) !important; opacity: 0.9 !important; font-size: 1rem; line-height: 1.5; }

  .watermark { display: none; }
  .transition-section__text { font-size: 20vw; }

  /* Footer tablet */
  .footer { padding: 60px 32px 80px; }
  .footer__container { flex-direction: column; gap: 48px; position: relative; }
  .footer__left { width: 100%; max-width: 100%; position: relative; }
  .footer__tagline { font-size: 2rem; font-weight: 700; margin-bottom: 24px; padding-right: 70px; }
  .footer__tagline-sub { font-size: 1.1rem; margin-bottom: 32px; max-width: 80%; }
  .footer__logo-circle { position: absolute; top: 0; right: 0; width: 64px; height: 64px; }
  
  .footer__keep-in-touch { font-size: 1.4rem; margin-bottom: 16px; }
  .footer__subscribe { display: flex; flex-direction: row; gap: 12px; margin-bottom: 32px; flex-wrap: nowrap; max-width: 500px; }
  .footer__input { flex: 1; padding: 14px 20px; font-size: 0.95rem; border-radius: 30px; border: 1px solid rgba(255,255,255,0.3); background: transparent; color: var(--text-light); }
  .footer__submit { padding: 14px 24px; font-size: 0.95rem; border-radius: 30px; background: var(--bg-cream); color: var(--text-dark); font-weight: 600; white-space: nowrap; }

  .footer__social { display: flex; gap: 16px; margin-bottom: 0; }
  .footer__social-link { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; }
  .footer__social-icon { width: 20px; }

  .footer__right { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
  .footer__col-title { font-size: 1.4rem; margin-bottom: 16px; }
  .footer__col-list a { font-size: 1rem; line-height: 2; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 32px;
    --nav-height: 64px;
  }

  /* Navbar — hamburger visible, links hidden */
  .navbar { padding: 0 24px; }
  .navbar__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--bg-cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  }
  .navbar__nav.open { right: 0; }
  .navbar__link { font-size: 1.1rem; letter-spacing: 0.08em; }

  .navbar__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
  }
  .navbar__hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s;
    border-radius: 2px;
  }
  .navbar__hamburger.active .navbar__hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .navbar__hamburger.active .navbar__hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .navbar__hamburger.active .navbar__hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 0;
    align-items: flex-start;
    flex-direction: column;
  }
  .hero__content { padding: 0 24px; max-width: 100%; margin-bottom: 24px; }
  .hero__heading { font-size: 3.5rem; line-height: 1.1; margin-bottom: 16px; font-weight: 700; }
  .hero__description { font-size: 1.15rem; font-family: var(--font-heading); max-width: 100%; margin-bottom: 32px; line-height: 1.4; color: var(--text-dark); }
  .hero__cta { 
    padding: 14px 32px; 
    font-size: 1rem; 
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
    display: inline-block;
    border-radius: 30px;
  }
  .hero__image-wrapper {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 450px;
    margin-top: 0;
  }
  .hero__image {
    object-fit: cover;
    object-position: top center;
  }

  /* Services */
  .services-section { padding: 48px 24px; }
  .services-section__heading-styled { font-size: 2rem; margin-bottom: 24px; color: var(--text-dark); }
  .services-section__heading-large { font-size: 1.2em; }
  .services-section__description { font-size: 1rem; margin-top: 12px; }
  .services-ux__heading { font-size: 2rem; color: var(--text-dark); }
  .services-ux__center { padding: 32px 0; }

  /* Single column on mobile */
  .services-grid--venture,
  .services-grid--systems,
  .services-grid--ux,
  .services-grid--sec {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-grid--venture { padding-bottom: 0; }

  /* Venture Heading mobile fix */
  .pos-ven-2 {
    background: transparent !important;
    padding: 0 0 16px 0 !important;
    min-height: auto !important;
    order: -1;
    color: var(--text-dark) !important;
    justify-content: flex-start;
  }
  .pos-ven-2 .service-card__heading {
    color: var(--text-dark) !important;
    font-size: 2rem;
    margin: 0;
  }
  .pos-ven-2 .service-card__text { display: none !important; }

  /* Make all cards red with white text */
  .service-card:not(.pos-ven-2) { 
    background-color: var(--accent-red-87) !important; 
    color: var(--text-light) !important;
    padding: 32px 24px; 
    border-radius: 16px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .service-card:not(.pos-ven-2) .service-card__heading,
  .service-card:not(.pos-ven-2) .service-card__subheading { 
    color: var(--text-light) !important; 
    font-size: 1.4rem; 
    margin-bottom: 12px; 
  }
  .service-card:not(.pos-ven-2) .service-card__text,
  .service-card:not(.pos-ven-2) .service-card__text--dark { 
    color: var(--text-light) !important; 
    opacity: 0.9 !important; 
    font-size: 1rem; 
    line-height: 1.5; 
  }

  /* Transition */
  .transition-section { padding-top: 32px; }
  .transition-section__text { font-size: 18vw; }

  /* Footer */
  .footer { padding: 48px 24px 60px; }
  .footer__container { flex-direction: column; gap: 48px; position: relative; }
  
  .footer__left { position: relative; width: 100%; max-width: 100%; }
  .footer__tagline { font-size: 1.8rem; font-weight: 700; margin-bottom: 24px; padding-right: 70px; }
  .footer__tagline-sub { font-size: 1rem; margin-bottom: 32px; max-width: 90%; }
  
  /* Logo circle positioned top right of the footer container */
  .footer__logo-circle { 
    position: absolute; 
    top: 0; 
    right: 0; 
    width: 64px; 
    height: 64px; 
  }

  .footer__keep-in-touch { font-size: 1.4rem; margin-bottom: 16px; }
  
  .footer__subscribe { display: flex; flex-direction: row; gap: 12px; margin-bottom: 32px; flex-wrap: nowrap; }
  .footer__input { width: auto; flex: 1; padding: 14px 20px; font-size: 0.9rem; border-radius: 30px; border: 1px solid rgba(255,255,255,0.3); background: transparent; color: var(--text-light); }
  .footer__submit { padding: 14px 24px; font-size: 0.95rem; border-radius: 30px; background: var(--bg-cream); color: var(--text-dark); font-weight: 600; white-space: nowrap; }

  /* Social icons */
  .footer__social { display: flex; gap: 16px; margin-bottom: 0; }
  .footer__social-link { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; }
  .footer__social-icon { width: 20px; }

  .footer__right { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
  .footer__col-title { font-size: 1.4rem; margin-bottom: 16px; }
  .footer__col-list a { font-size: 0.95rem; line-height: 2; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero__heading { font-size: 2.8rem; }
  .hero__description { font-size: 1.05rem; }
  .hero__image-wrapper { height: 350px; }

  .services-section { padding: 32px 16px; }
  .services-section__heading-styled { font-size: 1.6rem; }
  .services-ux__heading { font-size: 1.6rem; }
  .pos-ven-2 .service-card__heading { font-size: 1.6rem; }

  .service-card:not(.pos-ven-2) { padding: 24px 20px; min-height: 260px; }

  .transition-section__text { font-size: 16vw; }

  .footer { padding: 40px 16px 48px; }
  .footer__tagline { font-size: 1.5rem; }
  .footer__subscribe { flex-direction: column; }
  .footer__submit { width: 100%; text-align: center; }
}
