:root {
  --bg-color: #0d0d0f; /* Maca Black */
  --accent-glow: rgba(255, 255, 255, 0.08); /* Subtle Grey Glow */
  --glass: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.1);
  --text-main: #f0f0f0;
  --text-dim: #888;
}

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

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* SMOOTH VIEW TRANSITION / MORPH ANIMATION */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fade-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-8px) scale(1.01); }
}

::view-transition-old(root) {
  animation: 0.3s cubic-bezier(0.16, 1, 0.3, 1) both fade-out;
}

::view-transition-new(root) {
  animation: 0.6s cubic-bezier(0.16, 1, 0.3, 1) both fade-in;
}

/* Optional: Give persistent elements like the navbar a unique tag to morph seamlessly */
nav {
  view-transition-name: main-navbar;
}

/* Hero Dotted Background */
.hero-stage {
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: var(--bg-color);
}

/* NAV LOGO MARK — boxed so the source PNG can never render larger
   than this, regardless of its own pixel size. object-fit: contain
   keeps its aspect ratio intact inside the box. */
.nav-logo-mark {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* FOOTER LOGO MARK — same boxed approach, slightly smaller since it
   sits next to quieter copy rather than the primary nav wordmark. */
.footer-logo-mark {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

@media (max-width: 900px) {
  .nav-logo-mark {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .nav-logo-mark {
    width: 20px;
    height: 20px;
  }
  .footer-logo-mark {
    width: 18px;
    height: 18px;
  }
}

.logo {
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* CAPSULE NAVBAR STYLES */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1300px;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 100px;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Smooth slide animation when hiding/showing */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* State triggered by scroll direction */
nav.nav-hidden {
  transform: translateX(-50%) translateY(-100px);
  opacity: 0;
  pointer-events: none;
}

.nav-pill-container {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1.8rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-pill-container a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: 0.3s ease;
}

.nav-pill-container a:hover {
  color: var(--text-main);
}

.nav-action-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}

.nav-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* HAMBURGER TOGGLE BUTTON */
.hamburger-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1001;
}

.hamburger-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* --- RIGHT-SIDE SLIDE-IN DRAWER --- */
/* Dimmed backdrop, click-through blocked only when open */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* The actual panel lives in the ::before-less approach: mobile-nav-links
   is styled as the drawer itself, anchored to the right edge */
.mobile-nav-links {
  position: fixed;
  top: 0;
  right: -85vw;
  width: min(78vw, 300px);
  height: 100vh;
  background: rgba(13, 13, 15, 0.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 40px 32px;
  box-sizing: border-box;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.open .mobile-nav-links {
  right: 0;
}

.mobile-nav-links a {
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Smooth staggered reveal when open */
.mobile-menu-overlay.open .mobile-nav-links a {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu-overlay.open .mobile-nav-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.open .mobile-nav-links a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.open .mobile-nav-links a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.open .mobile-nav-links a:nth-child(4) { transition-delay: 0.25s; }

@media (max-width: 900px) {
  .nav-pill-container, .nav-action-btn {
    display: none;
  }
  .hamburger-toggle {
    display: flex;
  }
}

.motto {
  color: var(--text-dim);
  font-size: 1.2rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* Added spacing between fixed nav and the hero container */
header {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 20px 0 20px; /* Increased top padding to push content down */
  max-width: 1600px;
  margin: 0 auto;
}

.hero-content {
  z-index: 5;
  text-align: center;
  width: 100%;
  max-width: 1000px;
}

h1 {
  font-size: clamp(3rem, 10vw, 7.5rem) !important;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-top: 20px;
}

.hero-subdued {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  display: block;
}

.hero-bold {
  font-weight: 800;
  color: #ffffff;
  display: block;
}

.hero-grounding {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 22px auto 0 auto;
  line-height: 1.5;
}

.hero-cta-btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: 0.3s ease;
}

.hero-cta-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.floating-icon {
  position: absolute;
  width: clamp(50px, 8vw, 120px);
  height: auto;
  opacity: 0.3;
  transition: 0.5s ease;
  z-index: 1;
  animation: float-drift 5s ease-in-out infinite alternate;
}

/* Push the top floating items down so they stay clear of the navbar */
.icon-tl { 
  top: 25% !important; /* Increased from 15% */
  left: 10%; 
}
.icon-tr { 
  top: 30% !important; /* Increased from 20% */
  right: 10%; 
}

.icon-bl { bottom: 15%; left: 12%; }
.icon-br { bottom: 20%; right: 12%; }

/* Adjust the float-drift animation range so they don't drift up as high */
@keyframes float-drift {
  from { transform: translateY(10px) rotate(0deg); }
  to { transform: translateY(-15px) rotate(10deg); } /* Reduced upward travel */
}

.hero-main-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  position: relative;
}

.title-line {
  display: block;
}

.simplicity-line {
  font-weight: 400;
  color: #7a7a7a; 
}

.uniqueness-line {
  font-weight: 700;
  color: #ffffff;
}

/* Base character entrance */
.blur-char {
  display: inline-block;
  opacity: 0;
  filter: blur(16px);
  transform: translateY(10px);
  animation: leftToRightBlurIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i) * 0.06s);
  transition: filter 0.1s ease-out, transform 0.1s ease-out, opacity 0.1s ease-out;
}

@keyframes leftToRightBlurIn {
  0% {
    opacity: 0;
    filter: blur(16px);
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}

/* Trusted Brands Ticker - Reversed Direction */
.brand-ticker-section {
  padding: 40px 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin: 60px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 60px;
  align-items: center;
  /* Reversed animation: starts from -50% and moves to 0 */
  animation: scroll-ticker-reverse 25s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.brand-logo-item {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  white-space: nowrap;
  filter: grayscale(100%);
  opacity: 0.6;
}

.brand-logo-item:hover {
  color: #fff;
  opacity: 1;
}

@keyframes scroll-ticker-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Sliding Cards with Enhanced Proximity Shine */
.services-slider {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  width: calc((350px + 30px) * 6);
  animation: scroll-infinite 15s linear infinite;
}

.service-slide {
  width: 350px;
  height: 500px;
  flex-shrink: 0;
  margin: 0 15px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease;
}

.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes scroll-infinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-380px * 3)); }
}

.service-slide:hover .slide-bg {
  opacity: 0.6;
  transform: scale(1.05);
}

.slide-text {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 2;
}

.process-section {
  padding: 100px 5%;
  max-width: 1600px;
  margin: 0 auto;
}

.process-section > p.motto,
.process-section > h2 {
  text-align: center;
  padding: 0 5%;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
  padding: 0;
}

.step-card {
  background: var(--glass);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  transform: translateY(30px); /* Soft vertical/horizontal drift */
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.3s ease, 
              border-color 0.3s ease;
}

/* Staggered Step Delays for the 4 Cards — only the entrance animation
   (opacity, transform) should be delayed. Previously transition-delay
   was a single value, which blanket-applies to every transitioned
   property including hover's background/border-color — meaning hover
   itself was lagging by up to 0.55s on the last card. Explicit
   per-property delays (matching the order in the transition list
   above) fix that while keeping the staggered scroll-in intact. */
.step-card:nth-child(1) { transition-delay: 0.1s, 0.1s, 0s, 0s; }
.step-card:nth-child(2) { transition-delay: 0.25s, 0.25s, 0s, 0s; }
.step-card:nth-child(3) { transition-delay: 0.4s, 0.4s, 0s, 0s; }
.step-card:nth-child(4) { transition-delay: 0.55s, 0.55s, 0s, 0s; }

.step-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px) translateX(0) !important;
}

.step-icon {
  width: 45px;
  height: 45px;
  margin-bottom: 25px;
  color: var(--text-main);
  transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0.8;
}

.step-card:hover .step-icon {
  transform: scale(1.1) translateY(-5px);
  opacity: 1;
}

/* FAQ Options with Proximity Edge Shine */
.faq-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-node {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  height: fit-content;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s ease;
  position: relative;
}

.faq-node:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq-trigger {
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.faq-trigger h3 {
  font-size: 1.1rem;
  color: #fff;
  margin: 0;
}

.indicator-box {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.morphic-shape {
  width: 4px;
  height: 20px;
  background: white;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  clip-path: inset(0 0 0 0);
}

.faq-node.active .morphic-shape {
  background: #fff;
  width: 16px;
  height: 16px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(180deg);
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease, padding 0.5s ease;
  padding: 0 25px;
  position: relative;
  z-index: 1;
}

.faq-node.active .faq-content {
  grid-template-rows: 1fr;
  padding-bottom: 25px;
}

.content-inner {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Microsoft-feel Mouse Proximity Glow & Edge Highlight */
.scope-pill-card::before,
.project-row::before,
.card::before,
nav::before,
footer::before,
.service-slide::before,
.step-card::before,
.faq-node::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px; /* Creates border width for mask logic */
  background: radial-gradient(
    300px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.4),
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.scope-pill-card:hover::before,
.project-row:hover::before,
.card:hover::before,
nav:hover::before,
footer:hover::before,
.service-slide:hover::before,
.step-card:hover::before,
.faq-node:hover::before {
  opacity: 1;
}

/* Mindset Section */
.manifesto-card {
  width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 450px;
  background: #000;
  display: flex;
  align-items: flex-end;
  padding: 80px 8%;
  margin: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.scroll-reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.manifesto-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  color: #ffffff !important;
  margin-bottom: 20px;
  font-weight: 800;
}

.manifesto-content p {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* THE STORY — Overlapping Photo Cards.
   Two photo slots stacked at an angle like a small print collage, sitting
   to the right of the story text on desktop. Drop real images into the
   two <img src="path-to-your-image-#.jpg"> tags in index.html to replace
   the placeholders — the box/tilt/shadow sizing here will apply to
   whatever image is dropped in. */
.floating-cards-container {
  position: relative;
  width: 340px;
  height: 380px;
  flex-shrink: 0;
  margin-left: 60px;
  align-self: center;
}

.float-card-base {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.float-card-base img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Back card — larger, sits top-right, tilted one way */
.float-card-2 {
  width: 260px;
  height: 300px;
  top: 0;
  right: 0;
  z-index: 2;
  --tilt: 6deg;
}

/* Front card — smaller, overlaps the back card's bottom-left corner,
   tilted the other way, so the pair reads as a loose stack rather than
   two flat rectangles side by side */
.float-card-1 {
  width: 210px;
  height: 250px;
  bottom: 0;
  left: 0;
  z-index: 3;
  --tilt: -5deg;
}

/* Lazy pop-in: each card fades up and scales in from slightly smaller,
   settling into its resting tilt — rather than simply appearing. The
   two cards are staggered a beat apart so they land "closely, one after
   the other" instead of both at the exact same instant. */
.float-card-base.scroll-reveal-item {
  opacity: 0;
  transform: translateY(24px) scale(0.85) rotate(var(--tilt));
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.float-card-2.scroll-reveal-item {
  transition-delay: 0s;
}

.float-card-1.scroll-reveal-item {
  transition-delay: 0.15s;
}

.float-card-base.scroll-reveal-item.revealed {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(var(--tilt));
}

@media (max-width: 900px) {
  /* Story section stacks: text first, photo cards drop below it in
     normal document flow — no more cramming into a corner with
     position:absolute. Cards are centered and given real size. */
  .manifesto-card {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: 56px 6% 60px 6%;
  }

  .floating-cards-container {
    position: relative;
    align-self: center;
    margin: 60px auto 0 auto;
    width: min(90vw, 380px);
    height: 340px;
  }

  .float-card-2 {
    width: 230px;
    height: 270px;
  }

  .float-card-1 {
    width: 185px;
    height: 220px;
  }
}

@media (max-width: 480px) {
  .floating-cards-container {
    width: min(88vw, 300px);
    height: 280px;
    margin-top: 48px;
  }

  .float-card-2 {
    width: 190px;
    height: 220px;
  }

  .float-card-1 {
    width: 150px;
    height: 180px;
  }
}

.floating-shape {
  position: absolute;
  right: 50px;
  top: 50px;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  animation: morph 8s linear infinite alternate;
  opacity: 0.2;
  z-index: 0;
}

@keyframes morph {
  0% { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; transform: rotate(0deg); }
  100% { border-radius: 70% 30% 20% 80% / 30% 70% 70% 30%; transform: rotate(180deg); }
}

/* Bottom CTA Card */
.cta-card {
  width: calc(100% - 80px);
  max-width: 1300px;
  margin: 80px auto;
  background: #141416 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 80px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cta-content-left {
  max-width: 600px;
}

.cta-tag {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
  display: block;
}

.cta-visible-text {
  color: #ffffff !important;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 15px;
}

.cta-visible-sub {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 1rem;
  line-height: 1.5;
}

.cta-buttons-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.cta-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 16px 32px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  display: inline-block;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cta-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.cta-secondary-btn {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 28px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-secondary-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Testimonials Section */
.testimonials-section {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-pill,
.eyebrow-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 18px;
  border-radius: 50px;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.testimonials-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}

.testimonials-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.testimonial-card.tall {
  grid-row: span 2;
  justify-content: space-between;
}

.testimonial-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.author-info p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}

.video-testimonial-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  grid-row: span 2;
  min-height: 450px;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.video-overlay-content {
  position: relative;
  z-index: 2;
  padding: 30px;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.video-review-btn {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

footer {
  margin-top: 50px;       /* Reduced top spacing above the footer line */
  padding: 24px 10%;      /* Slimmed down top/bottom padding to 24px */
  border-top: 1px solid var(--border);
  background-color: var(--bg-color);
  /* Dotted background pattern matching the hero section */
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  position: relative;
  overflow: hidden;
}

/* Magnetic Floating Footer Shapes */
.footer-shapes-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 1; /* Ensures text stays clickable above the shapes */
}

.footer-legal {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.policy-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.policy-link:hover {
  color: var(--text-main);
}

.footer-socials {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-socials a {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.divider {
  margin: 0 10px;
  opacity: 0.3;
}

/* ==========================================================
   CONTACT PAGE SPECIFIC STYLES
   ========================================================== */
/* Contact Page Layout Adjustments */
.dribbble-contact-hero {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers the marquee nicely in the page view */
  align-items: center;
  padding: 100px 5% 50px 5%; /* Top padding prevents conflict with fixed navbar */
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  background-color: #0b0b0b;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  margin: auto 0; /* Centers vertically between nav and bottom bar */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: inline-block;
  animation: scrollMarquee 25s linear infinite;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: #fff;
  opacity: 0.9;
}

.marquee-track span {
  display: inline-block;
  padding-right: 30px;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.dribbble-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-width: 1400px;
  margin-top: auto;
}

.left-action-prompt p {
  font-size: 0.85rem;
  color: #a0a0a0;
  max-width: 320px;
  margin-bottom: 12px;
}

.start-project-trigger-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.start-project-trigger-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.direct-email-link {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.direct-email-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.form-step h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}

.step-sub, .service-prompt-sub {
  font-size: 1.1rem;
  color: #a0a0a0;
  max-width: 600px;
  margin-bottom: 30px;
}

.modal-action-btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.modal-action-btn:hover {
  transform: scale(1.02);
  background: #e0e0e0;
}

.name-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0 20px 0;
}

.transparent-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  padding: 12px 0;
  font-size: 1.2rem;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  outline: none;
  transition: border-color 0.3s ease;
}

.transparent-input:focus {
  border-color: #fff;
}

.transparent-input::placeholder {
  color: #555;
}

.service-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.interactive-service-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 24px;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ccc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.interactive-service-pill:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.interactive-service-pill.selected {
  background: #fff;
  color: #000;
  border-color: #fff;
}

@media screen and (max-width: 768px) {
  .dribbble-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .name-inputs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* INTERACTIVE FORM OVERLAY MODAL WITH HOMEPAGE DOTTED BACKGROUND & GLOW */
.interactive-form-overlay {
  position: fixed;
  inset: 0;
  background-color: #0b0b0b;
  /* Matches your homepage dotted grid pattern style */
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  color: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 40px 8%;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.interactive-form-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 40px;
  flex-shrink: 0;
}

.go-back-btn, .close-modal-btn {
  background: transparent;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.close-modal-btn {
  margin-left: auto;
}

/* No longer forced to a fixed min-height or centered-with-overflow:hidden —
   that combination was cropping content evenly off the top AND bottom
   whenever a step (e.g. the multi-pill question + two inputs) was taller
   than the available space. Height now follows whichever step is active,
   and the overlay itself scrolls if that step is taller than the screen. */
.modal-content-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  padding: 40px 0;
}

/* SLOW BLUR, BOTTOM-TO-TOP SLIDE & FADE TRANSITION.
   Inactive steps sit absolutely (out of flow) so switching steps doesn't
   jump the page; the active step becomes part of normal flow so the
   container (and the scrollable overlay around it) sizes to fit it. */
.form-step {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  transform: translateY(50px);
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-step.active {
  position: relative;
  transform: translateY(0);
  opacity: 1;
  filter: blur(0px);
  pointer-events: auto;
}

.form-step h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}

.step-sub, .service-prompt-sub {
  font-size: 1.1rem;
  color: #a0a0a0;
  max-width: 600px;
  margin-bottom: 30px;
}

.modal-action-btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.modal-action-btn:hover {
  transform: scale(1.02);
  background: #e0e0e0;
}

.name-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0 20px 0;
}

.transparent-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  padding: 12px 0;
  font-size: 1.2rem;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  outline: none;
  transition: border-color 0.3s ease;
}

.transparent-input:focus {
  border-color: #fff;
}

.transparent-input::placeholder {
  color: #555;
}

.service-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.interactive-service-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 24px;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.interactive-service-pill:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.interactive-service-pill.selected {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* SUCCESS CTA BUTTON STYLE (Matching your sample) */
.success-cta-container {
  margin-top: 30px;
}

.take-a-look-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 14px 28px;
  border-radius: 40px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.take-a-look-btn svg {
  transition: transform 0.3s ease;
}

.take-a-look-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.take-a-look-btn:hover svg {
  transform: translate(3px, -3px); /* Subtle nudge up-right for the arrow */
}

/* CASE STUDY SHOWCASE LAYOUT */
.case-study-showcase {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px 24px;
}

/* Full-viewport intro — the title is the only thing visible on load,
   same scale/centering as the homepage hero, so it reads as a proper
   hero rather than a small page heading. Scroll to reach the list. */
.showcase-header {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
}

/* When a project is opened, JS adds "showing-detail" to the
   .case-study-showcase section. The hero title/subtitle should only
   ever appear once, on initial load — not re-scrolled-to above every
   individual project's detail view. */
.case-study-showcase.showing-detail .showcase-header {
  display: none;
}

.project-strategy-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Poppins', sans-serif;
}

.strategy-line-grey {
  font-weight: 400;
  color: #7a7a7a;
}

.strategy-line-bold {
  font-weight: 700;
  color: #ffffff;
}

.showcase-header h1 {
  font-weight: 700;
  color: #fff;
  margin: 20px 0 20px 0;
}

.showcase-header p {
  color: #888;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* PROJECT ROW LIST */
.project-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease;
}

.project-row:hover {
  background: rgba(255, 255, 255, 0.015);
  padding-left: 12px;
  padding-right: 12px;
}

.project-info-left {
  max-width: 600px;
}

.project-category {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-info-left h2 {
  font-size: 1.8rem;
  color: #fff;
  margin: 6px 0;
  font-weight: 600;
}

.project-strategy-text {
  font-size: 0.9rem;
  color: #aaa;
}

.project-result-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.metric-figure {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.metric-label {
  font-size: 0.75rem;
  color: #777;
}

.see-shapes-btn {
  margin-top: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.see-shapes-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* OVERLAY MORPH VIEW */
.case-study-overlay-view {
  animation: fadeIn 0.4s ease forwards;
}

.overlay-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-overlay-btn {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.close-overlay-btn:hover {
  color: #fff;
}

.brand-signoff {
  font-size: 0.85rem;
  color: #666;
  letter-spacing: 0.5px;
}

.case-study-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.case-visual-pane {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-narrative-pane {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.narrative-block h3 {
  font-size: 0.8rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.narrative-block p {
  font-size: 1.05rem;
  color: #ddd;
  line-height: 1.6;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE STACKING FOR MOBILE & TABLETS */
@media (max-width: 900px) {
  .project-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .project-result-right {
    align-items: flex-start;
  }

  .case-study-content-grid {
    grid-template-columns: 1fr;
  }

  .case-visual-pane {
    min-height: 300px;
  }
}

/* PROJECT ROW LIST & SCOPE CARDS WITH MOUSE GLOW */
.project-list-wrapper {
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-list-wrapper.leaving {
  opacity: 0;
  transform: scale(0.98);
}

.project-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease, box-shadow 0.25s ease;
}

/* The whole card lifts on hover — border, background, and the image
   placeholder all move together, rather than only the text inside
   appearing to respond. */
.project-row:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.scope-pill-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 32px;
  overflow: hidden;
}

/* Mouse Proximity Glow Layer */
.scope-pill-card::before, .project-row::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.project-info-left, .project-result-right, .morph-hero-text, .morph-hero-visual, .narrative-block {
  position: relative;
  z-index: 2;
}

.project-info-left {
  max-width: 600px;
}

.project-category {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-info-left h2 {
  font-size: 1.8rem;
  color: #fff;
  margin: 6px 0;
  font-weight: 600;
}

.project-strategy-text {
  font-size: 0.9rem;
  color: #aaa;
}

.project-result-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.metric-figure {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.metric-label {
  font-size: 0.75rem;
  color: #777;
}

.see-shapes-btn {
  margin-top: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.see-shapes-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* Thumbnail on the right of each list row — the placeholder inside
   makes clear it's a slot waiting for a real image. */
.project-thumb {
  flex-shrink: 0;
  width: 300px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Placeholder shown until a real image is dropped in. Dashed border
   makes it unmistakably a placeholder, not a finished design choice. */
.image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.32);
}

.image-placeholder span {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* MORPH OVERLAY STYLING */
.case-study-overlay-view {
  animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.overlay-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.close-overlay-btn {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.close-overlay-btn:hover {
  color: #fff;
}

.brand-signoff {
  font-size: 0.85rem;
  color: #666;
  letter-spacing: 0.5px;
}

/* MORPH HERO BANNER (Left Text, Right Visual Split) */
.morph-hero-banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
  min-height: 400px;
}

.morph-category {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.morph-hero-text h2 {
  font-size: 3rem;
  color: #fff;
  margin: 12px 0 24px 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.morph-metrics-row {
  display: flex;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.morph-metric .m-val {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.morph-metric .m-lbl {
  font-size: 0.75rem;
  color: #777;
}

.morph-hero-visual {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Drop-in slot for a real cutout PNG (see comment in projects.html) —
   sits unboxed with a drop-shadow and slight tilt, no card edge. */
.hero-cutout-img {
  max-width: 92%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.45));
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
}

/* STRATEGY GRID (3 columns side-by-side) */
.morph-strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.narrative-block .step-num {
  font-size: 0.8rem;
  color: #555;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.narrative-block h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 600;
}

.narrative-block p {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.6;
}

/* SECONDARY MOCKUP GALLERY */
.gallery-heading {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  display: block;
}

.morph-mockup-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-card.tall .gallery-image-preview {
  height: 460px;
}

.gallery-card h4 {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 16px;
  font-weight: 500;
}

.gallery-image-preview {
  height: 220px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  object-fit: cover;
  width: 100%;
}

/* INSIDER KEYNOTE — Joemetry's own reflection, fills the space after
   the gallery instead of leaving it blank. */
.case-keynote {
  position: relative;
  max-width: 760px;
  margin: 8px auto 56px auto;
  padding: 8px 8px 8px 36px;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
}

.keynote-mark {
  position: absolute;
  top: -22px;
  left: 0;
  font-size: 3.2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.16);
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', serif;
}

.keynote-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #cfcfcf;
  font-style: italic;
}

.keynote-sign {
  display: block;
  margin-top: 16px;
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666;
}

.overlay-return-row {
  display: flex;
  justify-content: center;
  padding: 20px 0 10px 0;
}

.other-projects-btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.other-projects-btn:hover {
  transform: scale(1.03);
  background: #e4e4e7;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE LAYOUT BREAKPOINTS */
@media (max-width: 900px) {
  .project-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .project-result-right {
    align-items: flex-start;
  }

  .morph-hero-banner, .morph-strategy-grid, .morph-mockup-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-masonry {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .faq-grid-container {
    grid-template-columns: 1fr;
  }
  .nav-pill-container {
    display: none;
  }
  .cta-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-masonry {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ============ POLICY PAGE ============ */
.policy-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 24px 100px 24px;
}

.policy-hero {
  text-align: left;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.policy-hero h1 {
  font-size: 2.4rem !important;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text-main);
  margin: 18px 0 12px 0;
}

.policy-updated {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.policy-jump-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.policy-jump-nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--glass);
  transition: all 0.2s ease;
}

.policy-jump-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Each of the two big sections (Privacy Policy / Terms of Service) gets
   real breathing room between it and the next, so they read as distinct
   documents rather than one unbroken wall of text. */
.policy-section {
  margin-bottom: 72px;
}

.policy-section > h2 {
  font-size: 1.7rem !important;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.policy-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 36px 0 14px 0;
}

/* First h3 right after the section h2 shouldn't get the same big gap */
.policy-section > h2 + h3 {
  margin-top: 0;
}

.policy-section p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.policy-section p strong {
  color: var(--text-main);
  font-weight: 600;
}

.policy-section ul {
  margin: 0 0 20px 0;
  padding-left: 22px;
  color: var(--text-dim);
}

.policy-section li {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 8px;
}

.policy-section a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.policy-section a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.policy-back-top {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.policy-back-top a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.policy-back-top a:hover {
  color: var(--text-main);
}

@media (max-width: 600px) {
  .policy-page {
    padding: 130px 20px 70px 20px;
  }
  .policy-hero h1 {
    font-size: 1.9rem !important;
  }
  .policy-section > h2 {
    font-size: 1.4rem !important;
  }
}