.efw-page {
  --efw-ink: #0d141a;
  --efw-mist: #d7e0dc;
  --efw-ember: #f06b29;
  --efw-ember-bright: #ff8a3d;
  --efw-green-soft: #b9cec7;
  background:
    radial-gradient(circle at 10% 8%, rgba(240, 107, 41, 0.19), transparent 29rem),
    radial-gradient(circle at 90% 12%, rgba(90, 112, 108, 0.2), transparent 34rem),
    linear-gradient(135deg, #0d141a 0%, #050809 100%);
}

.efw-page .site-header {
  background: rgba(7, 10, 12, 0.84);
}

.efw-btn-primary {
  background: linear-gradient(135deg, var(--efw-ember), var(--efw-ember-bright));
  color: #111111;
}

.efw-btn-primary:hover,
.efw-btn-primary:focus {
  color: #111111;
  box-shadow: 0 14px 34px rgba(240, 107, 41, 0.38);
}

.efw-btn-secondary {
  border: 1px solid rgba(215, 224, 220, 0.34);
  background: rgba(90, 112, 108, 0.18);
  color: var(--efw-mist);
}

.efw-btn-secondary:hover,
.efw-btn-secondary:focus {
  background: rgba(215, 224, 220, 0.14);
  color: var(--efw-mist);
}

.efw-hero {
  position: relative;
  min-height: auto;
  overflow: hidden;
  isolation: isolate;
}

.efw-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 10, 12, 0.98) 0%, rgba(7, 10, 12, 0.9) 36%, rgba(7, 10, 12, 0.52) 67%, rgba(7, 10, 12, 0.9) 100%),
    linear-gradient(180deg, rgba(7, 10, 12, 0.08) 0%, rgba(7, 10, 12, 0.98) 100%),
    url("assets/partners/emberflow-workspace.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.efw-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(215, 224, 220, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(215, 224, 220, 0.04) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.efw-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(21rem, 0.82fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: auto;
  padding-block: clamp(3.4rem, 5.2vw, 5.4rem) clamp(2.4rem, 4.5vw, 4rem);
}

.efw-hero-copy {
  animation: efwRise 700ms ease both;
}

.efw-lockup {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 1.45rem;
  color: var(--text);
  font-weight: 800;
}

.efw-latitude-word {
  font-size: 1.05rem;
}

.efw-lockup-plus {
  color: var(--efw-ember-bright);
}

.efw-logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 4.3rem;
  padding: 0.45rem 1rem 0.45rem 0.58rem;
  border: 1px solid rgba(240, 107, 41, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: var(--efw-ink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.efw-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  overflow: hidden;
  border-radius: 6px;
  background: #ffffff;
}

.efw-logo-frame img {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: contain;
}

.efw-kicker {
  margin: 0 0 1.1rem;
  color: var(--efw-ember-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.efw-hero-copy h1 {
  max-width: 50rem;
  margin: 0 0 1.2rem;
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-size: clamp(2.55rem, 4.7vw, 4.45rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
}

.efw-hero-copy .lead {
  max-width: 46rem;
  color: rgba(248, 250, 252, 0.83);
}

.efw-proof-note {
  max-width: 48rem;
  margin: 1.25rem 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.efw-signal-board {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(215, 224, 220, 0.18);
  border-radius: 8px;
  background: rgba(215, 224, 220, 0.13);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
  animation: efwRise 800ms 120ms ease both;
}

.efw-signal-row {
  position: relative;
  display: grid;
  gap: 0.65rem;
  min-height: 7.6rem;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  overflow: hidden;
  background: rgba(10, 16, 19, 0.91);
}

.efw-signal-row::after {
  content: '';
  position: absolute;
  inset: auto auto 0 0;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, var(--efw-ember), transparent);
  animation: efwPulse 3.2s ease-in-out infinite;
}

.efw-signal-row span,
.efw-loop-steps span,
.efw-flow-map span {
  color: var(--efw-ember-bright);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.efw-signal-row strong {
  max-width: 25rem;
  color: var(--efw-mist);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.22;
}

.efw-signal-row-top {
  background: linear-gradient(135deg, rgba(240, 107, 41, 0.44), rgba(10, 16, 19, 0.92));
}

.efw-signal-row-bottom {
  background: linear-gradient(135deg, rgba(90, 112, 108, 0.5), rgba(10, 16, 19, 0.92));
}

.efw-thesis,
.efw-proof {
  background: rgba(215, 224, 220, 0.045);
}

.efw-split,
.efw-proof-grid,
.efw-services-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.efw-split h2,
.efw-section-heading h2,
.efw-proof h2,
.efw-services h2,
.efw-final-cta h2 {
  margin: 0;
  max-width: 54rem;
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-size: clamp(2rem, 3.65vw, 2.85rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.efw-copy-stack,
.efw-services-grid p,
.efw-proof-grid p,
.efw-final-inner p,
.efw-fit-grid p {
  color: var(--text-soft);
}

.efw-copy-stack {
  display: grid;
  gap: 1rem;
  font-size: 1.05rem;
}

.efw-copy-stack p {
  margin: 0;
}

.efw-section-heading {
  max-width: 58rem;
  margin-bottom: 2.4rem;
}

.efw-loop {
  background:
    radial-gradient(circle at 10% 20%, rgba(240, 107, 41, 0.18), transparent 27rem),
    rgba(5, 12, 24, 0.58);
}

.efw-loop-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(215, 224, 220, 0.11);
  border-radius: 8px;
  background: rgba(215, 224, 220, 0.11);
  list-style: none;
}

.efw-loop-steps li {
  min-height: 19rem;
  padding: 1.45rem;
  background: rgba(10, 16, 19, 0.9);
  transition: background var(--transition), transform var(--transition);
}

.efw-loop-steps li:hover,
.efw-fit-grid article:hover {
  transform: translateY(-4px);
  background: rgba(23, 39, 43, 0.94);
}

.efw-loop-steps h3,
.efw-fit-grid h3 {
  margin: 2rem 0 0.8rem;
  font-size: 1.24rem;
  line-height: 1.2;
}

.efw-loop-steps p {
  margin: 0;
  color: var(--text-soft);
}

.efw-services {
  background:
    linear-gradient(135deg, rgba(215, 224, 220, 0.05), rgba(240, 107, 41, 0.12)),
    rgba(5, 12, 24, 0.72);
}

.efw-services-grid p {
  max-width: 43rem;
  margin: 1rem 0 0;
}

.efw-deliverables {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.efw-deliverables li {
  display: grid;
  grid-template-columns: minmax(10rem, 0.55fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(215, 224, 220, 0.16);
}

.efw-deliverables li:last-child {
  border-bottom: 1px solid rgba(215, 224, 220, 0.16);
}

.efw-deliverables strong {
  color: var(--efw-mist);
}

.efw-deliverables span {
  color: var(--text-soft);
}

.efw-fit {
  background: rgba(4, 9, 18, 0.58);
}

.efw-fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(215, 224, 220, 0.11);
  border-radius: 8px;
  background: rgba(215, 224, 220, 0.11);
}

.efw-fit-grid article {
  min-height: 18rem;
  padding: 1.45rem;
  background: rgba(10, 16, 19, 0.88);
  transition: background var(--transition), transform var(--transition);
}

.efw-fit-grid span {
  display: block;
  margin-bottom: 2rem;
  color: var(--efw-green-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.efw-fit-grid h3 {
  margin-top: 0;
}

.efw-proof {
  background:
    radial-gradient(circle at 92% 8%, rgba(240, 107, 41, 0.18), transparent 28rem),
    rgba(215, 224, 220, 0.045);
}

.efw-flow-map {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(215, 224, 220, 0.12);
  border-radius: 8px;
  background: rgba(215, 224, 220, 0.12);
}

.efw-flow-map div {
  display: grid;
  grid-template-columns: minmax(4rem, 0.22fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 5.9rem;
  padding: 1rem 1.2rem;
  background: rgba(10, 16, 19, 0.9);
}

.efw-flow-map div:nth-child(4) {
  background: linear-gradient(135deg, rgba(240, 107, 41, 0.3), rgba(10, 16, 19, 0.92));
}

.efw-flow-map strong {
  color: var(--efw-mist);
  font-size: 1.12rem;
}

.efw-final-cta {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 107, 41, 0.27), transparent 34rem),
    rgba(7, 10, 12, 0.94);
}

.efw-final-inner {
  display: grid;
  justify-items: center;
}

.efw-final-inner h2 {
  max-width: 62rem;
}

.efw-final-inner p {
  max-width: 45rem;
  margin: 1.2rem 0 1.8rem;
}

.efw-final-inner .form-actions {
  justify-content: center;
}

@keyframes efwRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes efwPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scaleX(0.52);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .efw-hero-copy,
  .efw-signal-board {
    animation: none;
  }

  .efw-signal-row::after {
    animation: none;
  }

  .efw-loop-steps li:hover,
  .efw-fit-grid article:hover {
    transform: none;
  }
}

@media (max-width: 1080px) {
  .efw-hero-inner,
  .efw-split,
  .efw-proof-grid,
  .efw-services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .efw-loop-steps,
  .efw-fit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .efw-hero {
    min-height: auto;
  }

  .efw-hero-media {
    background:
      linear-gradient(180deg, rgba(7, 10, 12, 0.96) 0%, rgba(7, 10, 12, 0.88) 48%, rgba(7, 10, 12, 0.96) 100%),
      url("assets/partners/emberflow-workspace.jpg") center / cover no-repeat;
  }

  .efw-hero-inner {
    min-height: auto;
    padding-block: 4rem 3rem;
  }

  .efw-hero-copy h1 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .efw-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .efw-lockup-plus {
    display: none;
  }

  .efw-signal-row,
  .efw-loop-steps li,
  .efw-fit-grid article {
    min-height: auto;
  }

  .efw-loop-steps,
  .efw-deliverables li,
  .efw-flow-map div,
  .efw-fit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
