/* ==========================================================================
   MCP | Media | Cinema | Projection
   Sections — layout rules specific to individual homepage sections
   ========================================================================== */


/* --------------------------------------------------------------------------
   Section 1 — Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(78vh, 85vh, 92vh);
  display: flex;
  align-items: center;
  background-color: var(--color-base);
  overflow: hidden;
  /* Offset for sticky header */
  margin-top: calc(-1 * var(--header-height));
  padding-top: calc(var(--header-height) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
}

/* Subtle film-grain texture overlay — CSS-only, no image required */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gap);
  align-items: center;
  width: 100%;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 0; /* individual spacing below for typographic rhythm */
  padding-right: var(--space-lg);
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.875rem; /* tight link to headline */
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-heading);
  color: var(--color-text-primary);
  margin-bottom: 1.5rem; /* headline needs room to breathe */
}

.hero__sub {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: 1.75rem; /* clear separation before body paragraph */
}

.hero__body {
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
  max-width: 52ch;
  margin-bottom: 2.5rem; /* generous gap before CTA */
}

.hero__cta {
  /* no extra margin — body provides it */
}

.hero__visual {
  position: relative;
  height: clamp(400px, 55vh, 640px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Vignette over hero image */
.hero__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17, 17, 17, 0.3) 0%,
    transparent 60%
  );
  pointer-events: none;
}

@media (max-width: 1023px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-xl));
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero__copy {
    padding-right: 0;
  }

  .hero__visual {
    height: clamp(240px, 50vw, 420px);
    width: 100%;
  }
}

@media (max-width: 639px) {
  .hero__headline {
    font-size: clamp(1.875rem, 7vw, 2.5rem);
  }

  .hero__visual {
    height: 240px;
  }
}


/* --------------------------------------------------------------------------
   Section eyebrow — shared pattern for sections with titles
   -------------------------------------------------------------------------- */

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header .eyebrow {
  margin-bottom: var(--space-xs);
  display: block;
}

.section-header .section-title {
  margin-bottom: var(--space-sm);
}

.section-header__intro {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
  max-width: 55ch;
}

/* For editorial strips with a leading eyebrow */
.section-eyebrow {
  display: block;
  margin-bottom: var(--space-xl);
}


/* --------------------------------------------------------------------------
   Section 2 — What MCP does
   -------------------------------------------------------------------------- */

.what-i-do__header {
  margin-bottom: var(--space-xl);
}

.what-i-do__intro {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
  max-width: 55ch;
  margin-top: var(--space-sm);
}


/* --------------------------------------------------------------------------
   Section 3 — MCP Platform
   -------------------------------------------------------------------------- */

.brands {
  background-color: var(--color-surface);
  box-shadow: var(--shadow-section);
  position: relative;
  z-index: 1;
}

.brands__header {
  margin-bottom: var(--space-xl);
}

.brands__intro {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
  max-width: 55ch;
  margin-top: var(--space-sm);
}

.brands__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
}

.platform__grid {
  grid-template-columns: repeat(2, 1fr);
}

.platform__grid .brand-card--anchor {
  grid-column: span 1;
}

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

  .brand-card--anchor {
    grid-column: span 2;
  }

  .platform__grid .brand-card--anchor {
    grid-column: span 1;
  }
}

@media (max-width: 639px) {
  .brands__grid {
    grid-template-columns: 1fr;
  }

  .brand-card--anchor {
    grid-column: span 1;
  }
}


/* --------------------------------------------------------------------------
   Section 4 — Latest insights and news
   -------------------------------------------------------------------------- */

.insights {
  background-color: var(--color-base);
}

.insights__header {
  margin-bottom: var(--space-xl);
}

.insights__intro {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
  max-width: 55ch;
  margin-top: var(--space-sm);
}

.insights__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--col-gap);
  align-items: start;
}

@media (max-width: 1023px) {
  .insights__grid {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   Section 5 — Vault
   -------------------------------------------------------------------------- */

.vault {
  background-color: var(--color-surface);
  box-shadow: var(--shadow-section);
  position: relative;
  z-index: 1;
}

.vault__header {
  margin-bottom: var(--space-xl);
}

.vault__content {
  max-width: 760px;
}


/* --------------------------------------------------------------------------
   Section 6 — Creative Labs
   -------------------------------------------------------------------------- */

.creative-labs__content {
  max-width: 760px;
}


/* --------------------------------------------------------------------------
   Section 7 — About MCP
   -------------------------------------------------------------------------- */

.about {
  background-color: var(--color-surface);
  box-shadow: var(--shadow-section);
  position: relative;
  z-index: 1;
}

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

.about__block {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--color-rule-subtle);
}

.about__block:first-child {
  padding-top: 0;
  border-top: 0;
}

.about__block:last-child {
  padding-bottom: 0;
}


/* --------------------------------------------------------------------------
   Section 8 — Contact
   -------------------------------------------------------------------------- */

.contact {
  background-color: var(--color-base);
  text-align: center;
}

.contact__inner {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0; /* individual spacing for rhythm */
}

.contact__eyebrow {
  display: block;
  margin-bottom: var(--space-md);
}

.contact__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-heading);
  margin-bottom: var(--space-lg);
}

.contact__body {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
  max-width: 52ch;
  margin-bottom: var(--space-xl);
}

.contact__cta {
  justify-content: center;
}


/* --------------------------------------------------------------------------
   Inner pages — page hero and content band
   -------------------------------------------------------------------------- */

.page-hero {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
  background-color: var(--color-base);
}

.page-hero__back {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  margin-bottom: var(--space-lg);
  transition: color var(--transition-fast);
}

.page-hero__back:hover,
.page-hero__back:focus-visible {
  color: var(--color-text-primary);
}

.page-content {
  padding-bottom: var(--section-gap);
}

.page-content__cta {
  margin-top: var(--space-xl);
}

.page-stack {
  display: flex;
  flex-direction: column;
}

.page-stack__section {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--color-rule-subtle);
}

.page-stack__section:first-child {
  padding-top: 0;
  border-top: 0;
}

.page-stack__section:last-child {
  padding-bottom: 0;
}

.page-stack__intro {
  max-width: 62ch;
  margin-bottom: var(--space-xl);
}

.page-stack__intro .section-title {
  margin-bottom: var(--space-sm);
}

.page-status {
  max-width: 62ch;
  padding: var(--space-md);
  color: var(--color-text-secondary);
  background-color: var(--color-accent-subtle);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: var(--leading-loose);
}

.contact-address {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(var(--text-xl), 4vw, var(--text-2xl));
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-muted);
  text-underline-offset: 0.3em;
  margin-bottom: var(--space-lg);
}

.contact-address:hover,
.contact-address:focus-visible {
  color: var(--color-accent);
}

@media (max-width: 639px) {
  .page-hero {
    padding-top: var(--space-xl);
  }

  .page-stack__section {
    padding-block: var(--space-lg);
  }
}
