@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Montserrat:wght@500;600;700;800;900&display=swap');
@import url('./variables.css');

/* Reset & Base Settings */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: 
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 45%),
    radial-gradient(circle at 10% 40%, rgba(255, 255, 255, 0.02), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.03), transparent 35%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 50%, var(--bg) 100%);
  min-height: 100vh;
  line-height: 1.6;
}

/* Background Subtle Grid & Texture */
.page-bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: -1;
  opacity: 0.85;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Container & Respiro */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-padding {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 72px 0;
  }
}

/* Typography Hierarchy & High Contrast */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "!";
  font-family: var(--font-heading);
  font-weight: 900;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.section-header {
  max-width: 840px;
  margin-bottom: 64px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 22px;
}

.section-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #cbd5e1;
  font-weight: 400;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg);
  border: 1px solid var(--text-main);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(255, 255, 255, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--surface-border-bright);
}

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

.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-border);
  padding: 14px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: var(--transition-fast);
}

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

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
}

/* Hero Section with Abstract Exclamation Glow Element */
.hero-section {
  padding-top: 190px;
  padding-bottom: 110px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 920px;
  position: relative;
  z-index: 2;
}

.hero-abstract-glow {
  position: absolute;
  top: -60px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 50%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.hero-abstract-glow svg {
  width: 280px;
  height: 280px;
  stroke: rgba(255, 255, 255, 0.08);
  fill: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--surface-border-bright);
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #cbd5e1;
  max-width: 780px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Problem Section */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition-smooth);
}

.problem-card:hover {
  background: var(--surface-hover);
  border-color: var(--surface-border-bright);
  transform: translateY(-4px);
}

.problem-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-silver);
}

.problem-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.problem-card p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Value Proposition */
.value-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--surface-border-bright);
  border-radius: var(--radius-xl);
  padding: 56px;
  box-shadow: var(--shadow-card);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--surface-border);
}

.value-item h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.value-item h4::before {
  content: "✓";
  color: var(--accent-silver);
  font-weight: 900;
}

.value-item p {
  color: #cbd5e1;
  font-size: 0.9rem;
}

/* Philosophy Section */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.philosophy-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.philosophy-card:hover {
  border-color: var(--surface-border-bright);
  transform: translateY(-4px);
}

.philosophy-card.diamond-highlight {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
}

.diamond-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.1rem;
}

.philosophy-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.philosophy-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.philosophy-card p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Capabilities */
.capability-group {
  margin-bottom: 48px;
}

.capability-group:last-child {
  margin-bottom: 0;
}

.capability-group-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-silver);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.capability-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--surface-border);
}

.capabilities-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.capability-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition-smooth);
}

.capability-card:hover {
  background: var(--surface-hover);
  border-color: var(--surface-border-bright);
}

.capability-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.capability-card p {
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Methodology Section */
.methodology-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  position: relative;
}

.method-step {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
  transition: var(--transition-smooth);
}

.method-step:hover {
  border-color: var(--surface-border-bright);
  transform: translateY(-4px);
}

.step-number-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-silver);
}

.step-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.method-step h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.method-step p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Decision Principles */
.principles-box {
  background: var(--surface);
  border: 1px solid var(--surface-border-bright);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.principles-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.principle-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.principle-icon {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-silver);
  background: var(--surface-strong);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.principle-item p {
  font-weight: 500;
  color: var(--text-main);
  font-size: 0.92rem;
}

/* Leadership */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 36px;
}

.founder-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition-smooth);
}

.founder-card:hover {
  border-color: var(--surface-border-bright);
  transform: translateY(-4px);
}

.founder-avatar {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  margin: 0 auto 24px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

.founder-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.founder-role {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-silver);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.founder-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Cases Section */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-main-metric {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.case-block-sub {
  margin-bottom: 16px;
}

.case-block-sub h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-silver);
  margin-bottom: 4px;
}

.case-block-sub p {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Dynamic Commercial Proposal Module & Custom Client Styles */
.proposal-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--surface-border-bright);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.proposal-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 32px;
}

.client-name-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
}

.client-segment-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--surface-strong);
  border: 1px solid var(--surface-border-bright);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  color: var(--accent-silver);
}

.proposal-block {
  margin-bottom: 36px;
}

.proposal-block-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--accent-silver);
  display: flex;
  align-items: center;
  gap: 10px;
}

.proposal-block-title::before {
  content: "—";
  color: var(--text-muted);
}

.proposal-scopes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.scope-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.investment-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border-bright);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.investment-box.highlight {
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  box-shadow: 0 0 30px rgba(255,255,255,0.05);
}

.investment-price {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--text-main);
  margin: 12px 0;
}

/* Discrete Notice Tag */
.discreet-notice {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed var(--surface-border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

/* Highlight Gargalo Card */
.highlight-gargalo-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 4px solid var(--accent-silver);
  border-radius: var(--radius-md);
  padding: 24px;
}

/* Evolution Tag Pill */
.evolution-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-silver);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* CTA Final */
.cta-section {
  text-align: center;
  padding: 110px 0;
}

.cta-box {
  max-width: 820px;
  margin: 0 auto;
}

.cta-box h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 24px;
}

.cta-box p {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 40px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Utility Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive Optimization - Zero Overflow & Perfect Fitting */
@media (max-width: 768px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
  }
  
  .container {
    padding: 0 16px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hero-section {
    padding-top: 135px;
    padding-bottom: 60px;
    overflow: hidden;
  }

  .hero-abstract-glow {
    display: none !important;
  }

  .hero-title {
    font-size: clamp(1.9rem, 7.5vw, 2.6rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn {
    width: 100%;
    padding: 16px 20px;
  }

  .problems-grid, .philosophy-grid, .capabilities-subgrid, .methodology-timeline, .founders-grid, .cases-grid, .proposal-scopes-grid, .principles-list {
    grid-template-columns: 1fr !important;
  }

  .problem-card, .philosophy-card, .capability-card, .method-step, .scope-card {
    padding: 20px 16px !important;
  }

  .founder-card, .case-card, .value-box, .principles-box, .proposal-section {
    padding: 24px 16px !important;
  }

  .proposal-meta-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .proposal-meta-header > div:last-child {
    align-items: flex-start !important;
  }

  .client-name-title {
    font-size: 1.6rem;
  }
}

/* Showreel / Video Showcase Component */
.showreel-grid {
  display: flex;
  justify-content: center;
  gap: 28px;
  max-width: 780px;
  margin: 0 auto;
}

.showreel-card {
  flex: 1;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.showreel-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(255, 255, 255, 0.08);
}

.showreel-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.showreel-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.showreel-card:hover .showreel-thumb-img {
  transform: scale(1.04);
  opacity: 1;
}

.showreel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 2;
}

.showreel-card:hover .showreel-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.25);
}

.showreel-play-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-left: 3px;
}

.showreel-info {
  padding: 20px;
  background: var(--bg-secondary);
}

.showreel-category {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-silver);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.showreel-item-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Video Modal Overlay */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10000;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.video-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .showreel-grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .showreel-card {
    width: 100%;
    max-width: 320px;
  }

  .video-modal-container {
    max-width: 100%;
    height: 80vh;
    aspect-ratio: auto;
  }
}

/* Commercial & Visual Refinements */
.case-secondary-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.case-metric-chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-silver);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.cases-amplitude-text {
  text-align: center;
  max-width: 680px;
  margin: 36px auto 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Card Legibility Refinements */
.problem-card p,
.philosophy-card p,
.capability-card p,
.method-step p,
.founder-desc,
.case-block-sub p {
  color: #e2e8f0 !important;
  font-size: 0.94rem !important;
  line-height: 1.6 !important;
}

.problem-card h3,
.philosophy-card h3,
.capability-card h4,
.method-step h4,
.founder-name {
  margin-bottom: 12px !important;
}

/* Methodology Progression Visual Connection */
.methodology-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  position: relative;
}

.methodology-timeline::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.06) 100%);
  z-index: 1;
}

.method-step {
  position: relative;
  z-index: 2;
}

.step-number {
  background: var(--bg-main);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
}

@media (max-width: 768px) {
  .methodology-timeline::before {
    top: 20px;
    bottom: 20px;
    left: 28px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.08) 100%);
  }
}
