/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */

:root {
  /* Font Families */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Shared Animations */
  --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Light Theme Variables (Default) */
.light-theme {
  --theme-bg-base: #f5f5f3;
  --theme-light-bg: #f8f8f6;
  --theme-light-text: #151515;
  --theme-light-text-sec: #5f5f5e;
  --theme-light-border: rgba(21, 21, 21, 0.08);
  --theme-light-grid: rgba(21, 21, 21, 0.025);
  
  --theme-dark-bg: #121212;
  --theme-dark-text: #f8f8f6;
  --theme-dark-text-sec: #9e9e9d;
  --theme-dark-border: rgba(248, 248, 246, 0.08);
  --theme-dark-grid: rgba(248, 248, 246, 0.025);
  
  --theme-accent: #FF7300;
  --theme-accent-rgb: 255, 115, 0;
  --theme-accent-hover: #d95f00;
  
  --theme-secondary: #b84d18; /* Deep orange */
  --theme-secondary-rgb: 184, 77, 24;
}

/* Dark Theme Variables */
.dark-theme {
  --theme-bg-base: #0c0c0c;
  --theme-light-bg: #151515;
  --theme-light-text: #f8f8f6;
  --theme-light-text-sec: #a0a0a0;
  --theme-light-border: rgba(248, 248, 246, 0.08);
  --theme-light-grid: rgba(248, 248, 246, 0.02);
  
  --theme-dark-bg: #0c0c0c;
  --theme-dark-text: #eeeeec;
  --theme-dark-text-sec: #8e8e8c;
  --theme-dark-border: rgba(238, 238, 236, 0.06);
  --theme-dark-grid: rgba(238, 238, 236, 0.015);
  
  --theme-accent: #FF7300;
  --theme-accent-rgb: 255, 115, 0;
  --theme-accent-hover: #ff8c33;
  
  --theme-secondary: #d9682a; /* Deep orange */
  --theme-secondary-rgb: 217, 104, 42;
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--theme-bg-base);
  transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: var(--font-body);
  color: var(--theme-light-text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.dark-theme {
  color: var(--theme-light-text);
}

/* Modal Open Scroll Lock */
body.modal-open, html.modal-open {
  overflow: hidden !important;
  height: 100vh !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--theme-bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--theme-light-border);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--theme-accent);
}

/* ==========================================================================
   ARCHITECTURAL GRID LINES & BACKGROUND
   ========================================================================== */

.grid-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.grid-lines .line {
  position: absolute;
  background-color: var(--theme-light-grid);
  transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-lines .vertical-1 {
  top: 0;
  left: 10%;
  width: 1px;
  height: 100%;
}

.grid-lines .vertical-2 {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.grid-lines .vertical-3 {
  top: 0;
  left: 90%;
  width: 1px;
  height: 100%;
}

.grid-lines .horizontal-1 {
  top: 80px;
  left: 0;
  width: 100%;
  height: 1px;
}

#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  border-bottom: 1px solid var(--theme-light-border);
  transition: border-color 0.8s, background-color 0.8s;
  background-color: #fbf7f4;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}

body.dark-theme header {
  background-color: rgba(12, 12, 12, 0.75);
  border-bottom: 1px solid var(--theme-light-border);
}

.nav-container {
  max-width: 95%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--theme-light-text);
  transition: color 0.8s;
}

.logo.logo-image-option {
  display: block;
  width: 185px;
  max-width: 36vw;
  line-height: 0;
}

.logo.logo-image-option img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 46px;
  object-fit: contain;
  object-position: left center;
}

/* Option 4 is a single-line lockup, so it needs a wider header footprint. */
.logo.logo-image-option.logo-image-option-4 {
  width: 260px;
}

.logo span:first-child {
  color: var(--theme-light-text);
  margin-right: 2px;
  transition: color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo span:nth-child(2) {
  font-weight: 300;
  color: var(--theme-light-text);
  opacity: 0.75;
  transition: color 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo .accent-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: var(--theme-accent);
  margin-left: 5px;
  border-radius: 50%;
  animation: pulse 2s infinite ease-in-out;
}

nav {
  display: flex;
  gap: 32px;
}

@media (max-width: 900px) {
  nav {
    display: none; /* simple responsive approach */
  }
}

.nav-link {
  position: relative;
  z-index: 5;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--theme-light-text);
  opacity: 0.75;
  transition: opacity 0.3s, color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .nav-link:hover {
    opacity: 1;
    color: var(--theme-accent);
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Minimalist Toggle Button */
#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-track {
  width: 42px;
  height: 22px;
  border-radius: 11px;
  background-color: rgba(21, 21, 21, 0.1);
  border: 1px solid var(--theme-light-border);
  position: relative;
  display: block;
  transition: var(--transition-medium);
}

body.dark-theme .toggle-track {
  background-color: rgba(248, 248, 246, 0.1);
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--theme-light-text);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.8s;
}

body.dark-theme .toggle-thumb {
  transform: translateX(20px);
  background-color: var(--theme-accent);
}

/* Typography elements */
.cta-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  background-color: transparent;
  color: var(--theme-light-text);
  border: 1px solid var(--theme-light-text);
  padding: 10px 24px;
  cursor: pointer;
  transition: var(--transition-medium);
}

.cta-btn:hover {
  background-color: var(--theme-accent);
  border-color: var(--theme-accent);
  color: #ffffff;
}

.cta-btn.large {
  padding: 16px 36px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  background-color: var(--theme-accent);
  border-color: var(--theme-accent);
  color: #ffffff;
}

.cta-btn.large:hover {
  background-color: var(--theme-accent-hover);
  border-color: var(--theme-accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 115, 0, 0.28);
}

/* ==========================================================================
   SECTION COMMON STYLING
   ========================================================================== */

section {
  position: relative;
  width: 100%;
  padding: 8rem 5%;
  z-index: 2;
  border-bottom: 1px solid var(--theme-light-border);
  transition: background-color 0.8s, color 0.8s, border-color 0.8s;
  scroll-margin-top: 80px;
}

section.light-bg {
  background-color: var(--theme-light-bg);
  color: var(--theme-light-text);
}

section.dark-bg {
  background-color: var(--theme-dark-bg);
  color: var(--theme-dark-text);
  border-color: var(--theme-dark-border);
}

/* Section label formatting */
.section-label {
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: span 1;
  align-self: start;
  position: sticky;
  top: 104px;
  min-height: 420px;
  padding: 22px 20px;
  background: linear-gradient(180deg, #fbf7f4 0%, rgba(252, 249, 247, 0.96) 50%, rgba(253, 251, 249, 0.42) 100%);
  background-position: center, center bottom;
  background-repeat: no-repeat;
  background-size: 100% 100%, auto 100%;
  border-left: 1px solid rgba(var(--theme-accent-rgb), 0.2);
  overflow: hidden;
  transition: border-color 0.35s ease, background-size 0.5s ease;
}

.section-label::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: var(--sidebar-image);
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: auto 100%;
  mix-blend-mode: color-dodge;
  opacity: 0;
  filter: brightness(1.5) saturate(2.5);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.section-label > * {
  position: relative;
  z-index: 1;
}

#about-page .section-label,
#services-page .section-label,
#case-studies-page .section-label {
  --sidebar-image: url('assets/architectural_4_about.png');
  background-color: var(--theme-light-bg);
  background-image: none;
}

#about-page .section-label::after,
#services-page .section-label::after,
#case-studies-page .section-label::after {
  display: block;
  inset: 0;
  background: var(--sidebar-image) center bottom / auto 100% no-repeat;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: normal;
  opacity: 0.85;
  transition: opacity 0.35s ease;
}

#about-page .section-label:hover::after,
#services-page .section-label:hover::after,
#case-studies-page .section-label:hover::after {
  opacity: 0;
}

#about-page .section-label::before,
#services-page .section-label::before,
#case-studies-page .section-label::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: var(--sidebar-image) center bottom / auto 100% no-repeat;
}

#about-page .section-label .label-text,
#services-page .section-label .label-text,
#case-studies-page .section-label .label-text {
  color: #fff;
  font-weight: 700;
  opacity: 1;
}

#about-page .section-label:hover .label-text,
#services-page .section-label:hover .label-text,
#case-studies-page .section-label:hover .label-text {
  color: var(--theme-accent);
  font-weight: 700;
  opacity: 1;
}

#services-page .section-label {
  --sidebar-image: url('assets/architectural_2.png');
}

#case-studies-page .section-label {
  --sidebar-image: url('assets/architectural_3_case-studies.png');
}

.section-label .accent-line {
  width: 40px;
  height: 1px;
  background-color: var(--theme-accent);
  transition: box-shadow 0.35s ease, filter 0.35s ease, transform 0.35s ease;
  transform-origin: left center;
}

.section-label .label-text {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  opacity: 0.5;
  transition: color 0.35s ease, opacity 0.35s ease, text-shadow 0.35s ease;
}

.section-label:hover {
  border-left-color: var(--theme-accent);
}

.section-label:hover::after {
  opacity: 0.45;
}

.section-label:hover .accent-line {
  box-shadow: 0 0 5px rgba(255, 115, 0, 0.95), 0 0 16px rgba(255, 115, 0, 0.55);
  filter: brightness(1.35);
  transform: scaleX(1.2);
}

.section-label:hover .label-text {
  color: var(--theme-accent);
}

/* Grid helper */
.grid-2 {
  display: grid;
  grid-template-columns: 0.5fr 2.5fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 768px) {
  #about-page,
  #services-page,
  #case-studies-page {
    padding-top: 0;
  }

  #about-page .section-label::before,
  #about-page .section-label::after,
  #services-page .section-label::before,
  #services-page .section-label::after,
  #case-studies-page .section-label::before,
  #case-studies-page .section-label::after {
    background-position: left bottom;
  }

  #about-page .section-label::before,
  #services-page .section-label::before,
  #case-studies-page .section-label::before {
    filter: grayscale(1) contrast(1.1);
    opacity: 0.85;
  }

  #about-page .section-label::after,
  #services-page .section-label::after,
  #case-studies-page .section-label::after {
    filter: none;
    opacity: 0;
    transition: opacity 0.35s ease;
  }

  #about-page .section-label::after {
    clip-path: polygon(0 86%, 39% 58%, 40% 63%, 0 91%);
  }

  #services-page .section-label::after {
    clip-path: polygon(11% 47%, 29% 58%, 29% 63%, 11% 52%);
  }

  #case-studies-page .section-label::after {
    clip-path: polygon(0 49%, 72% 49%, 72% 55%, 0 55%);
  }

  #about-page .section-label:hover::after,
  #services-page .section-label:hover::after,
  #case-studies-page .section-label:hover::after {
    opacity: 1;
  }

  .grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 120px auto;
    gap: 40px;
  }

  .grid-2 > .section-label {
    grid-column: 1;
    grid-row: 1;
  }

  .grid-2 > :not(.section-label) {
    grid-column: 1;
    grid-row: 2;
    margin-top: 88px;
  }

  .section-label {
    position: relative;
    height: 120px;
    min-height: 0;
    padding: 16px;
    border-left-color: var(--theme-accent);
    overflow: hidden;
  }
}

.editorial-heading {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .editorial-heading {
    font-size: 1.8rem;
  }
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
}

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

#hero {
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  padding: 0 10%;
  background-color: var(--theme-bg-base);
  color: var(--theme-light-text);
  border-bottom: 1px solid var(--theme-light-border);
  overflow: hidden;
  transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 5;
}

.hero-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--theme-accent);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  min-height: 140px; /* reserve min space for changing text */
  position: relative;
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
    min-height: 180px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
    min-height: 200px;
  }
}

.hero-text-slider {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-text-slider.fade-out {
  opacity: 0;
  transform: translateY(-20px);
}

.hero-text-slider.fade-in-start {
  opacity: 0;
  transform: translateY(20px);
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 600px;
  opacity: 0.8;
  color: var(--theme-light-text-sec);
  transition: color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 1rem;
  }
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.scroll-down-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--theme-light-text);
  opacity: 0.5;
  transition: opacity 0.3s, color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-down-indicator:hover {
  opacity: 1;
  color: var(--theme-accent);
}

.scroll-arrow {
  display: inline-block;
  width: 1px;
  height: 40px;
  background-color: var(--theme-light-text);
  position: relative;
  overflow: hidden;
  transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: var(--theme-accent);
  animation: scrollDown 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   MANIFESTO SECTION
   ========================================================================== */

.manifesto-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.manifesto-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--theme-light-text-sec);
}

.manifesto-body p {
  margin-bottom: 8px;
}

.highlight-text {
  color: var(--theme-light-text);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.55;
  border-left: 2px solid var(--theme-accent);
  padding-left: 20px;
  margin-top: 10px;
}

body.dark-theme .highlight-text {
  color: var(--theme-light-text);
}

/* ==========================================================================
   IMAGE SHOWCASE (PARALLAX SPLITS)
   ========================================================================== */

.image-showcase {
  padding: 0;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  border-bottom: 1px solid var(--theme-light-border);
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.parallax-img {
  width: 100%;
  height: 130%; /* taller for scrolling space */
  object-fit: cover;
  position: absolute;
  top: -15%;
  left: 0;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.85;
  transition: filter 0.8s, transform 0.1s linear;
}

.image-wrapper:hover .parallax-img {
  filter: grayscale(0.2) contrast(1);
}

.image-overlay-text {
  position: absolute;
  bottom: 10%;
  left: 10%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.image-overlay-text .large-number {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
}

.image-overlay-text .text-label {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--theme-accent);
  opacity: 1;
}

/* ==========================================================================
   WHITE PAPERS
   ========================================================================== */

.whitepaper-page {
  padding: 80px 0 100px;
  position: relative;
}

.whitepaper-eyebrow {
  color: var(--theme-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 18px;
}

.whitepaper-hero-copy h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 5.25rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 26px;
}

.whitepaper-hero-copy p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(21, 21, 21, 0.75);
}

.whitepaper-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: min(680px, 75vh);
  margin: 0 0 80px;
  padding: 80px 10%;
  overflow: hidden;
  background-color: #e9ebeb;
  background-image: url('whitepaper2/proven-demand-product-creation-why-most-great-ideas-fail-and-how-to-fix-it.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.whitepaper-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 42px;
  background: rgba(248, 248, 246, 0.76);
  backdrop-filter: blur(2px);
}

.whitepaper-hero-visual::before {
  display: none;
}

.whitepaper-hero-visual::after {
  content: "";
  position: absolute;
  left: 44%;
  top: 52%;
  width: 37%;
  height: 2px;
  z-index: 1;
  background: #fff;
  opacity: 0.9;
  pointer-events: none;
  transform: rotate(0.5deg);
  transform-origin: left center;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.whitepaper-hero-visual:hover::after {
  background-color: var(--theme-accent);
  box-shadow: 0 0 6px rgba(255, 115, 0, 0.8), 0 0 16px rgba(255, 115, 0, 0.5);
}

.whitepaper-hero-visual .whitepaper-image-caption {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  color: var(--theme-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.whitepaper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.whitepaper-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 300px;
  border: 1px solid var(--theme-light-border);
  background: var(--theme-light-bg);
}

.whitepaper-card-image {
  min-height: 100%;
  overflow: hidden;
}

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

.whitepaper-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
}

.whitepaper-card-content .card-tag {
  color: var(--theme-accent);
  margin-bottom: 18px;
}

.whitepaper-card h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.whitepaper-card p {
  color: var(--theme-light-text-sec);
  line-height: 1.6;
  margin-bottom: 28px;
}

.whitepaper-card .submit-btn {
  margin-top: auto;
}

.whitepaper-gate-content {
  max-width: 540px;
}

.whitepaper-gate-content form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.whitepaper-gate-note {
  color: var(--theme-light-text-sec);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==========================================================================
   CASE STUDY CAMPAIGN SHOWCASE
   ========================================================================== */

.campaign-showcase {
  padding: 100px 10%;
}

.campaign-showcase-intro {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-kicker {
  color: var(--theme-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

.campaign-showcase-intro h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 18px;
}

.campaign-showcase-intro p {
  color: var(--theme-light-text-sec);
  line-height: 1.7;
}

.campaign-creative-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: min(980px, 100%);
  margin: 0 auto;
}

.campaign-creative {
  margin: 0;
}

.campaign-creative img {
  display: block;
  width: 100%;
  border: 1px solid var(--theme-light-border);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.campaign-creative:hover img {
  box-shadow: 0 18px 42px rgba(255, 115, 0, 0.16);
  transform: translateY(-6px);
}

.campaign-creative figcaption {
  color: var(--theme-light-text-sec);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin-top: 12px;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .whitepaper-page {
    padding: 80px 0 70px;
  }

  .whitepaper-hero-visual {
    min-height: 580px;
    padding: 60px 6%;
  }

  .whitepaper-grid {
    grid-template-columns: 1fr;
  }

  .campaign-showcase {
    padding: 70px 6%;
  }
}

@media (max-width: 520px) {
  .whitepaper-card {
    grid-template-columns: 1fr;
  }

  .whitepaper-hero-copy {
    padding: 30px;
  }

  .whitepaper-card-image {
    height: 200px;
  }

  .campaign-creative-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   THE SYSTEM SECTION
   ========================================================================== */

.grid-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 4rem;
  align-items: end;
}

@media (max-width: 768px) {
  .grid-header {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 2.5rem;
  }
}

.system-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--theme-dark-border);
  transition: border-color 0.8s;
}

@media (max-width: 1024px) {
  .system-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .system-timeline {
    grid-template-columns: 1fr;
  }
}

.system-step {
  padding: 3rem 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-right: 1px solid var(--theme-dark-border);
  transition: border-color 0.8s, background-color 0.3s;
}

.system-step:last-child {
  border-right: none;
}

@media (max-width: 1024px) {
  .system-step:nth-child(2n) {
    border-right: none;
  }
  .system-step:nth-child(1), .system-step:nth-child(2) {
    border-bottom: 1px solid var(--theme-dark-border);
  }
}

@media (max-width: 600px) {
  .system-step {
    border-right: none;
    border-bottom: 1px solid var(--theme-dark-border);
  }
  .system-step:last-child {
    border-bottom: none;
  }
}

.system-step:hover {
  background-color: rgba(255, 62, 24, 0.02);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--theme-accent);
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--theme-dark-text-sec);
  line-height: 1.6;
}

/* ==========================================================================
   SERVICES & CAPABILITIES
   ========================================================================== */

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 3rem;
}

@media (max-width: 600px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.capability-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--theme-light-border);
  padding-top: 24px;
  transition: border-color 0.8s;
}

.capability-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.capability-item p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--theme-light-text-sec);
}

/* ==========================================================================
   METRICS SECTION
   ========================================================================== */

.metrics-table {
  width: 100%;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding: 3rem 0;
  border-bottom: 1px solid var(--theme-light-border);
  transition: border-color 0.8s, background-color 0.3s;
}

@media (max-width: 768px) {
  .table-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 2rem 0;
  }
}

.table-row:first-child {
  border-top: 1px solid var(--theme-light-border);
}

.table-row:hover {
  background-color: rgba(255, 62, 24, 0.01);
}

.col-metric {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--theme-accent);
}

@media (max-width: 768px) {
  .col-metric {
    font-size: 3.5rem;
  }
}

.col-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.col-detail h5 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.col-detail p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--theme-light-text-sec);
  max-width: 700px;
}

/* ==========================================================================
   OPPORTUNITY SECTION
   ========================================================================== */

.opportunity-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.opportunity-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--theme-dark-text-sec);
}

.opportunity-body p {
  margin-bottom: 8px;
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */

#cta {
  padding: 12rem 5% 10rem 5%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-container {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.cta-accent-line {
  width: 1px;
  height: 80px;
  background-color: var(--theme-accent);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .cta-title {
    font-size: 2.2rem;
  }
}

.cta-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 600px;
  opacity: 0.7;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background-color: var(--theme-dark-bg);
  color: var(--theme-dark-text);
  padding: 5rem 5% 4rem 5%;
  border-top: 1px solid var(--theme-dark-border);
  z-index: 2;
  position: relative;
}

.footer-container {
  max-width: 95%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.4;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

@media (max-width: 768px) {
  .footer-right {
    align-items: flex-start;
  }
}

.footer-links {
  display: flex;
  gap: 24px;
}

@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

.footer-links a {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--theme-dark-text);
  opacity: 0.5;
  transition: opacity 0.3s, color 0.3s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--theme-accent);
}

.footer-note {
  font-size: 0.8rem;
  opacity: 0.3;
}

/* ==========================================================================
   COLLABORATE MODAL OVERLAY
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(12, 12, 12, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 4rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--theme-light-bg);
  border: 1px solid var(--theme-light-border);
  width: 100%;
  max-width: 750px;
  margin: auto;
  padding: 4rem;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.8s, border-color 0.8s;
  color: var(--theme-light-text);
}

body.dark-theme .modal-content {
  background-color: #121212;
  border-color: var(--theme-dark-border);
  color: var(--theme-dark-text);
}

@media (max-width: 768px) {
  .modal-content {
    padding: 2.5rem 2rem;
  }
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.close-modal-btn {
  position: fixed;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  color: #ffffff; /* always white as modal overlay is dark */
  opacity: 0.6;
  transition: opacity 0.3s, color 0.3s;
  z-index: 1001;
}

body.dark-theme .close-modal-btn {
  color: #ffffff;
}

.close-modal-btn:hover {
  opacity: 1;
  color: var(--theme-accent);
}

.modal-header {
  margin-bottom: 3rem;
}

.modal-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--theme-accent);
  margin-bottom: 12px;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.modal-header p {
  font-size: 0.95rem;
  font-weight: 300;
  opacity: 0.7;
}

/* Form Styles */
#collaboration-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  opacity: 0.6;
}

.required-marker {
  color: var(--theme-accent);
  opacity: 1;
}

.message-limit {
  font-size: 0.7rem;
  line-height: 1.2;
  opacity: 0.6;
}

input, select, textarea {
  font-family: var(--font-body);
  background-color: transparent;
  border: 1px solid var(--theme-light-border);
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--theme-light-text);
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s;
}

body.dark-theme input, body.dark-theme select, body.dark-theme textarea {
  color: var(--theme-dark-text);
  border-color: var(--theme-dark-border);
}

select {
  padding-left: 0;
  cursor: pointer;
}

select option {
  background-color: var(--theme-light-bg);
  color: var(--theme-light-text);
}

body.dark-theme select option {
  background-color: #121212;
  color: var(--theme-dark-text);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--theme-accent);
}

textarea {
  resize: none;
  min-height: 110px;
}

.submit-btn {
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  background-color: var(--theme-accent);
  color: #ffffff;
  border: none;
  padding: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: var(--transition-medium);
}

.submit-btn:hover {
  background-color: #ffffff;
  color: #151515;
  box-shadow: inset 0 0 0 1px #151515;
}

body.dark-theme .submit-btn:hover {
  background-color: #ffffff;
  color: #121212;
  box-shadow: none;
}

/* Success State */
.form-success-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--theme-light-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 10;
}

body.dark-theme .form-success-message {
  background-color: #121212;
}

.form-success-message.active {
  opacity: 1;
  pointer-events: auto;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--theme-accent);
  color: var(--theme-accent);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.form-success-message h4 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.form-success-message p {
  max-width: 450px;
  font-size: 0.95rem;
  font-weight: 300;
  opacity: 0.7;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.close-success-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  background-color: transparent;
  border: 1px solid var(--theme-light-border);
  color: var(--theme-light-text);
  padding: 12px 30px;
  cursor: pointer;
  transition: var(--transition-fast);
}

body.dark-theme .close-success-btn {
  color: var(--theme-dark-text);
  border-color: var(--theme-dark-border);
}

.close-success-btn:hover {
  background-color: var(--theme-light-text);
  color: var(--theme-light-bg);
}

/* ==========================================================================
   SCROLL REVEAL & KEYFRAME ANIMATIONS
   ========================================================================== */

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes scrollDown {
  0% {
    transform: translateY(-100%);
  }
  50% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

/* ==========================================================================
   ADDITIONAL LAYOUT & VIDEO MOCKUP STYLES
   ========================================================================== */

#hero {
  height: auto;
  min-height: 100vh;
  padding: 140px 10% 80px 10%;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  #hero {
    padding: 120px 5% 60px 5%;
  }
}

.hero-video {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.video-wrapper-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--theme-light-border);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: border-color 0.8s, transform 0.5s;
}

.dark-theme .video-wrapper-inner {
  background: rgba(0, 0, 0, 0.2);
  border-color: var(--theme-dark-border);
}

.video-wrapper-inner:hover {
  transform: translateY(-5px);
  border-color: var(--theme-accent);
}

.video-badge {
  position: absolute;
  top: 15px;
  left: 20px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--theme-accent);
  border: 1px solid var(--theme-accent);
  padding: 4px 10px;
  border-radius: 4px;
}

.video-overlay {
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--theme-accent);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 20px rgba(255, 62, 24, 0.3);
  transition: transform 0.3s, background 0.3s;
  cursor: pointer;
}

.play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 4px;
}

.play-btn:hover {
  transform: scale(1.1);
  background: var(--theme-accent-hover);
}

.video-caption {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--theme-light-text-sec);
  opacity: 0.8;
  max-width: 80%;
  transition: color 0.8s;
}

.dark-theme .video-caption {
  color: var(--theme-dark-text-sec);
}

.video-graphic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.15;
}

.graphic-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--theme-light-text);
  transition: background-color 0.8s;
}

.dark-theme .graphic-node {
  background: var(--theme-dark-text);
}

.node-1 {
  top: 20%;
  left: 30%;
  animation: pulse 3s infinite;
}

.node-2 {
  bottom: 30%;
  right: 25%;
  animation: pulse 4s infinite 1s;
}

.graphic-line {
  position: absolute;
  top: 20%;
  left: 30%;
  width: 50%;
  height: 50%;
  border-left: 1px dashed var(--theme-light-border);
  border-bottom: 1px dashed var(--theme-light-border);
  transition: border-color 0.8s;
}

.dark-theme .graphic-line {
  border-color: var(--theme-dark-border);
}

/* ==========================================================================
   ABOUT US SECTION CARDS
   ========================================================================== */

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 3rem;
}

.about-card {
  border-top: 1px solid var(--theme-light-border);
  padding-top: 30px;
  transition: border-color 0.8s;
}

.about-card:hover {
  border-top-color: var(--theme-accent);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 15px;
}

.card-desc {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--theme-light-text-sec);
  line-height: 1.6;
  margin-bottom: 15px;
  transition: color 0.8s;
}

.card-emphasis {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--theme-accent);
  margin-top: 20px;
}

/* ==========================================================================
   OUR SERVICE LAYOUTS
   ========================================================================== */

.services-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.criteria-container {
  border: 1px solid var(--theme-light-border);
  padding: 40px;
  border-radius: 8px;
  background: var(--theme-light-bg);
  transition: border-color 0.8s, background-color 0.8s;
}

.criteria-container h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 25px;
}

.criteria-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.criteria-list li {
  position: relative;
  padding-left: 25px;
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--theme-light-text-sec);
  line-height: 1.5;
  transition: color 0.8s;
}

.criteria-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--theme-accent);
}

.criteria-conclusion {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--theme-accent);
  margin-top: 10px;
}

.methodology-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.methodology-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-top: 20px;
}

.methodology-intro {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--theme-light-text-sec);
  line-height: 1.6;
}

.validation-box {
  background: rgba(var(--theme-accent-rgb), 0.03);
  border-left: 2px solid var(--theme-accent);
  padding: 30px 40px;
  margin: 15px 0;
}

.validation-box p {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.momentum-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@media (max-width: 600px) {
  .momentum-list {
    grid-template-columns: 1fr;
  }
}

.momentum-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--theme-light-text-sec);
}

.momentum-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--theme-accent);
}

.methodology-conclusion {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
}

.final-statement {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--theme-light-text-sec);
  line-height: 1.7;
  border-top: 1px solid var(--theme-light-border);
  padding-top: 30px;
  margin-top: 20px;
}

/* ==========================================================================
   ACTIVE LINK STYLING
   ========================================================================== */

.nav-link.active-link {
  color: var(--theme-accent) !important;
  opacity: 1 !important;
  border-bottom: 2px solid var(--theme-accent);
  padding-bottom: 4px;
}

/* ==========================================================================
   PAGE SECTION STANDARDS
   ========================================================================== */

.page-section {
  padding-top: 130px;
  min-height: 80vh;
  background: linear-gradient(180deg, #fbf7f4 0, #fcf9f7 180px, var(--theme-light-bg) 360px) !important;
}

/* ==========================================================================
   LANDING HERO VERTICAL AUTO LAYOUT (85VH FOR TEXT PEEKING)
   ========================================================================== */

.landing-hero {
  height: 85vh !important;
  min-height: 680px !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-bg-hero {
  position: relative;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.bg-video {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.8s ease, filter 0.8s ease;
}

.video-overlay-tint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light mode frosted blur */
.light-theme .video-overlay-tint {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 43%, rgba(255, 255, 255, 0.28) 74%, rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Dark mode ambient tint */
.dark-theme .video-overlay-tint {
  background: linear-gradient(135deg, rgba(75, 29, 0, 0.9), rgba(7, 7, 7, 0.78));
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

@keyframes hero-corridor-light-up {
  0% { filter: brightness(0.9) saturate(0.85); }
  42% { filter: brightness(1.35) saturate(1.6); }
  100% { filter: brightness(1) saturate(1); }
}

.video-bg-hero.hero-lighting-up .bg-video {
  animation: hero-corridor-light-up 1.1s 0.6s ease-out both;
}

.video-bg-hero.hero-hover-lighting .bg-video {
  animation: hero-corridor-light-up 1.1s 0.18s ease-out both;
}

.video-bg-hero.hero-lighting-up .video-overlay-tint {
  animation: hero-overlay-reveal 1.1s 0.6s ease-out both;
}

.video-bg-hero.hero-hover-lighting .video-overlay-tint {
  animation: hero-overlay-reveal 1.1s 0.18s ease-out both;
}

@keyframes hero-overlay-reveal {
  0%, 100% { opacity: 1; }
  42% { opacity: 0.68; }
}

.editorial-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "headline description"
    "actions description";
  width: 80%; /* Aligns exactly from 10% to 90% (80% wide) matching vertical-1 and vertical-3 */
  max-width: 1400px;
  margin: 80px auto 0 auto; /* starts at the horizontal-1 line */
  height: calc(100vh - 160px); /* spans down perfectly */
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 3;
}

.hero-headline-block {
  grid-area: headline;
  align-self: center;
}

.hero-description-block {
  grid-area: description;
  align-self: end;
  justify-self: end;
  text-align: left;
  max-width: 480px;
  padding-bottom: 50px;
}

.hero-actions-block {
  grid-area: actions;
  align-self: end;
  padding-bottom: 50px;
}

.editorial-hero-grid .hero-title {
  font-size: 4.5rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0;
  text-align: left;
  min-height: 250px;
}

.editorial-hero-grid .hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.65;
  margin: 0;
  color: var(--theme-light-text);
  opacity: 1;
  text-align: left;
  border-top: 1px solid var(--theme-light-border);
  padding-top: 30px;
}

.hero-tagline {
  margin: 24px auto 0;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--theme-accent);
  text-align: center;
}

.video-bg-hero.hero-lighting-up .hero-tagline {
  animation: hero-tagline-light-up 0.55s 0.6s ease-out both;
}

.video-bg-hero.hero-hover-lighting .hero-tagline {
  animation: hero-tagline-hover-light-up 1.1s 0.18s ease-out both;
}

@keyframes hero-tagline-light-up {
  0% {
    opacity: 1;
    color: #8b8b88;
    text-shadow: none;
    transform: translateY(0);
  }
  18% {
    color: #8b8b88;
  }
  23% {
    color: #ff7300;
  }
  28% {
    color: #8b8b88;
  }
  34% {
    color: #ff9d45;
  }
  42% {
    opacity: 1;
    color: #ffd0a6;
    text-shadow: none;
  }
  49% {
    color: #ff7800;
  }
  55% {
    color: #ffd0a6;
  }
  100% {
    opacity: 1;
    color: var(--theme-accent);
    text-shadow: none;
    transform: translateY(0);
  }
}

@keyframes hero-tagline-hover-light-up {
  0%, 100% {
    color: var(--theme-accent);
    text-shadow: none;
  }
  42% {
    color: #ffc18c;
    text-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-video,
  .hero-tagline {
    animation: none;
  }
}

.dark-theme .editorial-hero-grid .hero-subtitle {
  border-top: 1px solid var(--theme-dark-border);
}

@media (max-width: 1024px) {
  .editorial-hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: none;
    width: 90%;
    margin: 120px auto 0 auto;
    height: auto;
    gap: 35px;
  }
  
  .hero-headline-block,
  .hero-description-block,
  .hero-actions-block {
    grid-area: auto;
    align-self: start;
    justify-self: start;
    text-align: left;
    max-width: 100%;
    padding-bottom: 0;
  }

  .editorial-hero-grid .hero-title {
    font-size: 2.8rem;
    min-height: auto;
  }
  
  .editorial-hero-grid .hero-subtitle {
    font-size: 1.1rem;
    padding-top: 20px;
  }
}

/* ==========================================================================
   UNIVERSAL FOOTER WITH CONTACT FORM OPTION B
   ========================================================================== */

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  max-width: 95%;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-right: 1px solid var(--theme-dark-border);
  padding-right: 60px;
  transition: border-color 0.8s;
}

.light-theme .footer-contact-block {
  border-right-color: rgba(248, 248, 246, 0.08); /* Maintain contrast in footer as footer is dark-bg */
}

@media (max-width: 1024px) {
  .footer-contact-block {
    border-right: none;
    padding-right: 0;
  }
}

.footer-contact-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--theme-accent);
}

.footer-contact-header h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.footer-contact-header p {
  font-size: 0.95rem;
  font-weight: 300;
  opacity: 0.7;
}

.footer-contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Inputs within Footer form (footer has dark-bg) */
.footer-contact-form input,
.footer-contact-form textarea {
  color: var(--theme-dark-text);
  border-color: var(--theme-dark-border);
}

.footer-contact-form label {
  color: var(--theme-dark-text);
  opacity: 0.6;
}

.footer-contact-form .message-limit {
  color: var(--theme-dark-text);
}

.footer-contact-form input:focus,
.footer-contact-form textarea:focus {
  border-color: var(--theme-accent);
}

.footer-nav-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links-col h5 {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  opacity: 0.4;
  margin-bottom: 5px;
}

.footer-links-col a {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  color: var(--theme-dark-text);
  opacity: 0.6;
  transition: opacity 0.3s, color 0.3s;
}

.footer-links-col a:hover {
  opacity: 1;
  color: var(--theme-accent);
}

/* Footer success message */
.footer-success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--theme-dark-border);
  border-radius: 8px;
}

.footer-success-message.active {
  display: flex;
}

/* ==========================================================================
   CASE STUDIES PLACEHOLDERS
   ========================================================================== */

.case-studies-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.case-study-posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.case-study-post {
  position: relative;
  width: 60%;
  aspect-ratio: 0.414;
  margin: 0;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(95, 95, 94, 0.6);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.case-study-post img {
  position: absolute;
  width: 100%;
  max-width: none;
  display: block;
}

.case-study-post-one img {
  width: 244%;
  top: -10.25%;
  left: -70%;
}

.case-study-post-two img {
  width: 273%;
  top: -14.3%;
  left: -85.3%;
}

.case-study-post-two {
  aspect-ratio: 0.41;
}

#case-studies-page .editorial-heading {
  /* 40px grid gap + this margin produces a 36px title-to-image gap. */
  margin-bottom: -4px;
}

.placeholder-card-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .case-study-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-study-post {
    width: 100%;
  }

  .placeholder-card-container {
    grid-template-columns: 1fr;
  }
}

.placeholder-card {
  border: 1px solid var(--theme-light-border);
  padding: 30px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.01);
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: border-color 0.5s, transform 0.5s;
}

.dark-theme .placeholder-card {
  border-color: var(--theme-dark-border);
}

.placeholder-card:hover {
  border-color: var(--theme-secondary);
  transform: translateY(-3px);
}

.card-tag {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--theme-secondary);
  border: 1px solid var(--theme-secondary);
  padding: 3px 8px;
  border-radius: 3px;
  align-self: flex-start;
}

.placeholder-card h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
}

.placeholder-card p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--theme-light-text-sec);
  line-height: 1.5;
}

.dark-theme .placeholder-card p {
  color: var(--theme-dark-text-sec);
}

/* ==========================================================================
   MOBILE MENU BUTTON & OVERLAY
   ========================================================================== */

#mobile-menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  .nav-actions .cta-btn {
    display: none; /* Hide Collaborate button in header to prevent crowding on mobile */
  }

  #mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 160;
    position: relative;
  }
  
  .hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--theme-light-text);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, background-color 0.8s;
    pointer-events: none;
  }

  body.dark-theme .hamburger-line {
    background-color: var(--theme-light-text);
  }
  
  #mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  #mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  #mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 150;
  background-color: rgba(245, 245, 243, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.8s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-nav-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

body.dark-theme .mobile-nav-overlay {
  background-color: rgba(12, 12, 12, 0.95);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--theme-light-text);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.mobile-nav-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
  width: 80%;
  max-width: 400px;
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.active .mobile-nav-container {
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--theme-light-text);
  opacity: 0.75;
  transition: opacity 0.3s, color 0.8s, transform 0.3s;
}

.mobile-nav-link.active-link {
  color: var(--theme-accent) !important;
  opacity: 1 !important;
  border-bottom: 2px solid var(--theme-accent);
  padding-bottom: 4px;
}

@media (hover: hover) {
  .mobile-nav-link:hover {
    opacity: 1;
    color: var(--theme-accent);
  }
}

.mobile-nav-actions {
  margin-top: 20px;
  width: 100%;
}

.mobile-nav-actions .cta-btn {
  width: 100%;
  text-align: center;
}
