/* Homepage design E: color blocks, scrolling banner, number callouts.
   Loaded only on index.html, after e-base.css (shared header, nav, buttons,
   fonts, footer). Mock: "zenziali.com homepage mocks" canvas, board E. */

.home-e { --e-line: #c9bca9; }

.home-e .wrap {
  max-width: 1080px;
  padding: 0 var(--e-pad);
}

/* Hero */
.e-hero {
  background: var(--e-accent);
  padding: 72px 0 104px;
}

.e-hero .eyebrow {
  color: var(--e-navy);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.e-hero h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 960px;
}

.e-hero .lead {
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 640px;
}

/* White and navy block pair (option C: photo fills the white block).
   The white column is capped at 600px so the 620px photo is never enlarged. */
.e-split {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
}

@media (max-width: 760px) {
  .e-split { grid-template-columns: 1fr; }
}

.e-split__intro {
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.e-split__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; /* whole-pixel height keeps later sections on the pixel grid */
  object-fit: cover;
  object-position: 50% 35%;
}

.e-split__intro > div { padding: 28px var(--e-pad) 36px; }

.e-split h2 {
  font-size: clamp(2.5rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1;
  margin: 0;
}

.e-split__role {
  margin: 16px 0 0;
  font-size: 0.9375rem;
  color: var(--e-soft);
}

.e-split__story {
  background: var(--e-navy);
  color: var(--e-cream);
  padding: 72px var(--e-pad);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.e-split__story :focus-visible,
.e-cta :focus-visible {
  outline-color: var(--e-accent);
}

/* Scrolling banner */
.e-banner {
  display: flex;
  align-items: stretch;
  border-top: 2px solid var(--e-navy);
  border-bottom: 2px solid var(--e-navy);
}

.e-banner__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  padding: 26px 0;
}

.e-banner__track {
  display: inline-flex;
  gap: 32px;
  animation: e-marquee 40s linear infinite;
}

.e-banner__text {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.2;
}

.e-banner__text s {
  color: #5f6779; /* 4.9:1 on ivory */
  text-decoration-thickness: 3px;
}

.e-banner.is-paused .e-banner__track { animation-play-state: paused; }

.e-banner__toggle:focus-visible { outline-offset: -6px; }

.e-banner__toggle {
  flex: 0 0 auto;
  min-width: 88px;
  padding: 0 16px;
  border: 0;
  border-left: 2px solid var(--e-navy);
  background: var(--e-ivory);
  color: var(--e-navy);
  font: 600 0.8125rem "Inter", sans-serif;
  cursor: pointer;
}

@keyframes e-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Reduced motion: no scrolling, let the text wrap, hide the copy and the button */
@media (prefers-reduced-motion: reduce) {
  .e-banner__viewport { white-space: normal; padding: 26px var(--e-pad); }
  .e-banner__track { animation: none; display: block; }
  .e-banner__text + .e-banner__text,
  .e-banner__toggle { display: none; }
}

/* Number callouts */
.e-numbers { padding: 88px 0 24px; }

.e-numbers .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 40px;
}

.e-number {
  border-left: 2px solid var(--e-navy);
  padding: 4px 28px;
}

.e-number p { margin: 0; }

.e-number__value {
  font-family: "Outfit", sans-serif;
  font-size: 4rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.e-number__label {
  margin-top: 12px !important;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--e-muted);
}

/* Approach section keeps its approved cards; only the band and heading change */
.home-e .section--gray { background: transparent; }

.home-e .section--gray h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

.home-e .habit-card h3 { font-weight: 600; }

/* Featured work cards */
.e-work { padding: 24px 0 96px; }

.e-work h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 32px;
}

.e-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.e-card {
  position: relative;
  background: #ffffff;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.e-card p { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--e-muted); }

.e-card .e-card__type {
  order: -1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--e-soft);
}

.e-card h3 { margin: 0; font-size: 1.625rem; line-height: 1.2; }

.e-card h3 a { text-decoration: none; }

/* Whole card is clickable; the link text stays the accessible name */
.e-card h3 a::after { content: ""; position: absolute; inset: 0; }
.e-card:hover h3 a { text-decoration: underline; }

.e-work__more { margin: 32px 0 0; font-weight: 600; }

/* Closing block and footer */
.e-cta {
  background: var(--e-navy);
  color: var(--e-cream);
  padding: 72px 0;
}

.e-cta .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.e-cta .wrap > div { max-width: 640px; }

.e-cta h2 { font-size: 2.25rem; margin-bottom: 20px; }
