html { font-size: 67%; }
/* ==========================================================================
   OvertIdeas.com - Interactive Swiss Minimalist Design System
   ========================================================================== */

:root {
  --bg-primary: #f1ede5;      
  --bg-secondary: #e6e0d3;    
  --bg-dark: #000104;         
  --bg-blue: #32386E;         
  --bg-red: #e00101;          

  --text-main: #000104;
  --text-inverse: #f1ede5;
  --text-muted: #555555;

  --accent-blue: #2414ff;
  --logo-navy: #32386e;
  --accent-red: #f23232;
  --accent-gold: #eebb4d;
  --accent-green: #b8fb97;

  --font-heading: 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Menlo', 'Consolas', monospace;

  --container-max: 87.5rem;
}

/* --------------------------------------------------------------------------
   1. Reset & Core Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Hide native scrollbars for Lenis */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Custom Scrollbar Hide */
::-webkit-scrollbar {
  display: none;
}
html {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a, button {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding { padding: 10rem 0; }
@media (max-width: 48rem) { .section-padding { padding: 5rem 0; } }

.bg-dark { background-color: var(--bg-dark); color: var(--text-inverse); }
.bg-blue { background-color: var(--bg-blue); color: var(--text-inverse); }
.bg-red { background-color: var(--bg-red); color: var(--text-inverse); }
.bg-cream { background-color: var(--bg-primary); color: var(--text-main); }

/* Typography Scale */
.huge-title {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 6.7vw, 12rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: none;
  margin-bottom: 4rem; /* Added padding between 'bold.' and the email ID */
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 3.35vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}

.lead-text {
  font-size: clamp(1.2rem, 2.35vw, 3rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.btn {
  display: inline-flex;
  padding: 1rem 2.5rem;
  border-radius: 6.1875rem;
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid transparent;
}
.btn-primary { background: var(--bg-dark); color: var(--text-inverse); }
.btn-outline { background: transparent; border-color: var(--text-inverse); color: var(--text-inverse); }

/* --------------------------------------------------------------------------
   2. Custom Cursor & Preloader
   -------------------------------------------------------------------------- */
/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.preloader-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg-blue);
  background-image: 
    radial-gradient(ellipse at top, rgba(255,255,255,0.2) 0%, transparent 70%),
    linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  z-index: -1;
  transform-origin: top;
}

.preloader-text {
  font-size: clamp(2rem, 3.35vw, 5rem);
  font-weight: 800;
  color: var(--text-inverse);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.preloader-logo {
  height: clamp(3rem, 4.69vw, 6rem);
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 2rem 0;
  mix-blend-mode: difference; /* Ensures text is always visible */
  color: #fff; /* Mix blend will invert it over light/dark */
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo {
  font-size: 2.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}

.logo-wrapper {
  position: fixed;
  top: max(2rem, 3vh);
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1001;
  color: #000;
  opacity: 0;
  transform: translateY(-10px);
  transition: color 0.3s ease, opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-wrapper.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.logo-wrapper.inverted {
  color: #fff !important;
}

.logo-wrapper .logo {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  line-height: 1;
}

.logo-icon-container {
  color: var(--bg-blue);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrapper.inverted .logo-icon-container {
  color: #fff !important;
}

.logo-icon-mask {
  width: 1.15rem;
  height: 1.15rem;
  background-color: currentColor;
  -webkit-mask-image: url('assets/logo.png');
  mask-image: url('assets/logo.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.logo-text-container {
  color: inherit;
}

.logo-dot {
  width: 12px;
  height: 12px;
  background-color: var(--accent-red);
  border-radius: 50%;
  display: inline-block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 3rem;
  list-style: none;
}

.nav-link {
  font-size: 1.1rem; /* Slimmer size */
  font-weight: 500; /* Slimmer weight */
  text-transform: uppercase;
  letter-spacing: 0.1em; /* Increased spacing to compensate for smaller size */
  position: relative;
  display: inline-block;
  transition: opacity 0.3s ease, color 0.3s ease; /* Removed transform to prevent GSAP conflict */
  transform-origin: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-arrow {
  width: 8px;
  height: 5px;
  display: inline-block;
  opacity: 0.8;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.nav-dropdown-container:hover .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-link:hover {
  opacity: 0.5;
}

.nav-dropdown-container {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
  z-index: 100;
}

.nav-dropdown-container:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px);
}

.nav-dropdown-link {
  color: #ffffff;
  text-decoration: none;
  padding: 0.75rem 1rem;
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.nav-dropdown-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}

.hamburger { display: none; }

/* --------------------------------------------------------------------------
   4. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #fff;
}

.hero-jellyfish-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  /* Hidden on load; the preloader timeline fades it up only after the headline
     has finished typing, so the opening beat is nav + plain white + text. The
     simulation still runs underneath, so the swarm is already alive (and already
     tracking the pointer) the moment it becomes visible. */
  opacity: 0;
}

.hero-jellyfish-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* .container caps at 87.5rem, but html{font-size:67%} makes that only ~938px,
     which forced the headline to wrap mid-line. Widen it for the hero only. */
  max-width: min(1180px, 92vw);
}

/* Wordmark above the headline — exact Google Antigravity proportion */
.hero-wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.6vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin-bottom: clamp(1.75rem, 4vh, 3rem);
  opacity: 0; /* revealed by the preloader timeline */
}
.hero-wordmark-mark {
  height: 1.45em;
  width: auto;
  object-fit: contain;
  display: block;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.2vw, 4.85rem);
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin: 0;
}

.hero-word {
  display: inline-block;
  white-space: nowrap;
}

.hero-space {
  display: inline-block;
}

.hero-char,
.hero-space {
  display: inline-block;
  position: relative; /* anchors the caret */
  will-change: opacity;
  /* Hidden here rather than only in JS: otherwise the finished headline paints
     for the whole gap between first paint and main.js running, and the typing
     would start from a line the visitor has already read. The typewriter sets
     inline opacity:1 per glyph, which outranks this. */
  opacity: 0;
}

/* Typing caret. Absolutely positioned so it occupies NO layout space — an inline
   caret would change each line's width and, because the hero is centre-aligned,
   nudge the already-typed text sideways on every keystroke. */
.hero-char.is-caret::after,
.hero-space.is-caret::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 0.1em;
  width: 0.055em;
  min-width: 2px;
  height: 0.82em;
  /* The mark's navy rather than currentColor, so the caret reads as the brand
     cursor sitting in the sentence instead of as another letter. */
  background-color: var(--logo-navy);
  animation: hero-caret-blink 1.05s steps(1) infinite;
}
@keyframes hero-caret-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-char.is-caret::after,
  .hero-space.is-caret::after { animation: none; }
}

/* Each authored line stays a single visual line on desktop so the copy breaks
   where it was written, not wherever the box happens to run out. */
@media (min-width: 48rem) {
  .hero-headline .line { white-space: nowrap; }
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(2rem, 4.5vh, 3.5rem);
  opacity: 0; /* revealed by the preloader timeline */
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  background-color: var(--text-main);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}
.hero-btn:hover {
  background-color: #222;
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}
.hero-btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Line wrapper for GSAP split text animation */
/* These are hero-headline only. The old slide-up reveal lived here:
   .line had transform:translateY(110%) and .line-wrap clipped it, which left the
   headline parked below its own clip once the reveal became per-character.
   overflow must stay visible or the typing caret gets clipped at line ends, and
   the old ".line span { color: accent-blue }" would tint every character span. */
.line-wrap {
  overflow: visible;
}
.line {
  transform: none;
}

/* --------------------------------------------------------------------------
   5. Sections
   -------------------------------------------------------------------------- */
.intro-section {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
  padding: 15rem 0;
}

.intro-content {
  max-width: 75rem;
}

.highlight-text {
  color: var(--accent-red);
}



/* --------------------------------------------------------------------------
   6. Phone Showcase Section
   -------------------------------------------------------------------------- */
.phone-showcase {
  height: 100vh; /* Pinned by GSAP */
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marquee-text {
  position: absolute;
  top: 50%;
  left: 0;
  font-family: var(--font-heading);
  font-size: clamp(8rem, 10.05vw, 15rem);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  will-change: transform;
}

.marquee-text.outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
  z-index: 1;
}

.marquee-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: difference;
  /* Mask exactly where the phone screen is */
  clip-path: inset(calc(50vh - 390px) calc(50vw - 190px) calc(50vh - 390px) calc(50vw - 190px) round 30px);
}

@media (max-width: 48rem) {
  .marquee-mask {
    clip-path: inset(calc(50vh - 250px) calc(50vw - 130px) calc(50vh - 250px) calc(50vw - 130px) round 24px);
  }
}

.marquee-text.filled {
  color: #ffffff; /* Pure white for perfect difference inversion */
}

.showcase-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 3rem; /* Space between items naturally */
}

.side-text {
  color: var(--text-inverse);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Removed position absolute */
}

.side-text h3 {
  font-size: clamp(1.5rem, 2.01vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.side-text p {
  font-size: clamp(1rem, 1.34vw, 1.5rem);
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
}

.left-text { 
  text-align: left; 
}
.right-text { 
  text-align: right; 
  position: relative;
  height: 100px; /* Give it some height so child absolute position works */
  width: 250px;
}

.product-title {
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(10px);
  white-space: nowrap;
}

.product-title.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.product-description {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  max-width: 280px;
  white-space: normal;
  text-align: right;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

@media (max-width: 62rem) {
  .left-text, .right-text { display: none; }
  .showcase-container { justify-content: center; }
  .slider-progress-bars { display: none; }
}

/* Slider Progress Bars */
.slider-progress-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10;
  /* Removed position absolute */
}

.progress-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  opacity: 0.5;
}

.progress-btn.active {
  opacity: 1;
}

.progress-btn:hover {
  opacity: 0.8;
}

.progress-track {
  width: 4px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  display: block;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: #ffffff;
  border-radius: 4px;
}

.phone-frame {
  width: 23.75rem;
  height: 48.75rem;
  background-color: #000;
  border-radius: 2.5rem;
  border: 8px solid #222;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 0 0 2px #444;
  position: relative;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 48rem) {
  .phone-frame {
    width: 16.25rem;
    height: 31.25rem;
    border-radius: 2rem;
  }
}

.phone-notch {
  position: absolute;
  top: 0;
  width: 7.5rem;
  height: 1.5625rem;
  background-color: #222;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
  background-color: #111;
}

.phone-slides-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.phone-slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
}

.slide-header {
  padding: 3rem 1.5rem 1rem 1.5rem;
  z-index: 5;
  text-align: center;
}

.slide-header h4 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}

.phone-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.slide-footer {
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-grow: 1;
  z-index: 5;
}

.btn-pill {
  padding: 0.5rem 1.25rem;
  background-color: var(--accent-blue);
  color: #fff;
  border-radius: 6.1875rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   7. Cases Horizontal Scroll Section
   -------------------------------------------------------------------------- */
.case-prev-btn {
  position: absolute;
  left: 2vw;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-base);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
}
.case-prev-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease;
}
.case-prev-btn:hover {
  background: var(--bg-blue);
  color: #fff;
  border-color: var(--bg-blue);
  transform: translateY(-50%) scale(1.05);
}
.case-prev-btn:hover svg {
  transform: translateX(-2px);
}

.case-next-btn {
  position: absolute;
  right: 2vw;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-base);
  backdrop-filter: blur(4px);
}
.case-next-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease;
}
.case-next-btn:hover {
  background: var(--bg-blue);
  color: #fff;
  border-color: var(--bg-blue);
  transform: translateY(-50%) scale(1.05);
}
.case-next-btn:hover svg {
  transform: translateX(2px);
}

.cases-section {
  position: relative;
  background-color: #efebe4; /* Beige background */
  overflow: hidden;
}

.cases-sticky-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center the track vertically */
  position: relative;
}

.cases-intro {
  padding-top: 15vh;
  padding-bottom: 5vh;
}

.cases-lead-text {
  font-size: clamp(2rem, 2.68vw, 3.5rem);
  font-weight: 500;
  max-width: 56.25rem;
  line-height: 1.2;
  color: #1a1a1a;
}

.cases-pagination-wrapper {
  position: absolute;
  top: 6vh; /* Moved higher up so it sits above the image */
  left: 5vw; 
  z-index: 100; 
}

.cases-pagination {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a; /* Standard dark color */
}

.page-bar {
  width: 6.25rem;
  height: 4px; /* Thicker bar */
  background-color: rgba(0,0,0,0.1);
  position: relative;
}

.page-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: #1a1a1a; /* Standard dark color */
}

.cases-track-wrapper {
  height: 100vh; /* Changed to 100vh to provide a full-screen backdrop for text blending */
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.cases-track {
  display: flex;
  height: 100%;
  width: 300vw; /* 3 slides */
  background-color: #efebe4; /* Provide solid background inside the stacking context */
}

.case-slide {
  width: 100vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(2.5rem, 6vw, 7rem);
  gap: clamp(2rem, 4vw, 5rem);
  box-sizing: border-box;
}

.case-text-content {
  flex: 0 0 38%;
  max-width: 38%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  mix-blend-mode: normal;
}

.case-title {
  font-size: clamp(2.4rem, 4.2vw, 5rem);
  font-weight: 700;
  line-height: 1.12;
  color: #ffffff;
  letter-spacing: -0.025em;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  margin-bottom: 0.85rem;
}

.case-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.4vw, 1.65rem);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: -0.01em;
  text-shadow: none;
  white-space: normal;
}

.case-image-wrapper {
  flex: 0 0 56%;
  max-width: 56%;
  height: auto;
  max-height: 72vh;
  border-radius: clamp(1.2rem, 2vw, 2.5rem);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform-origin: center center;
  position: relative;
  z-index: 1;
  background-color: #fcfcfc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-image {
  width: 100%;
  height: auto;
  max-height: 72vh;
  display: block;
  object-fit: contain;
}

/* Light text modifiers for when BG is dark */
.cases-section.is-dark .cases-lead-text,
.cases-section.is-dark .cases-pagination {
  color: #fff;
}
.cases-section.is-dark .page-bar { background-color: rgba(255,255,255,0.2); }
.cases-section.is-dark .page-progress { background-color: #fff; }


/* --------------------------------------------------------------------------
   8. Campaign / Newsletter Section
   -------------------------------------------------------------------------- */
.campaign-section {
  background-color: var(--bg-primary); /* Match contact section perfectly */
  color: #1a1a1a;
  padding: 15vh 0 5vh; /* Reduced bottom padding */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.campaign-content {
  max-width: 75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.campaign-headline {
  font-size: clamp(2rem, 2.68vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 200; /* Ultra-thin base */
  margin-bottom: 0; /* Removed the 6rem gap since the newsletter is gone */
  text-align: center;
}

.campaign-headline strong {
  font-weight: 500; 
}

.campaign-headline .font-light {
  font-weight: 200; /* Use ultra-thin font weight */
  color: #1a1a1a; /* Match the dark contrast */
}

.campaign-newsletter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.campaign-newsletter p {
  font-size: 1.25rem;
}

.campaign-newsletter p strong {
  font-weight: 600;
}

.newsletter-form {
  width: 100%;
  max-width: 28.125rem;
}

.newsletter-input {
  width: 100%;
  padding: 1.25rem 2rem;
  border-radius: 3.125rem;
  border: none;
  background-color: #fff;
  font-size: 1.1rem;
  font-family: inherit;
  color: #1a1a1a;
  text-align: center; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: outline 0.3s ease;
}

.newsletter-input::placeholder {
  color: #a0a0a0;
}

.newsletter-input:focus {
  outline: 2px solid #0b5b9c;
}


/* --------------------------------------------------------------------------
   9. Contact Section
   -------------------------------------------------------------------------- */
.contact-section {
  background-color: var(--bg-primary);
  text-align: center;
  padding: 15rem 0;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-link {
  font-size: clamp(1rem, 1.5vw, 2.5rem);
  font-weight: 800;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.contact-link:hover {
  transform: scale(1.05);
  color: #888; /* grey */
}

.footer {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
  margin-right: 1.5rem;
  color: var(--text-secondary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   10. Final Footer Section (Dark)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #0c0c0c;
  color: #fff;
  padding: 8vh 0 4vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

/* Top Row */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-studio-info {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: #aaa;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.footer-logo-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #eebb4d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo-circle::after {
  content: '';
  width: 4px;
  height: 4px;
  background-color: #eebb4d;
  border-radius: 50%;
}

/* Center Typography */
.footer-center {
  margin: 15vh 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-headline {
  font-size: clamp(5rem, 8.04vw, 13rem); /* Significantly increased */
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  display: flex;
  flex-direction: column;
  position: relative;
  /* Without this the flex column shrinks to its widest child -- the word
     "Ideas" -- so the indented lines were measuring against ~540px instead of
     the container's full width, and "shouldn't" broke into "should" / "n't". */
  width: 100%;
}
/* Block-level so the percentage indents apply to the whole line rather than
   just its first line box, and nowrap so a staggered line can never split a
   word across two rows. */
.footer-headline .line-1,
.footer-headline .line-2,
.footer-headline .line-3 {
  display: block;
  white-space: nowrap;
}
.footer-headline .line-1 {
  color: #fff;
}
.footer-headline .line-2 {
  color: #999;
  margin-left: 20%;
}
.footer-headline .line-3 {
  color: #fff;
  margin-left: 40%;
}

.glowing-line {
  position: absolute;
  /* In the gutter to the left of the statement. Any x inside the block would
     cross "Ideas", which starts flush left and runs past the halfway mark. */
  left: -2.2rem;
  top: -8%;
  bottom: -8%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #eebb4d, transparent);
  box-shadow: 0 0 20px 4px rgba(238, 187, 77, 0.6); /* Thicker and brighter glow */
  pointer-events: none;
}
.glowing-line::before {
  content: '';
  position: absolute;
  bottom: 20%;
  left: -2px;
  width: 5px;
  height: 5px;
  background-color: #eebb4d;
  border-radius: 50%;
  box-shadow: 0 0 10px #eebb4d;
}

/* Bottom Grid */
.site-footer .footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* Override previous center alignment */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  width: 100%; /* Ensure it stretches the full width */
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-row:last-child {
  border-bottom: none;
}
.footer-row-left {
  flex: 1;
  max-width: 37.5rem;
  font-size: 15px;
  line-height: 1.5;
}
.footer-row-right {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: #666;
  text-align: right;
}
.text-yellow {
  color: #eebb4d;
}
.text-muted {
  color: #666;
}
.text-gray {
  color: #999;
}
.text-white {
  color: #fff;
}

@media (max-width: 48rem) {
  .footer-row {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-row-right {
    text-align: left;
  }
  .glowing-line {
    display: none;
  }
  .footer-headline .line-2,
  .footer-headline .line-3 {
    margin-left: 0;
  }
}

/* --------------------------------------------------------------------------
   11. Real Footer Section (Black)
   -------------------------------------------------------------------------- */
.new-real-footer {
  background-color: #1a1919;
  color: #fff; /* Changed from pale green to white */
  padding: 2rem 0; /* Reduced top padding from 15vh to push text to the top */
  min-height: 80vh;
  display: flex;
  flex-direction: column;
}

.new-footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.new-footer-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.69vw, 10rem); /* Reduced to fit on one line */
  font-weight: 400;
  letter-spacing: -0.04em;
  text-align: center;
}

.footer-up-link {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  display: inline-block;
  transform-origin: left center;
}

.footer-up-link:hover {
  opacity: 0.5 !important;
  transform: scale(1.02);
}

.new-footer-title {
  white-space: nowrap; /* Force onto a single line */
}

/* --------------------------------------------------------------------------
   11b. Real Footer — Studio Panel
   -------------------------------------------------------------------------- */

/* Anchors the cursor spotlight and clips it at the footer's edges */
.new-real-footer {
  position: relative;
  overflow: hidden;
}

.footer-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 40rem;
  height: 40rem;
  margin: -20rem 0 0 -20rem; /* centres the glow on the pointer */
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(238, 187, 77, 0.14) 0%,
    rgba(238, 187, 77, 0.05) 35%,
    transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}
.new-real-footer:hover .footer-spotlight {
  opacity: 1;
}

/* Keep all real content above the spotlight */
.new-footer-content {
  position: relative;
  z-index: 1;
}

.footer-studio-panel {
  padding: clamp(2rem, 5vh, 4rem) 0;
}

/* Hairline with a light that sweeps across it — a horizontal echo of the
   glowing line in the section above */
.footer-rule {
  position: relative;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.footer-rule::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 12rem;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  box-shadow: 0 0 12px 2px rgba(238, 187, 77, 0.5);
  animation: footer-rule-sweep 7s linear infinite;
}
@keyframes footer-rule-sweep {
  from { transform: translateX(-12rem); }
  to   { transform: translateX(100vw); }
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem 6rem;
  align-items: start;
  padding-top: clamp(2.5rem, 6vh, 4.5rem);
}

/* Left: the invitation */
.studio-invite-text {
  font-size: clamp(1.75rem, 3.4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}

.studio-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: border-color 0.4s ease, color 0.4s ease;
}
/* The fill sweep lives on ::before so it never fights the magnetic GSAP
   tween running on the button element itself */
.studio-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--accent-gold);
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.studio-cta:hover {
  border-color: var(--accent-gold);
  color: #1a1919;
}
.studio-cta:hover::before {
  transform: translateY(0);
}
.studio-cta-label,
.studio-cta-arrow {
  position: relative; /* stack above the sweep */
  z-index: 1;
}
.studio-cta-arrow {
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.studio-cta:hover .studio-cta-arrow {
  transform: translate(0.25rem, -0.25rem);
}

/* Right: live studio details */
.studio-meta {
  display: flex;
  flex-direction: column;
}
.studio-meta-item {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.studio-meta-item:first-child {
  padding-top: 0;
}
.studio-meta-item:last-child {
  border-bottom: none;
}
.studio-meta-label {
  font-family: var(--font-mono);
  font-size: 12px; /* px: 0.7rem would be 7.5px under the 67% root */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
}
.studio-meta-value {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 15px;
  color: #fff;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--accent-green);
  animation: status-pulse 2.4s ease-out infinite;
}
@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(184, 251, 151, 0.6); }
  70%  { box-shadow: 0 0 0 0.6rem rgba(184, 251, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 251, 151, 0); }
}

.studio-clock {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums; /* stops the digits jittering each tick */
  letter-spacing: 0.05em;
}

.studio-socials {
  flex-wrap: wrap;
  gap: 1.25rem;
}
.studio-socials a {
  position: relative;
  color: #fff;
  transition: color 0.3s ease;
}
.studio-socials a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}
.studio-socials a:hover {
  color: var(--accent-gold);
}
.studio-socials a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 48rem) {
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .studio-meta-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.new-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  border-top: none;
  padding-top: 2rem;
}
.new-footer-bottom a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  transform-origin: center;
}
.new-footer-bottom a:hover {
  opacity: 0.5;
  transform: scale(1.05);
}

@media (max-width: 48rem) {
  .new-footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
}


.footer-copyright-col {
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1rem; /* baseline alignment */
}

.footer-badges-col {
  display: flex;
  gap: 1.5rem;
}

.circle-badge {
  width: 5.625rem;
  height: 5.625rem;
  border-radius: 50%;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 400;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.circle-badge:hover {
  background-color: #fff;
  color: #000;
}

@media (max-width: 56.25rem) {
  .real-footer .footer-content-wrap {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .footer-bottom-right-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
}

/* ==========================================================================
   12. Responsive Overrides (Global)
   ========================================================================== */

@media (max-width: 62rem) {
  .intro-section, .contact-section { padding: 10rem 0; }
}

@media (max-width: 48rem) {
  /* Header Navigation */
  .header { padding: 1.5rem 0; position: relative; }

  .logo-wrapper .container {
    justify-content: center !important;
  }
  .nav-container { 
    flex-direction: column; 
    align-items: center; 
  }
  .nav-menu {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-link { font-size: 1.1rem; }

  /* Typography & Spacing */
  .intro-section, .contact-section { padding: 6rem 0; }
  .cases-intro { padding-top: 10vh; padding-bottom: 2vh; }
  .campaign-section { padding: 10vh 0 5vh; }

  /* Case Studies (Vertical internal layout) */
  .case-slide {
    flex-direction: column-reverse;
    justify-content: center;
    padding: 0 5vw;
    gap: 1rem;
  }
  .case-image-wrapper {
    width: 100%;
    height: auto;
  }
  .case-text-content {
    width: 100%;
    text-align: center;
    align-items: center;
    margin-bottom: 2rem;
  }
  .case-title { font-size: clamp(3rem, 8.04vw, 4rem); }
  .case-subtitle { font-size: calc(clamp(2rem, 5.36vw, 3rem) - 12px); white-space: normal; line-height: 1.1; }
  .cases-pagination-wrapper {
    top: 2vh;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Contact Links */
  .contact-links { gap: 1.5rem; flex-direction: column; }
  .contact-link { font-size: clamp(1.5rem, 4.02vw, 2.5rem); }

  /* Site Footer (Ideas shouldn't hide) */
  .site-footer { padding: 5vh 0; }
  .footer-row {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
  .footer-row-left { width: 100%; max-width: none; }
  .footer-row-right { text-align: left; }
  
  /* Real Footer (Black) */
  .real-footer { padding: 8vh 0; }
  .real-footer .footer-content-wrap { gap: 3rem; }
}

@media (max-width: 30rem) {
  .case-image-wrapper { height: auto; }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  mix-blend-mode: difference;
}

.back-to-top:hover {
  transform: translateY(-5px);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Hover Link Actions
   -------------------------------------------------------------------------- */
.hover-text-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.side-text.left-text .hover-text-link {
  transform-origin: left center;
}

.side-text.right-text .hover-text-link {
  transform-origin: right center;
}

.case-text-content .hover-text-link {
  display: block;
  width: 100%;
  transition: opacity 0.25s ease;
}

.case-text-content .hover-text-link:hover {
  opacity: 0.85;
}

.hover-image-link {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-image-link:hover {
  transform: scale(1.03);
}

/* ==========================================================================
   13. Responsive Refinements — mobile / tablet
   --------------------------------------------------------------------------
   NOTE: html{font-size:67%} means 1rem ~= 10.7px, so rem is a trap for small
   UI sizing here (a "2.75rem" tap target would be 29px, not 44px). Tap targets
   and small text below are given in px deliberately.
   Media-query rem is NOT affected by that — it resolves against the browser's
   initial 16px — so 48rem = 768px and 64rem = 1024px as you'd expect.
   ========================================================================== */

/* Long unbroken strings (emails, URLs) must never force a horizontal scrollbar */
body { overflow-wrap: break-word; }
.contact-link { overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   13a. Tablet (769px - 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 48.0625rem) and (max-width: 64rem) {
  .hero-content { max-width: 90vw; }
  .hero-headline { font-size: clamp(1.8rem, 4.6vw, 3.4rem); }

  .nav-menu { gap: 1.75rem; }
  .nav-link { font-size: 15px; }

  .showcase-container { gap: 2rem; }
  .phone-frame { width: 20rem; height: 41rem; }

  .studio-grid { gap: 2.5rem 3rem; }
  .studio-meta-item { grid-template-columns: 6rem minmax(0, 1fr); }

  .footer-headline { font-size: clamp(3.5rem, 9vw, 7rem); }
  .case-slide { padding: 0 4vw; gap: 2rem; }
  .case-text-content { flex: 0 0 42%; max-width: 42%; }
  .case-title { font-size: clamp(2rem, 3.2vw, 3rem); white-space: normal; }
  .case-subtitle { font-size: 14px; white-space: normal; }
  .case-image-wrapper { flex: 0 0 54%; max-width: 54%; max-height: 58vh; }
}

/* --------------------------------------------------------------------------
   13b. Mobile (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 48rem) {

  /* --- Header: hamburger on the left, logo on the right, one clean row.
         Previously the fixed .logo-wrapper sat on top of the nav row. --- */
  .header {
    padding: 10px 0;
    /* difference blending would invert the drawer panel and its text */
    mix-blend-mode: normal;
    color: var(--text-main);
  }
  .nav-container {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    position: relative;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;              /* accessible tap target */
    padding: 0;
    font-size: 21px;
    line-height: 1;
    background: none;
    border: 0;
    color: var(--text-main);
    order: -1;                 /* keep it ahead of the nav in the row */
  }

  .logo-wrapper { top: 14px; }
  .logo-wrapper .container {
    justify-content: flex-end !important;
    padding: 0 20px;
  }
  .logo-wrapper .logo { font-size: 17px; gap: 0.4rem; }
  .logo-icon-mask { width: 22px; height: 22px; }

  /* Drawer */
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    z-index: 1005;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li { width: 100%; }

  .nav-link {
    display: block;
    width: 100%;
    padding: 13px 20px;
    font-size: 15px;
    letter-spacing: 0.06em;
    color: var(--text-main);
  }
  .nav-link::after { display: none; } /* underline sweep reads as a stray line here */

  /* Products submenu: stacked and always open inside the drawer */
  .nav-dropdown {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 4px;
    min-width: 0;
  }
  .nav-dropdown-link {
    display: block;
    padding: 10px 20px 10px 34px;
    font-size: 14px;
    color: var(--text-muted);
  }

  /* --- Hero --- */
  .hero-content { max-width: 100%; }
  .hero-wordmark { font-size: 15px; }
  .hero-headline { font-size: clamp(1.55rem, 7.4vw, 2.6rem); line-height: 1.18; }
  .hero-btn { padding: 14px 26px; font-size: 15px; }

  /* --- Phone showcase: keep the device fully on screen --- */
  .phone-showcase { height: auto; padding: 12vh 0; }
  .phone-frame {
    width: min(70vw, 260px);
    height: min(142vw, 528px);
    border-width: 6px;
  }
  .slider-progress-bars { left: 12px; }

  /* --- Case studies --- */
  .cases-pagination-wrapper {
    top: auto;
    bottom: 4vh;
    left: 20px;
    transform: none;
  }

  .case-slide {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 1.5rem 4rem;
    gap: 1.25rem;
    text-align: center;
  }

  .case-text-content {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    align-items: center;
    text-align: center;
    mix-blend-mode: normal;
  }

  .case-title {
    font-size: clamp(1.8rem, 6.5vw, 2.5rem);
    white-space: normal;
    margin-bottom: 0.35rem;
    line-height: 1.2;
  }

  .case-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    white-space: normal;
    text-shadow: none;
  }

  .case-image-wrapper {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    max-height: 48vh;
    border-radius: 1.25rem;
  }

  .case-image {
    max-height: 48vh;
    object-fit: contain;
  }

  /* --- Contact --- */
  .contact-link { font-size: clamp(1.15rem, 4.6vw, 1.8rem); }

  /* --- Footer studio panel: several labels were rendering at 7.5-10px --- */
  .studio-meta-label { font-size: 11px; letter-spacing: 0.1em; }
  .studio-meta-value { font-size: 14px; }
  .studio-socials { gap: 18px; }
  .studio-socials a { font-size: 14px; padding: 4px 0; }
  .studio-cta { padding: 14px 26px; }
  .studio-cta-label { font-size: 15px; }
  .studio-invite-text { font-size: clamp(1.5rem, 6.5vw, 2.2rem); }
  .footer-row-left { font-size: 14px; }
  .footer-row-right { font-size: 12px; }
  .new-footer-bottom { font-size: 12px; gap: 14px; }
  .new-footer-bottom a { padding: 4px 0; }
  .new-footer-title { white-space: normal; font-size: clamp(1.6rem, 7vw, 2.6rem); }

  /* --- Back to top: clear of the iOS home indicator --- */
  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
  }
}

/* --------------------------------------------------------------------------
   13c. Small phones (<= 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 23.75rem) {
  .hero-headline { font-size: clamp(1.35rem, 7vw, 1.9rem); }
  .hero-btn { padding: 13px 20px; font-size: 14px; }
  .logo-wrapper .logo { font-size: 15px; }
  .studio-meta-item { gap: 0.35rem; }
}

/* --------------------------------------------------------------------------
   13d. Legibility fixes for the 67% root
   Sizes written in rem here resolved far smaller than intended
   (1.05rem = 11.3px).
   -------------------------------------------------------------------------- */
.hero-btn,
.hero-btn-secondary {
  font-size: 15px;
}

@media (max-width: 48rem) {
  .hero-btn,
  .hero-btn-secondary { font-size: 15px; padding: 14px 24px; }
  .studio-meta-label { font-size: 12px; }
}

/* --------------------------------------------------------------------------
   14. Hardware Services Section
   --------------------------------------------------------------------------
   Dark on purpose: the cases track ends on beige and campaign + contact are
   both beige, so a light panel here would run four pale sections together.
   data-theme="dark" in the markup also states the intent explicitly for the
   logo inversion, which otherwise infers it from the background colour.

   Sizes below are in px rather than rem on purpose -- html{font-size:67%}
   makes 1rem ~= 10.7px, so a "1rem" label would render at 11px. Same reasoning
   as the note at the top of section 13.
   -------------------------------------------------------------------------- */
.services-section {
  padding: clamp(80px, 14vh, 150px) 0;
}

.services-content {
  /* Same widening as the hero: --container-max is 87.5rem, which the 67% root
     collapses to ~938px, and four cards in that width are cramped. */
  max-width: min(1180px, 92vw);
}

.services-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(241, 237, 229, 0.45);
  margin: 0 0 18px;
}

.services-headline {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text-inverse);
  margin: 0;
}

.services-lead {
  max-width: 52ch;
  margin: 20px 0 0;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  color: rgba(241, 237, 229, 0.6);
}

.services-grid {
  list-style: none;
  margin: clamp(44px, 7vh, 72px) 0 0;
  padding: 0;
  display: grid;
  /* 8 items, so 4 / 2 / 1 columns all divide evenly and never leave a ragged
     final row. 3 columns would. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.service-item {
  display: flex;    /* let the card fill the row so all cards match height */
}

.service-card {
  flex: 1;
  padding: clamp(26px, 2.4vw, 34px) clamp(18px, 1.8vw, 24px);
  border: 1px solid rgba(241, 237, 229, 0.1);
  border-radius: 6px;
  background-color: rgba(241, 237, 229, 0.025);
  text-align: center;
  transition: border-color 0.35s ease, background-color 0.35s ease,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
  border-color: rgba(238, 187, 77, 0.45);
  background-color: rgba(241, 237, 229, 0.05);
  transform: translateY(-4px);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(241, 237, 229, 0.07);
  color: var(--text-inverse);
  margin-bottom: 20px;
  transition: color 0.35s ease, background-color 0.35s ease;
}
.service-card:hover .service-icon {
  color: var(--accent-gold);
  background-color: rgba(238, 187, 77, 0.12);
}
.service-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-inverse);
  margin: 0 0 10px;
}

.service-copy {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(241, 237, 229, 0.55);
  margin: 0;
}

.services-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(48px, 8vh, 80px);
  padding-top: 22px;
  border-top: 1px solid rgba(241, 237, 229, 0.1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241, 237, 229, 0.4);
}

@media (max-width: 64rem) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 30rem) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .services-note { flex-direction: column; gap: 8px; }
}
